Template:Color/styles.css: Difference between revisions

From YATA Wiki
Jump to navigationJump to search
en>MusikBot II
m (Protected "Template:Color/styles.css": High-risk template or module: 467619 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
m (1 revision imported: infobox stuff)
 
(No difference)

Latest revision as of 12:03, 18 April 2024

/* T360683: Template:Color will not work in night theme. If the colors are semantically important for your article, and it is important these colors appear in night mode, it is suggested you create a template specifically targeted at your use case rather than using the generic color template. */

html.skin-theme-clientpref-night div:not(.notheme) > .tmp-color,
html.skin-theme-clientpref-night p > .tmp-color,
html.skin-theme-clientpref-night table:not(.notheme) .tmp-color {
   color: inherit !important;
}
@media (prefers-color-scheme: dark) {
    /* automatic mode */
    html.skin-theme-clientpref-os div:not(.notheme) > .tmp-color,
    html.skin-theme-clientpref-os p > .tmp-color,
    html.skin-theme-clientpref-os table:not(.notheme) .tmp-color {
      color: inherit !important;
    }
}