mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-15 04:45:08 +01:00
Fix gist rendering
Hugo gist shortcodes make use of GitHub Gist embedding. As the gist uses a table, it renders wrongly due to the global addressing in the general theme's css. This is a non-elegant fix, but solves the issue.
This commit is contained in:
parent
2c2588d1c6
commit
6f42c9ba30
@ -190,7 +190,8 @@ blockquote {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
/* Fix for gist integration */
|
||||||
|
table:not(.js-file-line-container) {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -198,7 +199,8 @@ table {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table, th, td {
|
/* Fix for gist integration */
|
||||||
|
table, th, td:not(.js-line-number) {
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user