From 3b58a1a279b90dbab2b83aed7403cd69d1fde157 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Fri, 29 Apr 2022 10:23:08 +0800 Subject: [PATCH] fix: codeblock style inconsistency - the size of codeblock is same with hightlight now - the pre in .content will not be afftected by reamrk42 style anymore --- static/css/style.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/css/style.css b/static/css/style.css index bf1ebeb..6409ae6 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -393,6 +393,9 @@ body { word-wrap: break-word; } +/* keep in style with highlighting */ +.content pre { padding: 7px; } + .content pre code { font-family: var(--fonts-mono); @@ -626,3 +629,10 @@ body { .commenting { width: 85%; } + +/* keep content style from being affected by remark42 style */ +.content pre { + background-color: transparent; + color: var(--color-black-3) +} +