Vorlage:Titelliste/styles

aus Wikipedia, der freien Enzyklopädie
Zur Navigation springen Zur Suche springen

CSS

.titelliste-zebra > tbody > tr:nth-of-type(odd):not(:last-child) {
	background: #f7f7f7;
}
.titelliste-zebra > tbody > tr:nth-of-type(even):not(:last-child) {
	background: white;
}

/* Nachtmodus */
html.skin-theme-clientpref-night .titelliste-zebra > tbody > tr:nth-of-type(odd):not(:last-child) {
	background: var(--background-color-base);
}
html.skin-theme-clientpref-night .titelliste-zebra > tbody > tr:nth-of-type(even):not(:last-child) {
	background: var(--background-color-neutral-subtle);
}
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .titelliste-zebra > tbody > tr:nth-of-type(odd):not(:last-child) {
		background: var(--background-color-base);
	}
	html.skin-theme-clientpref-os .titelliste-zebra > tbody > tr:nth-of-type(even):not(:last-child) {
		background: var(--background-color-neutral-subtle);
	}
}

Kopiervorlage

[Quelltext bearbeiten]
<templatestyles src="Titelliste/styles.css" />

Das Stylesheet wird von {{Titelliste}} automatisch eingebunden.

titelliste-zebra
Färbt Tabellenzeilen abwechselnd in  und .