From 8b5e7d4c15a017378f2f5acc457a4fb33fc492a0 Mon Sep 17 00:00:00 2001 From: interlope Date: Wed, 26 Aug 2026 22:58:32 +0200 Subject: [PATCH] fix Issue #1 the rest --- css/style.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/css/style.css b/css/style.css index d839277..47eb368 100644 --- a/css/style.css +++ b/css/style.css @@ -1988,6 +1988,13 @@ footer.footer-modern a:hover { pre code.hljs { padding: 0 !important; background: transparent !important; + /* Each palette's base colour is paired with the palette's own background, + which the rule above replaces — so take the block's base text from the + theme instead, matching inline code. Token colours still come from the + palette. No !important needed here, unlike the two above: those collide + with the palettes' own `pre code.hljs` base block at equal specificity, + whereas the colour is set by `.hljs` / `code.hljs`, which this outranks. */ + color: var(--code-text); /* Not every palette ships hljs's base block — catppuccin-mocha only carries token colours. Without overflow-x the inner code stops being a scroll container, pre scrolls instead, and the block's height changes on theme