Template:Infobox drug/styles.css: Difference between revisions
From Global Methane Hub Wikipedia
enwiki>Jonesey95 fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value |
Alexanderwg (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 15:32, 1 October 2026
/* {{pp-template}} */
/* A safe image background that works for almost all images in dark mode
(via skin-theme-clientpref-night) */
@media screen {
html.skin-theme-clientpref-night .dark_mode_safe img {
background-color: var(--background-color-inverted, #f8f9fa);
color:inherit;
}
}
/* A safe image background that works for almost all images in dark mode
(via operating system opt-in) */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .dark_mode_safe img {
background-color: var(--background-color-inverted, #f8f9fa);
color:inherit;
}
}
