Template:If dark/styles.css

From RetroWikipedia
Revision as of 18:34, 14 November 2024 by imported>Matrix (Undid revision 1256386646 by 112.134.169.117 (talk) wrong page...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* 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;
	}	

}