From 0d5db0bb5828558f79c4045756e15550f2528bbc Mon Sep 17 00:00:00 2001 From: RYGRIT Date: Tue, 10 Mar 2026 09:18:53 +0800 Subject: [PATCH] fix: fixed code line highlighting being overridden in light theme --- app/assets/main.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/assets/main.css b/app/assets/main.css index 0de1fb5fc8..bbc667d53f 100644 --- a/app/assets/main.css +++ b/app/assets/main.css @@ -275,13 +275,16 @@ dd { } /* Shiki theme colors */ -html.light .shiki, -html.light .shiki span { +html.light .shiki { color: var(--shiki-light) !important; background-color: var(--shiki-light-bg) !important; - font-style: var(--shiki-light-font-style) !important; - font-weight: var(--shiki-light-font-weight) !important; - text-decoration: var(--shiki-light-text-decoration) !important; + + & span { + color: var(--shiki-light) !important; + font-style: var(--shiki-light-font-style) !important; + font-weight: var(--shiki-light-font-weight) !important; + text-decoration: var(--shiki-light-text-decoration) !important; + } } /* Inline code in package descriptions */