mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-12-25 15:29:27 +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;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
@ -198,7 +199,8 @@ table {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
/* Fix for gist integration */
|
||||
table, th, td:not(.js-line-number) {
|
||||
border: 1px solid;
|
||||
padding: 10px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user