From b90b215a84c7e592a795de87792d0670fe647a43 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Thu, 5 Apr 2018 00:55:34 +0200 Subject: [PATCH] Fix code blocks color in night mode This provides more eye-friendly code boxes when night mode is active. Signed-off-by: Sheogorath --- public/css/markdown.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/css/markdown.css b/public/css/markdown.css index eaa9ab5..85a4c59 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -13,6 +13,10 @@ border: inherit !important; } +.night .markdown-body pre { + filter: invert(100%); +} + .markdown-body code { color: inherit !important; } @@ -78,6 +82,7 @@ .markdown-body code[data-gist-id] { background: none; padding: 0; + filter: invert(100%); } .markdown-body code[data-gist-id]:before {