From 31a303ab55827ada797d27972e1e194e2f57e08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Fri, 22 Jul 2022 18:16:48 +0200 Subject: [PATCH] Cleaner code blocks in dark mode. --- static/style.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/static/style.css b/static/style.css index cdb1f70..34bac6a 100644 --- a/static/style.css +++ b/static/style.css @@ -106,4 +106,23 @@ article.post { margin-top: 0; color: #f7da4a; } + /* Code blocks */ + pre { + padding: 0.5ex; + background-color: inherit; + box-shadow: none; + } + pre code { + padding: 1ex; + font-size: medium; + background: #000; + color: #fff; + border: none; + } + + code { + padding: 0.25ex; + margin: 0.25ex; + border: 1px solid #00000; + } }