Template:If dark/styles.css: Difference between revisions
(Undid revision 1256386646 by 112.134.169.117 (talk) wrong page...) |
m (1 revision imported) |
(No difference)
| |
Latest revision as of 09:36, 7 March 2025
/* this should be the fallback */
.ifdark > .dark {
display: none;
}
.ifdark > .nodark {
display: inherit; /* fallback */
display: initial;
}
html.skin-theme-clientpref-night .ifdark > .nodark {
display: none;
}
html.skin-theme-clientpref-night .ifdark > .dark {
display: inherit; /* fallback */
display: initial;
}
/* dark mode gadget */
html.client-dark-mode .ifdark > .nodark {
display: none;
}
html.client-dark-mode .ifdark > .dark {
display: inherit; /* fallback */
display: initial;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ifdark > .nodark {
display: none;
}
html.skin-theme-clientpref-os .ifdark > .dark {
display: inherit; /* fallback */
display: initial;
}
}
@media screen and (prefers-color-scheme: light) {
html.skin-theme-clientpref-os .ifdark > .dark {
display: none;
}
html.skin-theme-clientpref-os .ifdark > .nodark {
display: inherit; /* fallback */
display: initial;
}
}