Template:Color/styles.css

From The Goon Show Depository

< Template:Color

Revision as of 16:41, 28 September 2024 by Kurt (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/* {{pp-template}} */
/* [[phab:T360683]]: This stylesheet removes the function of this template in
 * dark mode
 */

@media screen {
    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 screen and ( 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;
    }
}