Keep checkboxes light on light pages

With Redmine set to Light and the device dark, the color-scheme meta let the browser draw checkboxes, radio buttons and scrollbars dark. Light pages now pin color-scheme: light.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-06 16:21:38 -05:00
1 parent 3df55bc97f
commit b241f75cc9
1 file changed
+7
+7
View File
@@ -8,6 +8,13 @@ html.dark-mode {
color-scheme: dark;
}
/* Light pages stay light even when the device is dark. The head's <meta name="color-scheme" content="light dark">
otherwise lets the browser draw its own controls (checkboxes, radio buttons, scrollbars) in the device's dark
style on a page the user set to Light. */
html:not(.dark-mode) {
color-scheme: light;
}
/* Dark palette: Gitea's dark theme colours (theme-gitea-dark.css) on Open Color's scales, where 0-2 are
backgrounds, 3-4 borders and 5-9 text. */
html.dark-mode,