« MediaWiki:Common.css » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 25 : | Ligne 25 : | ||
} | } | ||
.infobox tr td | .infobox tr th, | ||
.infobox tr td { | |||
text-align: left; | text-align: left; | ||
} | } | ||
Version du 5 mars 2026 à 00:00
/* Style global pour toutes les infobox */
.infobox {
background-color: #f9f9f9; /* Fond général */
color: #000; /* Couleur du texte */
font-size: 90%; /* Taille du texte */
line-height: 1.2em; /* Hauteur de ligne */
float: right; /* Position à droite du texte */
clear: right; /* Evite chevauchement avec autres floats */
margin: 0 0 0.5em 1em; /* Espacement autour de l'infobox */
width: 294px; /* Largeur fixe */
border: 1px solid #a2a9b1; /* Bordure */
}
/* Titre principal de l'infobox */
.infobox .infobox-title {
height: 45px;
width: 100%;
font-weight: bold;
text-align: center;
font-size: 1.4em;
line-height: 1.1;
margin-bottom: 10px;
background-color: #dfedff; /* Fond du titre */
color: #202122; /* Couleur du texte du titre */
}
.infobox tr th,
.infobox tr td {
text-align: left;
}
/* Lignes alternées pour plus de lisibilité */
.infobox tr:nth-child(odd) {
background-color: #eaf2ff; /* Ligne impaire */
}
.infobox tr:nth-child(even) {
background-color: #f9f9f9; /* Ligne paire */
}
/* Cellules générales */
.infobox td, .infobox th {
padding: 3px 5px;
}
/* Image centrée */
.infobox td[colspan="2"] {
text-align: center;
}