Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/cgit.css | 13 |
1 file changed, 13 insertions, 0 deletions
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); |
