Jump to content

Template:If dark/styles.css: Difference between revisions

From Elite Dangerous Wiki
m clean up code formatting
 
m Protected "Template:If dark/styles.css": Pre-registration protection review: Protection notice: pp-template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
 
(No difference)

Latest revision as of 21:22, 31 October 2026

/* {{pp-template}} */
/* 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;
	}
}