More actions
test |
added pref for user night mode (still testing) |
||
Line 1: | Line 1: | ||
/* For explicit client preference dark mode */ | |||
@media screen { | @media screen { | ||
.skin-theme-clientpref-night .infobox { | |||
background-color: #151A23; | |||
color: red; | |||
} | |||
} | } | ||
/* For OS-level dark mode preference */ | |||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
.skin-theme-clientpref-os .infobox { | |||
background-color: #151A23; | |||
color: red; | |||
} | |||
} | } |
Revision as of 03:34, 27 March 2025
/* For explicit client preference dark mode */
@media screen {
.skin-theme-clientpref-night .infobox {
background-color: #151A23;
color: red;
}
}
/* For OS-level dark mode preference */
@media screen and (prefers-color-scheme: dark) {
.skin-theme-clientpref-os .infobox {
background-color: #151A23;
color: red;
}
}