From b825b7f27c96f51e441fe2c6afd2568fbc1d864d Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 29 Dec 2020 18:12:15 +0530 Subject: [PATCH] post-single: Fix embeded gist colors fixes: #161 --- assets/css/post-single.css | 4 ++-- assets/css/reset.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 30db3e4e..d4eea9c4 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -122,7 +122,7 @@ } .post-content table th, -.post-content table:not(.highlighttable) td { +.post-content:not(.gist) > table:not(.highlighttable) td { min-width: 80px; padding: 12px 8px; line-height: 1.5; @@ -138,7 +138,7 @@ margin: auto 0 } -.post-content .highlight, +.post-content:not(.gist) > .highlight, .post-content pre { margin: auto calc(var(--gap) * -1) 32px; background: var(--hljs-bg) !important; diff --git a/assets/css/reset.css b/assets/css/reset.css index 646e0d8a..96fb9af1 100644 --- a/assets/css/reset.css +++ b/assets/css/reset.css @@ -79,7 +79,7 @@ table { width: 100%; border-collapse: collapse; border-spacing: 0; - overflow-x: scroll; + overflow-x: auto; word-break: keep-all }