« Modèle:Fstats/style.css » : différence entre les versions

Une page de Wikipédia, l'encyclopédie libre.
Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 38 : Ligne 38 :
background-color: #E5E5E5;
background-color: #E5E5E5;
font-weight: bold;
font-weight: bold;
color:var(--color-base, #202122)
}
}
html.skin-theme-clientpref-night .wikitable.alternance2 tr.fstats-pied,
html.skin-theme-clientpref-night .wikitable.alternance2 tr.fstats-pied,

Version du 5 mai 2024 à 19:53

/* classe fstats utilisée combinée avec alternance2 dans le modèle Fstats début pour définir les couleurs alternées */

/* thème light/day (thème par défaut) */

.fstats.alternance2 tr,
.fstats.alternance2 th[scope="row"] {
	background-color: #ebf5ff;
	color: #333;
}
.fstats.alternance2 tr:nth-child(odd),
.fstats.alternance2 tr:nth-child(odd) th[scope="row"] {
	background-color: var(--background-color-base, #fff);
}

/* thème dark/night */

html.skin-theme-clientpref-night .fstats.alternance2 tr,
html.skin-theme-clientpref-night .fstats.alternance2 th[scope="row"] {
    background-color: #002D57;
    color: #ccc;
}

/* thème dark/night, via utilisation du thème défini dans l'OS */

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .fstats.alternance2 tr,
    html.skin-theme-clientpref-os .fstats.alternance2 th[scope="row"] {
    	background-color: #002D57;
    	color: #ccc;
    }
}

/* style pour Fstats/fin */
.wikitable.alternance2 tr.fstats-pied,
.wikitable.fstats.alternance2 tr.fstats-pied,
.wikitable.alternance2  tr.fstats-pied th[scope="row"],
.wikitable.fstats.alternance2 tr.fstats-pied th[scope="row"] {
	background-color: #E5E5E5;
	font-weight: bold;
	color:var(--color-base, #202122)
}
html.skin-theme-clientpref-night .wikitable.alternance2 tr.fstats-pied,
html.skin-theme-clientpref-night .wikitable.fstats.alternance2 tr.fstats-pied,
html.skin-theme-clientpref-night .wikitable.alternance2 tr.fstats-pied th[scope="row"],
html.skin-theme-clientpref-night .wikitable.fstats.alternance2 tr.fstats-pied th[scope="row"] { background-color: #191919; }
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .wikitable.alternance2 tr.fstats-pied,
    html.skin-theme-clientpref-os .wikitable.fstats.alternance2 tr.fstats-pied,
    html.skin-theme-clientpref-os .wikitable.alternance2 tr.fstats-pied th[scope="row"],
    html.skin-theme-clientpref-os .wikitable.fstats.alternance2 tr.fstats-pied th[scope="row"] { background-color: #191919; }
}

/* [[Catégorie:Sous-page de modèle feuille de style]] */