From c6cd90001aa901704402893befbb5efcc3fe53cf Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 3 Jul 2025 01:22:59 -0400 Subject: [PATCH] fixed code block indentation in css --- src/zona/data/content/static/style.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/zona/data/content/static/style.css b/src/zona/data/content/static/style.css index d6d538e..5b30cbf 100644 --- a/src/zona/data/content/static/style.css +++ b/src/zona/data/content/static/style.css @@ -141,13 +141,20 @@ pre { overflow-x: auto; } -code { - background-color: #1d1d1d; - color: #d5d5d5; +/* Inline code styling */ +:not(pre) > code { padding: 0.2em 0.4em; border-radius: 3px; + background-color: #1d1d1d; + color: #d5d5d5; } +/* Block code styling (inherits from pre) */ +pre code { + padding: 0; + border-radius: 0; + background: none; +} small { font-size: 0.95rem; @@ -234,3 +241,4 @@ small a { color: var(--main-small-text-color); } +