From 9a1bf3d38b0b248c99ac945bac81e20445eed326 Mon Sep 17 00:00:00 2001 From: Ilenia Date: Tue, 30 Jun 2026 23:36:03 +0200 Subject: [PATCH] fix: make text in inline code blocks visible --- src/styles/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/styles/style.css b/src/styles/style.css index 08349e7..86ff9a6 100644 --- a/src/styles/style.css +++ b/src/styles/style.css @@ -191,6 +191,20 @@ site-search button[data-open-modal] kbd { border-color: var(--primary-color) !important; } +:where(.sl-markdown-content, .content-panel, article) :not(pre) > code { + font-family: "Courier New", monospace; + font-weight: 600; + background: rgba(43, 27, 61, 0.05) !important; + color: var(--witch-purple) !important; + padding: 2px 6px; + border-radius: 4px; +} + +html[data-theme="dark"] :where(.sl-markdown-content, .content-panel, article) :not(pre) > code { + background: rgba(255, 255, 255, 0.08) !important; + color: var(--witch-lavender) !important; +} + #starlight__search { --pagefind-ui-text: var(--primary-color); --pagefind-ui-primary: var(--witch-rose);