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:
Jonny Daenen 2021-02-28 13:07:36 +01:00 committed by GitHub
parent 2c2588d1c6
commit 6f42c9ba30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}