From 7b845190234ec02d8f447633736c8456e5b11b94 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 29 Oct 2026 13:31:07 -1000 Subject: Mark the active tab and lines in forced colours A forced colours palette, such as a Windows high contrast theme, drops author backgrounds, and those were the only marks on the active tab and on the lines a URL names. The user's own Highlight colour takes their place. --- assets/cgit.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'assets/cgit.css') diff --git a/assets/cgit.css b/assets/cgit.css index d6526a6..1f32196 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -1450,6 +1450,19 @@ div#cgit form.login input[type="password"] { } +@media (forced-colors: active) { + div#cgit .tabs a.active { + forced-color-adjust: none; + color: HighlightText; + background-color: Highlight; + } + + div#cgit div.line-hl { + outline: solid 2px Highlight; + outline-offset: -2px; + } +} + @media (prefers-color-scheme: dark) { div#cgit #header .logo img { filter: brightness(1.5); -- cgit