MediaWiki:Common.css

De Poképédia
Aller à la navigation Aller à la recherche

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
  • Opera : appuyez sur Ctrl + F5.
/** Le CSS placé ici sera appliqué à toutes les apparences hors version mobile. Voir [[MediaWiki:Mobile.css]] pour modifier les styles de la version mobile. */

/********** CLASSES STANDARDS POUR LES TABLEAUX (FICHEINFO, NAVIVATION ET BADGE COMPRIS) **********/

/* reset de la classe wikitable du skin vector */
table.wikitable > tr > th, table.wikitable > tr > td,
table.wikitable > * > tr > th, table.wikitable > * > tr > td {
	border: inherit;
	padding: inherit;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: #cfe4f2;
    padding: 3px;
    text-align: center;
}

/* Tableaux selon la charte graphique. Ils sont centrés par défaut. */
table.tableaustandard, table.wikitable {
    max-width: 75%;
    margin: 1em auto 1em auto;
    border: 1px solid #aaa;
    border-collapse: separate;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: #e4f0f7;
    padding: 3px;
    color: black;
}
table.tableaustandard th, table.tableaustandard td, table.wikitable th, table.wikitable td {
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    vertical-align: middle;
}
table.tableaustandard th, table.wikitable th {
    background-color: #cfe4f2;
    padding: 3px;
    text-align: center;
}
table.tableaustandard td, table.wikitable td {
    background-color: #fcfcfc;
    padding: 5px;
}
table.tableaustandard caption, table.wikitable caption {
    margin-left: inherit;
    margin-right: inherit;
    font-weight: bold;
}

/* Parfois, on veut tout centrer */
table.centre td {
    text-align: center;
}

/* Pour les fiches d'information (infoboxes), utiliser la classe ficheinfo en plus de tableaustandard */
table.ficheinfo {
    float: right;
    width: 30%;
    max-width: 30%;
    margin-left: 1em;
    clear: right;
}
table.ficheinfo th.entêtesection {
    text-align: center;
}
table.ficheinfo th {
    text-align: right;
}
table.ficheinfo td.illustration {
    background-color: #ffffff;
    text-align: center;
}
table.ficheinfo td.précision {
    background-color: #eef6fa;
    text-align: center;
    font-size: 0.9em;
}

/* Pour les tableaux de navigation (bas d'articles), utiliser la classe navigation en plus de tableaustandard */
table.navigation {
    clear: both;
    max-width: 75%;
}
table.navigation caption {
    font-size: 1.1em;
    font-weight: bold;
}
table.navigation td {
    text-align: center;
    font-size: 0.9em;
}

/* Pour les badges (boîtes) utilisateur et projets, utiliser la classe badge en plus de tableaustandard */
table.badge {
    width: 16rem;
    max-width: 16rem;
    margin-right: auto;
    margin-left: 0;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    padding: 0;
    height: 4rem;
    font-size: 0.9em;
}
table.badge th {
    width: 4rem;
}

/* Pour obtenir des tableaux dont la ligne d'entête reste fixe à l'écran malgré le défilement */
table.entetefixe {
	position: relative;
}
table.entetefixe thead, table.entetefixe tbody th {
	position: sticky;
	top: 0;
}
table.tableaustandard.pokeliste td, table.tableaustandard.listeobjets td {
	text-align:left;
	white-space:nowrap;
}

table.tableaustandard.listedesobjets td:nth-child(1),
table.tableaustandard.listedesobjets .résistance,
table.tableaustandard.listedesobjets .faiblesse,
table.tableaustandard.listedesobjets .standard,
table.tableaustandard.listedesobjets .immunité {
	text-align:center;
}

table.tableaustandard.listedesobjets td:nth-child(2),
table.tableaustandard.listedesobjets td:nth-child(4),
table.tableaustandard.listedesobjets td:nth-child(5),
table.tableaustandard.listedesobjets td:nth-child(6) {
	white-space:nowrap;
}

/********** BANDEAUX **********/
ul.bandeau {
    list-style-type: none;
    list-style-image: none;
    list-style-position: none;
    margin: 1em auto;
    width: 66%;
    padding: 4px;
    border: 4px double #b22222;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
ul.bandeau li {
    display: -ms-flexbox;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    display:flex;
    align-items: center;
    justify-content: center;
    margin: 1px auto;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    background: #eaf4fd;
    text-align: center;
    padding: 0.5em;
}
ul.bandeau li > span {
    margin-left: 1em;
}

/********** PORTAILS **********/

/* Pour faire des lignes et des colonnes, sans tableaux */
.bloc-ligne {
	display:-ms-flexbox;
	display:flex;
	-ms-flex-align: stretch;
	align-items: stretch;
	-ms-flex-pack: justify;
	justify-content: space-between;
}
.bloc-colonne {
	display:-ms-flexbox;
	display:flex;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-align: stretch;
	align-items: stretch;
	-ms-flex-pack: center;
	justify-content: center;
}
.bloc-liste {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

/* Général */
.portail-bloc {
	border:2px solid #b9cce4;
	margin-bottom: 0.5em;
	padding: 0.8em; 
}
#mw-content-text > .portail-bloc:first-of-type {
	border-radius: 8px 8px 0px 0px;
	-moz-border-radius: 8px 8px 0px 0px;
	-webkit-border-radius: 8px 8px 0px 0px;
}
#mw-content-text > .portail-bloc:last-of-type {
	border-radius: 0px 0px 8px 8px;
	-moz-border-radius: 0px 0px 8px 8px;
	-webkit-border-radius: 0px 0px 8px 8px;
}
#portail-partieprincipale .portail-miseenavant:last-of-type, #portail-miseenavantsecondaire .portail-bloc:last-of-type, #portail-categories .portail-bloccatégories:last-of-type {
    position:relative;
}
.lien-modification {
    position:absolute;
    right: 0;
    bottom: 0;
    font-size: small;
}
.lien-modification a.external { /* classe plainlinks */
    background: transparent none repeat scroll 0% 0% !important;
    padding: 0px !important;
}

/* Section Présentation */
#portail-presentation {
	text-align: center;
	flex-wrap: wrap;
}
#portail-introduction {
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-preferred-size: 18rem;
	flex-basis: 18rem;
}
#portail-exploration {
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-preferred-size: 9rem;
	flex-basis: 9rem;
	font-variant: small-caps;
	margin: auto auto;
}
#portail-illustration {
	-ms-flex-item-align: start;
	align-self: flex-start;
	background: white;
	width: 120px;
	border-radius: 100px;
	-moz-border-radius: 100px;
	-webkit-border-radius: 100px;
	border: solid 4px #b9cce4;
	padding: 6px;
	margin: 1em;
}

/* Section Contributions */
#portail-contributions {
	text-align: center;
	padding: 0.1em 0.1em;
	flex-wrap: wrap;
}
#portail-contributions > div {
	background-color:#eaf4fd;
	margin: 0.1em;
	-ms-flex-positive: 1;
	flex-grow: 1;
	line-height:2rem;
}
#portail-contributions > div:first-child {
	-ms-flex-positive: 1.3;
	flex-grow: 1.3;
	font-weight: bold;
}

/* Section Mises en avant */
.portail-miseenavant {
	width: 50%;
	text-align: center;
}
#portail-partieprincipale > div:first-child {
	-ms-flex-positive: 1;
	flex-grow: 1;
}
.portail-miseenavant:first-of-type {
	border-right: 2px dotted #DDDDF7;
}
.portail-miseenavant h3 {
	margin-top: 1em;
}
.portail-miseenavant h3:first-of-type {
	margin-top: 2em;
}
#portail-miseenavantsecondaire {
	width: 20rem;
	text-align: center;
	margin-left: 0.5em;
}
#portail-miseenavantsecondaire > .portail-bloc {
	-ms-flex-positive: 1;
	flex-grow: 1;
	background: #eaf4fd;
}

/* Section Catégories */
.portail-bloccatégories {
	-ms-flex-positive: 1;
	flex-grow: 1;
	-ms-flex-preferred-size: 18rem;
	flex-basis: 18rem;
	height: 5em;
	background: #eaf4fd;
	margin: 0.1em;
	padding: 0.8em;
	display: flex;
	justify-content: space-between;
}
.portail-bloccatégories > div {
	margin-left: 1em;
	flex-grow: 1;
}
.portail-bloccatégories > div.floatleft {
    max-width: 55px;
}
#portail-categories {
	padding: 0.1em 0.1em;
}

/********** AUTRES DÉFINITIONS DE STYLES **********/

/* Bloc de citation */
blockquote {
  border-width:1px 0px; 
  border-style:dotted;
  border-color:#b9cce4;
  background-color: #f3f7fa;
  font-style:italic;
  padding-left:1em;
  padding-right:1em;
}

/* Avancement */
.avancementFaible, .avancementUrgent {
  background: #ff0000;
  background:-moz-linear-gradient(0deg, #FED0BF, #ff0000); 
  background:-webkit-gradient(linear, left top, right top, from(#FED0BF), to(#ff0000));
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FED0BF', endColorstr='#ff0000');
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FED0BF', endColorstr='#ff0000')";
}
.avancementMoyen {
  background: #FFA500;
  background:-moz-linear-gradient(0deg, #FEE9BF, #FFA500); 
  background:-webkit-gradient(linear, left top, right top, from(#FEE9BF), to(#FFA500));
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FEE9BF', endColorstr='#FFA500');
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FEE9BF', endColorstr='#FFA500')";
}
.avancementImportant {
  background: #18c621;
  background:-moz-linear-gradient(0deg, #D4FEE7, #18c621); 
  background:-webkit-gradient(linear, left top, right top, from(#D4FEE7), to(#18c621));
  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#D4FEE7', endColorstr='#18c621');
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#D4FEE7', endColorstr='#18c621')";
}

/* Boutons afficher-masquer */
button[value=afficher], button[value=masquer] {
  display: none;
  border: none;
  background: none;
  color: #0645ad;;
}
button[value=afficher]:hover, button[value=masquer]:hover {
  text-decoration: underline;
}
button[value=afficher]:active, button[value=masquer]:active {
  color: #faa700;
}

/* Changement de la génération affichée pour certaines sections (Localisations des Pokémon, par exemple).
La première classe place correctement les liens, la deuxième affiche l'affiche de la/des génération(s) affichée(s) */
.permuter {
  margin-top: -3em;
}
.affichage-actuel {
  font-size: 1.8em;
  font-weight: normal;
}

/* Ancres à côté des titres de section. @license http://krinkle.mit-license.org/ @author Timo Tijhof, 2013–2014 */
.mw-header {
	/* core sets this to fix editsection link bunching, but they no longer float
	 * and we need this so that the anchors are visible */
	overflow: visible;
}
.mw-headline-headanchor {
	padding-left: 17px;
	margin-left: -17px;
	background-size: 14px 12px;
	background-repeat: no-repeat;
	background-position: 0 50%;
}
.mw-headline-headanchor,
.mw-headline-headanchor:hover,
.mw-headline-headanchor:visited {
	color: inherit;
	text-decoration: none;
}
.mw-headline-headanchor:focus {
	outline: 0;
}
.mw-header:hover .mw-headline-headanchor,
.mw-headline-headanchor:target {
	background-image: url('/images/c/c6/Ic%C3%B4ne_lien.png');
}

/* Animations de capacité */
.run-animation {
  cursor: pointer;	
}

/* Sensibilités Pokémon - coloration des remarques */
table.sensibilite li:target { background-color: #ddeeff; }

/* Sensibilités Pokémon - taille des div colorés montrant l'efficacité */
.sensibilite .ligne-efficacités > td > div {
	width: 62px;
	height: 22px;
	border-radius: 3px;
	margin: auto;
}

/* Bandeau en haut des modif récentes */
.mw-recentchanges-toplinks > span {
	display: none;
}
.mw-recentchanges-toplinks > div {
	display: block !important;
}

/* Troncature des liens manquants dans les imageries (et uniquement là) */
.liensrougesreduits a.new::before {
    content: "(?)";
    width: 30px;
    display: inline-block;
    vertical-align: baseline;
}
.liensrougesreduits a.new {
    width: 30px;
    overflow: hidden;
    display: inline-block;
    vertical-align: baseline;
    white-space: nowrap;
}

/* Limite de taille pour les images, utilisée sur le [[Modèle:Cellule Pokémon]] */
.maxheight100px img {
    max-height: 100px;
    width: auto;
}

/********** CORRECTIONS CSS LÉGÈRES À DES STYLES EXISTANTS **********/

/* Références, notamment la coloration en bleu après avoir cliqué sur une référence */
.references { font-size: 85%; }
ol.references li:target { background-color: #ddeeff; }
sup.reference:target { background-color: #ddeeff; }

/* Pour cacher le titre de la page d'accueil (seul cas autorisé) */
body.action-view.page-Portail_Accueil #firstHeading {
    position: absolute;
    top: -5000px;
}

/* Style du bouton pour enrouler les tableaux (notamment) */
.mw-collapsible-toggle {
  font-weight: normal;
}

/* Pour les petits écrans, l'habillage Monobook fait en sorte que les images suivent la taille de l'élément parent.
   Cela ne convient pas pour les sprites de Modèle:TableauDresseurHaut d'où la règle suivante pour annuler. */
@media screen and (max-width:550px) {
	body.skin--responsive .monobook-body .maxheight100px img {
		max-width: unset !important;
	}
}

/********** STYLES DONT L'UTILISATION DOIT ÊTRE PRÉCISÉE *********/

/* terme défini */
dfn {
  font-style: normal;
  font-weight: bold;
}
i dfn {
  font-style: italic;
}

.maxwidth250px img {
    max-width: 250px;
    height: auto;
}

.maxwidth300px img {
    max-width: 300px;
    height: auto;
}

.miniature-type-2 {
    max-height:30px;
    max-width:60px;
    height:auto;
    width:auto;
    min-width:30px;
}

.type img {
	width: 80px;
	height: auto;
}
.catégorie img {
	width: 40px;
	height: auto;
}

.miniature img,
.miniature_PDMDX img,
.miniature_Q img,
.miniature_DEPS img,
.miniature_LPA img,
.miniature_EV img,
.miniature_Sleep img {
	max-height: 52px;
	width: auto;
}

.miniature_objet img,
.miniature_objet_EB img,
.miniature_objet_DEPS img,
.miniature_objet_LPA img,
.miniature_objet_EV img {
	max-height: 32px;
	width: auto;
}

.miniature_objet_RB img,
.miniature_objet_J img,
.miniature_objet_OA img,
.miniature_objet_C img,
.miniature_objet_RS img,
.miniature_objet_RFVF img,
.miniature_objet_E img,
.miniature_objet_DP img,
.miniature_objet_Pt img,
.miniature_objet_HGSS img,
.miniature_objet_NB img,
.miniature_objet_N2B2 img,
.miniature_objet_XY img,
.miniature_objet_ROSA img {
	height: 32px;
	width: auto;
	object-position: center center;
	object-fit: none;
}

.fit28px img {
	max-height: 28px;
	width: auto;
	object-position: center center;
	object-fit: none;
}

.explain {
  text-decoration: underline dotted;
  cursor: help;
}

.premiere-maj a {
	display: inline-block;
	vertical-align: baseline;
}
.premiere-maj a::first-letter {
	text-transform: uppercase;
}

/* essai : affichage différent sur mobile et sur version bureau */
tr.masquerbureau, th.masquerbureau {
	display: none;
}

table.bandeau {
	margin-top:7px;
}