mirror of
https://github.com/rickbarrette/redmine_dark_mode.git
synced 2026-11-17 12:50:36 -05:00
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:
1 parent
3df55bc97f
commit
b241f75cc9
1 file changed
+7
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user