« MediaWiki:Common.css » : différence entre les versions

Ajout styles pour bandeaux
Aucun résumé des modifications
(Ajout styles pour bandeaux)
Ligne 59 : Ligne 59 :
.liste-horizontale ol > li::before {
.liste-horizontale ol > li::before {
content: counter(listitem) ".\A0";
content: counter(listitem) ".\A0";
}
/* Boîtes de messages */
/* Types de boites */
.bandeau-article,
.bandeau-discussion,
.bandeau-simple,
.bandeau-systeme,
.bandeau-section{
border-style: solid;
overflow: hidden;
position: relative;
}
.bandeau-article {
border-width: 1px 1px 1px 10px;
font-size: 0.9em;
line-height: 1.25em;
padding: 0.5em 1em;
margin: 0.8em 10%;
}
.bandeau-systeme {
clear: both;
border-width: 2px;
padding: 0.5em 1em;
margin: 0.8em 3%;
}
.bandeau-simple {
clear: both;
border-width: 1px;
padding: 0.5em 1em;
margin: 0.8em auto;
}
.bandeau-discussion {
border-width: 1px;
border-radius: 10px;
padding: 0.2em 0.5em;
margin: 0.8em 7%;
}
@media (max-width: 981px) {
.bandeau-discussion {
margin: 0.8em 4%;
}
}
div.bandeau-section { /* Pour le [[modèle: Article détaillé]] et autres */
display: block;
font-size: 0.95em;
border-width: 1px 0;
padding: 0.2em 0.5em 0.3em 0;
margin: 0.3em 0 0.7em 2em;
}
.bandeau-centrer {
display: table;
width: 100%;
text-align: center;
}
.bandeau-cell {
display: table-cell;
vertical-align: middle;
}
.bandeau-cell > p:first-child {
margin-top: 0;
}
.bandeau-cell > p:last-child {
margin-bottom: 0;
}
/* 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;
}
.bandeau-niveau-modere {
border-color: #ff8822;
background-color: #ffeedd;
}
.bandeau-niveau-ebauche,
.bandeau-niveau-information {
border-color: #77ccff;
background-color: #fbfbfb;
}
.bandeau-simple.bandeau-niveau-information,
.bandeau-discussion.bandeau-niveau-information { /* Dérive de la classe vectorbox */
border-color: #a7d7f9;
background-color: #f5faff;
}
.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;
}
.bandeau-niveau-neutre {
border-color: #aaa;
background: #f9f9f9;
}
.bandeau-icone {
vertical-align: middle;
text-align: center;
width: 45px;
/* @noflip */
padding-right: 1em;
}
:is(.homonymie, .bandeau-section) .bandeau-icone {
width: auto;
/* @noflip */
padding-right: 0.5em;
}
.bandeau-titre {
font-size: 1.1em;
line-height: 1.4em;
}
.bandeau-texte {
font-size: 0.9em;
line-height: 1.2em;
}
}