« 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 11 : | Ligne 11 : | ||
/* TABLEAUX PERSONNALISÉS */ | /* TABLEAUX PERSONNALISÉS */ | ||
/* TABLEAUX PERSONNALISÉS TABLO */ | |||
/* Style général */ | |||
.mw-parser-output table.tablo { | .mw-parser-output table.tablo { | ||
border-collapse: collapse; | border-collapse: collapse; | ||
width: auto; | |||
} | } | ||
/* | /* En-têtes */ | ||
.mw-parser-output table.tablo | .mw-parser-output table.tablo th { | ||
background-color: #4b3124; | background-color: #4b3124 !important; | ||
color: # | color: #ffffff !important; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 6px; | |||
padding | text-align: center; | ||
} | } | ||
/* Cellules */ | |||
.mw-parser-output table.tablo td { | .mw-parser-output table.tablo td { | ||
padding: 4px 6px; | |||
border: 1px solid #e7dfc6; | |||
padding: 4px; | |||
border | |||
} | } | ||
/* | /* Zébrage automatique */ | ||
.mw-parser-output table.tablo tr:nth-child(even) td { | |||
.mw-parser-output table.tablo tr | |||
background-color: #f3efe2; | background-color: #f3efe2; | ||
} | } | ||
.mw-parser-output table. | .mw-parser-output table.tablo tr:nth-child(odd) td { | ||
background-color: # | background-color: #ffffff; | ||
} | } | ||
Version du 12 février 2026 à 21:07
/* Neutralise wikitable quand tablo est présent */
.mw-parser-output table.tablo.wikitable,
.mw-parser-output table.tablo.wikitable td,
.mw-parser-output table.tablo.wikitable th {
all: unset;
display: table-cell;
padding: 4px;
border-collapse: collapse;
}
/* TABLEAUX PERSONNALISÉS */
/* TABLEAUX PERSONNALISÉS TABLO */
/* Style général */
.mw-parser-output table.tablo {
border-collapse: collapse;
width: auto;
}
/* En-têtes */
.mw-parser-output table.tablo th {
background-color: #4b3124 !important;
color: #ffffff !important;
font-weight: bold;
padding: 6px;
text-align: center;
}
/* Cellules */
.mw-parser-output table.tablo td {
padding: 4px 6px;
border: 1px solid #e7dfc6;
}
/* Zébrage automatique */
.mw-parser-output table.tablo tr:nth-child(even) td {
background-color: #f3efe2;
}
.mw-parser-output table.tablo tr:nth-child(odd) td {
background-color: #ffffff;
}