MediaWiki:Gadget-Mobile.css

Une page de Wikipédia, l'encyclopédie libre.
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;

Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
/* CSS placed here will affect users of the mobile site */

/* Variables css locales */
:root,.skin-invert,.notheme,.ve-ui-overlay {
	--couleur-fond-boite-grise: #f9f9f9;
	--couleur-fond-entete-alternance: #e6e6e6;
	--couleur-fond-gris-alternance: #eeeeee;
}
html.skin-theme-clientpref-night {
	--couleur-fond-boite-grise: #101418;
	--couleur-fond-entete-alternance: #191919;
	--couleur-fond-gris-alternance: #202122;
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os {
		--couleur-fond-boite-grise: #101418;
		--couleur-fond-entete-alternance: #191919;
		--couleur-fond-gris-alternance: #202122;
    }
}

/**
 * BALISES
 */

sup,
sub {
	line-height: 0.75em;
}

dfn {
	font-style: normal;
	font-weight: bold;
}
i > dfn {
	font-style: italic;
}

/**
 * TRUCS UTILES
 */

.italique {
	font-style: italic;
}
.italique i {
	font-style: normal;
}

/* [[Modèle:Indication de langue]] et [[Modèle:Lien]]. */
.indicateur-langue,
.indicateur-format {
	font-family: monospace;
	font-weight: bold;
	font-size: small;
	font-style: normal;
	word-spacing: -0.4em;
}

/* Affichage des chiffres romains, voir [[modèle:Rom]] ou [[modèle:Romain]]. */
.romain {
	text-transform: lowercase;
	font-variant: small-caps;
}

.nowrap,
.mw-magiclink-isbn {
	white-space: nowrap;
}

/* Liens "petit crayon" créés par [[Module:Wikidata]] */
.wikidata-linkback {
	padding-left: 0.5em;
	/* Pour les copier-collers, retire les alternatives textuelles
           "Voir et modifier les données sur Wikidata" */
	-webkit-user-select: none; /* Safari */
	user-select: none;
}

/* Numérotations différentes pour les notes de bas de page. */
.references-small.decimal ol {
	list-style-type: decimal;
}
.references-small.lower-alpha ol {
	list-style-type: lower-alpha;
}
.references-small.lower-greek ol {
	list-style-type: lower-greek;
}
.references-small.lower-roman ol {
	list-style-type: lower-roman;
}
.references-small:is(.lower-alpha, .lower-greek, .lower-roman) ol ol {
	list-style-type: decimal;
}

/* Pour [[MediaWiki:Gadget-ArchiveLinks.js]] (activé par défaut) : même couleur que les liens externes */
small.cachelinks > a {
	color: #36b;
}
html.skin-theme-clientpref-night small.cachelinks > a { color: #83a4dd; }
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os small.cachelinks > a { color: #83a4dd; }
}

/* Balise abbr discrète */
abbr.abbr {
	text-decoration: none;  /* Firefox, Chrome */
	/*border-bottom: 0;*/  /* IE */
}

/* Classe de masquage, remplace display:none. Contenu non affiché mais lisible par les lecteurs d'écrans. */
.hidden {
	position: absolute;
	left: 0;
	top: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
caption.hidden {
	position: static;
	text-indent: -5000px;
}

/* Réserver un contenu à l'impression (display rétabli dans MediaWiki:Print.css) */
.printcssonly {
	display: none;
}

/* Message-système des sous-pages de discussion. Classe .fieldsetlike etc.
   pour permettre la réutilisation de ces styles. */
.fieldsetlike {
	text-align: center;
	border: 1px solid #aaa;
	margin: 1em 0;
	padding: 0 0 0.4em 0;
}
.fieldsetlike .legendlike {
	margin-top: -0.8em;
}
.fieldsetlike .legendtextlike {
	padding: 0 8px;
	background: white;
	color: #333;
}
.fieldsetlike ul {
	list-style-type: none;
	margin: 0;
}
.fieldsetlike li {
	display: inline;
	white-space: nowrap;
}
.fieldsetlike li:not(:last-child)::after {
	content: '\a0- ';
	white-space: normal; /* nécessaire s'il n'y a pas d'espace entre les <li> dans le HTML */
}
#talkpageheader li {
	color: #707070;
}

/**
 * Boîte déroulante
 */

div.NavFrame {
	border: 1px #aaa;
}
div.NavFrame div.NavHead {
	font-weight: bold;
	background-color: #efefef;
	color: var(--color-base, #202122);
}
html.skin-theme-clientpref-night div.NavFrame div.NavHead {
	background-color: #27292d;
}
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os div.NavFrame div.NavHead {
		background-color: #27292d;
	}
}

/**
 * TABLEAUX
 */

.wikitable th[scope=row] {
	text-align: left;
}

/* code commun */
.alternance,
.alternance2 {
	border-collapse: collapse;
}

/* thème clair (thème par défaut) */
table:is(.alternance, .alternance2) > * > tr > th {
	background-color: var(--couleur-fond-entete-alternance, #e6e6e6);
}
.alternance tr,
.alternance th[scope="row"],
.alternance2 tr:nth-child(odd),
.alternance2 tr:nth-child(odd) th[scope="row"] {
	background-color: var(--background-color-base, #fff);
}
.alternance tr:nth-child(odd),
.alternance tr:nth-child(odd) th[scope="row"],
.alternance2 tr:nth-child(even),
.alternance2 tr:nth-child(even) th[scope="row"] {
	background-color: var(--couleur-fond-gris-alternance, #eeeeee);
}

/* thème sombre */
html.skin-theme-clientpref-night .alternance [style] a {
	color: #333 !important;
	text-decoration: underline;
}

/* thème sombre, via utilisation du thème défini dans l'OS */
@media (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .alternance [style] a {
		color: #333;
		text-decoration: underline;
	}
}

/**
 * MISES EN FORME PARTICULIÈRES DES LISTES
 */

/* Classe pour les listes horizontales séparées par des puces.
   Adaptation de la classe 'hlist' de en:User:Edokter.
   (cf. [[mw:Snippets/Horizontal lists]]).
*/
.liste-horizontale ul,
.liste-horizontale ol,
.liste-horizontale li {
	display: inline;
	padding-left: 0; /* pour la skin Minerva, padding-left au lieu de margin-left */
}

/* utilisation de la valeur de "min-width-breakpoint-desktop" */
/* https://doc.wikimedia.org/codex/latest/design-tokens/breakpoint.html */
@media (min-width: 1120px) {
	.liste-horizontale li {
		white-space: nowrap;
	}
}
.liste-horizontale li:not(:last-child)::after {
	content: "\A0· ";
	font-weight: bold;
	white-space: normal; /* nécessaire s'il n'y a pas d'espace entre les <li> dans le HTML */
}

.liste-horizontale li > ul,
.liste-horizontale li > ol {
	white-space: normal;
	margin-left: 0; /* pour la skin Minerva, override d'un style appliqué aux listes imbriquées */
}
.liste-horizontale li > ul::before,
.liste-horizontale li > ol::before {
	content: " (";
}
.liste-horizontale li > ul::after,
.liste-horizontale li > ol::after {
	content: ")";
}

.liste-horizontale ol {
	counter-reset: listitem;
}
.liste-horizontale ol > li {
	counter-increment: listitem;
}
.liste-horizontale ol > li::before {
	content: counter(listitem) ".\A0";
}

/* Style par défaut des bandeaux de portail décidés sur
   [[Wikipédia:Prise de décision/Bandeaux de portails]]
   Utilisé dans [[Modèle:Méta lien vers portail]] et [[Modèle:Portail]]. */
#bandeau-portail {
	border: solid #aaa 1px;
	background-color: #f9f9f9;
	color: #333;
	/*text-align: center;*/ /* lorsque faible largeur, mieux avec alignement à gauche */
	margin-top: 1em;
	overflow-x: auto; /* scroll sur le cadre pour éviter scroll sur la page entière */
}

html.skin-theme-clientpref-night #bandeau-portail { background-color: #101418; color: #fff; }
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os #bandeau-portail { background-color: #101418; color: #fff; }
}

#bandeau-portail,
#liste-portail {
	padding: 4px;
	margin-left: 0;
	clear: both;
}
#liste-portail li,
#bandeau-portail li{
	display: inline;
}
.bandeau-portail-element {
	white-space: nowrap;
	margin: 0 1.5em;
}
.bandeau-portail-icone {
	margin-right: 0.5em;
}
.bandeau-portail-texte {
	font-weight: bold;
}

/**
 * TYPES DE BOITES
 */

.bandeau-discussion,
.bandeau-article,
.bandeau-simple,
.bandeau-systeme {
	clear: both;
	margin: 8px 0 12px;
	border-style: solid;
	border-width: 1px 0;
	padding: 2px 5px;
	text-align: left;
}
div.bandeau-section {
	display: block;
	margin: 0 0 .7em 0;
	overflow: hidden;
	
	border-style: solid;
	border-width: 1px 0;
	padding: 2px 0 1px 4px;
	text-align: left;
}
.bandeau-cell {
	display: table-cell;
}
.homonymie .bandeau-icone {
	/* @noflip */
	padding-right: 0.5em;
}
.bandeau-container:not(.homonymie) .bandeau-icone {
	display: none;
}
.bandeau-cell > p:first-child {
	margin-top: 0;
}
.bandeau-cell > p:last-child {
	margin-bottom: 0;
}

/**
 * STYLES DE BOITES
 */
 
/* Style des bandeaux d'articles, voir [[Wikipédia:Prise de décision/Changement de style des messages d'avertissement]] */
 
.bandeau-niveau-grave {
	border-color: #aa0044;
	background-color: #ffcccc;
	color: #333;
}
.bandeau-niveau-modere {
	border-color: #ff8822;
	background-color: #ffeedd;
	color: #333;
}
.bandeau-niveau-information {
	border-color: #77ccff;
	background-color: #fbfbfb;
	color: #333;
}
.bandeau-niveau-detail,    /* voir [[Wikipédia:Prise de décision/Unification des modèles : article détaillé et Loupe]] */
.bandeau-section.bandeau-niveau-information {
	border-color: #e7e7e7;
	background-color: #fdfdfd;
	color: #333;
}

/**
 * COLONNES DES PORTAILS
 */
.portail-gauche,
.portail-droite {
	box-sizing: border-box;
}
.portail-gauche {
	float: left;
	padding-right: 1.2rem;
}
.portail-droite {
	float: right;
}
@media screen and (max-width: 981px) {
	.portail-gauche,
	.portail-droite {
		float: none;
		width: auto !important;
	}
	.portail-gauche {
		padding-right: 0;
	}
}

/* Infobox V2 (voir : [[Projet:Infobox/V2]]) */
.infobox_v2 {
	font-size: 90%;
	line-height: 1.1em;
	border-spacing: 5px;
	border-collapse:separate;
	background: #f9f9f9;
	color: #333;
}
.infobox_v2 th {
	vertical-align: super;
	text-align: left;
}
.infobox_v2 .entete {
	height: 43px;
	vertical-align: middle;
	text-align: center;
	font-size: 140%;
	font-weight: bolder;
	line-height: 1.1em;
	color: #000;
}
/* Pour [[Modèle:Image et son]], etc. */
.infobox_v2 .media {
	height: 35px;
	vertical-align: middle;
	text-align: center;
	font-weight: bolder;
	color: #000;
}

@media screen and (min-width: 720px) {
	table.infobox_v2 {
		width: 294px !important;
	}
	table.infobox_v2,
	.infobox_v3 {
		clear: right;
		float: right !important;
		margin: 0 0 0.5em 1em;
	}
}

/* Infobox V3 */
div.infobox_v3 {
	font-size: 0.9em;
	line-height: 1.4em;
	max-width: 325px;
	margin: auto;
	word-wrap: break-word;
	background: #f9f9f9;
	color: #333;
}
.infobox_v3 .entete {
	display: table;
	height: 45px;
	width: 100%;
	font-weight: bold;
	text-align: center;
	font-size: 1.4em;
	line-height: 1.1em;
	margin-bottom: 10px;
	background-color: #dfedff;
	color: #333;
}
.infobox_v3 .entete > div {
	display: table-cell;
	vertical-align: middle;
	padding: 3px;
}

/* Images */
.infobox_v3 .images {
	text-align: center;
	display: flex;
	justify-content: space-around;
	align-items: center;
}
.infobox_v3 .images a {
	max-width: 100%;
}
.infobox_v3 .deux-images a {
	max-width: 48%;
}
.infobox_v3 .images img {
	max-width: 100%;
	height: auto;
}
.infobox_v3 .legend {
	font-size: 0.9em;
	text-align: center;
	margin: 5px 0 8px 0;
}
/* Tableaux */
.infobox_v3 table {
	width: 100% !important;
	margin: 5px 0;
	table-layout: fixed;
	border-collapse: collapse;
}
.infobox_v3 th[scope="col"] {
	text-align: center;
	word-wrap: normal;
}
.infobox_v3 th[scope=row] {
	text-align: left;
	/* @noflip */
	padding-right: 10px;
	width: 8em;
	max-width: 140px;
	word-wrap: normal;
}
.infobox_v3 th[scope=row],
.infobox_v3 td {
	padding-top: 4px;
	vertical-align: super;
}
.infobox_v3 .middle {
	vertical-align: middle;
}
.infobox_v3 .left td {
	text-align: left;
}
.infobox_v3 .vborder td:not(:first-child) {
	border-left: 1px dotted #aaa;
	padding-left: 3px;
}
.infobox_v3 tr.vborder td:not(:last-child) {
	padding-right: 3px;
}
.infobox_v3 .data {
	text-align: center;
}
/* Titres bloc et caption tableaux */
.infobox_v3 .bloc,
.infobox_v3 .bordered,
.infobox_v3 table caption {
	font-weight: bold;
	text-align: center; /* il faut veiller à avoir la priorité sur cette règle de MediaWiki : .content table caption { text-align: left; } */
	line-height: 1.1em;
	margin: 0 0 5px 0;
	padding: 4px;
}
.infobox_v3 table caption,
.infobox_v3 .bloc {
	background: #dfedff; /* il faut veiller à avoir la priorité sur cette règle de MediaWiki : @media screen and (min-width: 720px) { .content table caption { background: inherit; } } */
	color: #333;
}
.infobox_v3 .bloc {
	margin: 5px 0;
}
.infobox_v3 .bordered {
	border-top: 1px solid #dfedff;
	border-bottom: 1px solid #dfedff;
	background: transparent;
}
/* TODO : mettre à jour la classe .hidden générique */
.infobox_v3 caption.hidden {
	margin: 0 !important;
	padding: 0 !important;
}
/* Séparateur */
.infobox_v3 .hr {
	font-size: 1px;
	line-height: 1px;
	margin: 5px 0;
	background-color: #dfedff;
	color: #333;
}
.infobox_v3 .hr.collapse {
	margin: 5px 0 -8px 0;
}
/* Tnavbar */
.infobox_v3 .navbar {
	text-align: right;
	font-size: 0.8em;
}
.infobox_v3 .navbar .plainlinks {
	float: left;
}
/* Navigateur */
.infobox_v3 .overflow {
	overflow: hidden;
}
.infobox_v3 .bordered.infobox-navigateur,
.infobox_v3 .bordered.navbar {
	border-bottom: 0 !important;
	font-weight: normal !important;
}
.infobox_v3 .prev a,
.infobox_v3 .prev_bloc {
	background: url("//upload.wikimedia.org/wikipedia/commons/thumb/4/49/ArrowLeftNavbox.svg/12px-ArrowLeftNavbox.svg.png") no-repeat left center;
	float: left;
	max-width: 40%;
	padding: 0 0 0 18px;
	text-align: left;
}
.infobox_v3 .next a,
.infobox_v3 .next_bloc {
	background: url("//upload.wikimedia.org/wikipedia/commons/thumb/1/10/ArrowRightNavbox.svg/12px-ArrowRightNavbox.svg.png") no-repeat right center;
	float: right;
	max-width: 40%;
	padding: 0 18px 0 0;
	text-align: right;
}

/* Graphiques transparents d'en-têtes des Infobox */
.entete {
	background-position: right center;
	background-repeat: no-repeat;
}

/* Pour le [[modèle:Infobox/Géolocalisation multiple]] et le [[modèle:Géolocdual]]. */
.img_toggle ul {
	list-style: none;
	text-align: center;
}

/* Pages de discussion */
.ext-discussiontools-init-replylink-buttons ~ dl {
	margin: 0.2em;
}


/* Page d'accueil 2017 */

.accueil_2017_cadre {
	margin-bottom: 1.5rem;
}

.accueil_2017_cadre h2 {
	font-variant: small-caps;
	letter-spacing: 0.01em;
	border-bottom: solid 0.2rem #bdd8fb;
	padding-bottom: 0.4em;
	margin-bottom: 0.2em;
}

.accueil_2017_pied {
	margin-top: 1.2em;
	font-size: 85%;
	text-align: right;
}

#accueil_2017_contenu .portail-gauche,
#accueil_2017_contenu .portail-droite {
	float: none;
}
#accueil_2017_contenu .portail-gauche {
	padding-right: 0;
}

/* Correctif temporaire en attendant la résolution de T216318. 
   Annule les attributs width=0 et height=0 de l'image générée par <timeline>. */
div.timeline-wrapper > img.image-lazy-loaded {
    width: auto;
    height: auto;
}

q {
  quotes: "«\a0" "\a0»";
  font: inherit;
}