MediaWiki:Common.css
Révision datée du 1 août 2018 à 15:45 par Simon (discussion | contributions)
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.
/* ajustement teme timelapse */
.color-middle, .color-left, .color-right {
background: #4eacea;
height: 0.11em;
}
.mw-editsection-divider {
display: none;
}
.mw-editsection a:nth-of-type(2) {
display: none;
}
#mw-content h1.firstHeading {
margin: 0.25em 0 0.5em;
border-bottom: solid 2.5px #cccccc;
width: 100%;
}
/* Infobox V3 */
div.infobox_v3 {
padding: 5px;
width: 25em;
background: #f9f9f9;
border: 1px solid #aaa;
clear: right;
float: right;
font-size: 0.9em;
line-height: 1.4;
margin: 0 0 0.5em 1em;
max-width: 325px;
word-wrap: break-word;
}
.infobox_v3 .entete {
display: table;
height: 45px;
width: 100%;
font-weight: bold;
text-align: center;
font-size: 1.4em;
line-height: 1.1;
margin-bottom: 10px;
background-color: #dfedff;
}
.infobox_v3 .entete > div {
display: table-cell;
vertical-align: middle;
padding: 3px;
}
.infobox_v3:not(.large) .entete.icon > div {
padding: 3px 48px;
}
/* Images */
.infobox_v3 .images {
text-align: center;
display: flex;
justify-content: space-around;
align-items: center;
}
.infobox_v3 .images a {
max-width: 100%;
flex: 0 0 auto; /* be kind ie11 */
}
.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%;
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;
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 th[scope=row].middle {
vertical-align: middle;
}
.infobox_v3.bordered th[scope=row],
.infobox_v3.bordered td {
padding-bottom: 4px;
border-top: 1px solid #dfedff;
}
.infobox_v3.bordered caption.bordered {
margin: 0 0 -1px 0;
}
.infobox_v3 tr.left td {
text-align: left;
}
.infobox_v3 tr.vborder td {
border-left: 1px dotted #aaa;
}
.infobox_v3 tr.vborder td:first-child {
border-left: none;
}
.infobox_v3 td.data {
text-align: center;
}
.infobox_v3 tr:first-child ul:first-child {
margin-top: 0;
}
/* Titres bloc et caption tableaux */
.infobox_v3 p.bloc,
.infobox_v3 caption {
font-weight: bold;
text-align: center;
line-height: 1.1;
margin: 0 0 5px 0;
padding: 4px;
background: #dfedff;
}
.infobox_v3 p.bloc {
margin: 5px 0;
}
.infobox_v3 caption.bordered,
.infobox_v3 p.bordered {
border-top: 1px solid #dfedff;
border-bottom: 1px solid #dfedff;
background: transparent;
}
.infobox_v3 .bordered.navbar,
.infobox_v3 .bordered.nav {
padding-top: 4px;
border-bottom: 0;
}
/* 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;
}
.infobox_v3 .hr.collapse {
margin: 5px 0 -8px 0;
}
/* Tnavbar */
.infobox_v3 .navbar {
text-align: right;
font-size: 0.8em;
line-height: 1.1;
margin: 8px 0 0;
}
.infobox_v3 .navbar .plainlinks {
float: left;
}
/* Navigateur */
.infobox_v3 .overflow {
overflow: hidden;
}
.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;
}
/* Divers */
.infobox_v3 table.maillot-equipe td {
padding: 0;
}
.infobox_v3 table.maillot-equipe {
table-layout: auto;
}
/* Taxobox V3 (cf. [[Utilisateur:Hexasoft/Taxobox code V3]]) */
.taxobox_v3 {
font-size: 0.99em !important;
padding: 1px;
}
/* Style global par défaut */
div.taxobox_v3 .entete,
.taxobox_v3 caption,
.taxobox_v3 p.bloc {
font-style: normal;
}
/* Ne pas utiliser le gras dans la partie gauche des lignes données mixtes */
.taxobox_v3 th {
font-weight: normal;
}
/* Change la couleur des séparateur d'un bleu pâle à gris pâle */
div.taxobox_v3.bordered th[scope=row],
div.taxobox_v3.bordered td {
padding-bottom: 4px;
border-top: 1px solid #ededed;
}
/* Couleur "animal" (titre, sections) */
div.taxobox_v3.animal .entete {
background-color: LightSalmon;
}
.taxobox_v3.animal caption,
.taxobox_v3.animal p.bloc {
background-color: Bisque;
}
/* Couleur "plante" (titre, sections) */
div.taxobox_v3.plante .entete {
background-color: lightgreen;
}
.taxobox_v3.plante caption,
.taxobox_v3.plante p.bloc {
background-color: #ccffcc;
}
/* Couleur "champignon" (titre, sections) */
div.taxobox_v3.champignon .entete {
background-color: SkyBlue;
}
.taxobox_v3.champignon caption,
.taxobox_v3.champignon p.bloc {
background-color: PowderBlue;
}
/* Couleur "test" (titre, sections) */
div.taxobox_v3.test .entete {
background-color: #50a0a0;
}
.taxobox_v3.test caption,
.taxobox_v3.test p.bloc {
background-color: #70c0c0;
}
/* Couleur "algue" (titre, sections) */
div.taxobox_v3.algue .entete {
background-color: MediumAquamarine;
}
.taxobox_v3.algue caption,
.taxobox_v3.algue p.bloc {
background-color: #bfffe6;
}
/* Couleur "archaea" (titre, sections) */
div.taxobox_v3.archaea .entete {
background-color: darkgray;
}
.taxobox_v3.archaea caption,
.taxobox_v3.archaea p.bloc {
background-color: lightgray;
}
/* Couleur "protiste" (titre, sections) */
div.taxobox_v3.protiste .entete {
background-color: khaki;
}
.taxobox_v3.protiste caption,
.taxobox_v3.protiste p.bloc {
background-color: PaleGoldenrod;
}
/* Couleur "virus" (titre, sections) */
div.taxobox_v3.virus .entete {
background-color: #d1d1f9;
}
.taxobox_v3.virus caption,
.taxobox_v3.virus p.bloc {
background-color: Lavender;
}
/* Couleur "neutre" (titre, sections) */
div.taxobox_v3.neutre .entete {
background-color: #eee;
}
.taxobox_v3.neutre caption,
.taxobox_v3.neutre p.bloc {
background-color: #eee;
}
/* Couleurs "bactérie", "eucaryote" et "procaryote" (titre, sections) */
div.taxobox_v3.bacterie .entete,
div.taxobox_v3.eucaryote .entete,
div.taxobox_v3.procaryote .entete {
background-color: lightgrey;
}
.taxobox_v3.bacterie caption,
.taxobox_v3.bacterie p.bloc,
.taxobox_v3.eucaryote caption,
.taxobox_v3.eucaryote p.bloc,
.taxobox_v3.procaryote caption,
.taxobox_v3.procaryote p.bloc {
background-color: #e6e6e6;
}
/* Style typographique : zoologie ou rien (botanique) */
div.taxobox_v3 .taxobox_classification {
font-style: italic;
}
div.taxobox_v3 .taxobox_classification .rnormal,
div.taxobox_v3.zoologie .taxobox_classification .normal,
div.taxobox_v3 th[scope="row"] {
font-style: normal;
}
/* Version distincte de "alternance", afin d'être indépendant des choix fait par
ailleurs et de pouvoir modifier à volonté l'aspect. */
table.taxoalternance tr,
.taxoalternance.wikitable th[scope="row"] {
background: #fff;
}
table.taxoalternance tr:nth-child(odd),
.taxoalternance.wikitable tr:nth-child(odd) th[scope="row"] {
background: #f5f5f5;
}
/* Effets dégradés : utilisables pour un effet ombragé dans les modèles de cadre
(par exemple : [[Portail:Montréal/Cadre]]). Ceux-ci ne doivent pas dépasser 43
pixels de hauteur au risque d'y voir un effet indésirable. */
.degrade {
background-image: url("//upload.wikimedia.org/wikipedia/commons/f/fb/Gradient_43px.png");
background-position: top;
background-size: 100% 100%;
background-repeat: repeat-x;
}
.degrade_rev {
background-image: url("//upload.wikimedia.org/wikipedia/commons/6/61/Gradient_reversed_43px.png");
background-position: top;
background-repeat: repeat-x;
}
.degrade_double {
background-image: url("//upload.wikimedia.org/wikipedia/commons/b/ba/Double_Gradient_60px_V.png");
background-position: top;
background-repeat: repeat;
}
/* 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;
}