From 6f42c9ba30415ecf6c2380a3fb1371bc2d2e631b Mon Sep 17 00:00:00 2001 From: Jonny Daenen Date: Sun, 28 Feb 2021 13:07:36 +0100 Subject: [PATCH] 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. --- assets/css/main.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 30d03b1..a4e1825 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -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; }