MediaWiki:Common.css : Différence entre versions
Sauter à la navigation
Sauter à la recherche
Piw>Manager (Page créée avec « →Le CSS placé ici sera appliqué à tous les habillages. : body { width: 100%; background: #FFFFFF; } /* wikitable/prettytable class for skinning normal tables… ») |
m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 17 février 2020 à 19:21
/* Le CSS placé ici sera appliqué à tous les habillages. */
body {
width: 100%;
background: #FFFFFF;
}
/* wikitable/prettytable class for skinning normal tables */
/* D'après https://en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_12#CSS_striped_for_.wikitable, le 21/01/2016 23:18 */
table.wikitable,
table.prettytable {
width : 100%
margin: 1em 1em 5em 1em;
background: #ffff00;
border: 1px #aaa solid;
border-collapse: collapse;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
border: 1px #aaa solid;
padding: 0.0em;
}
.wikitable th,
.prettytable th {
background-color: #777777;
text-align: center;
}
.wikitable tr:nth-child(2n+2),
.prettytable tr:nth-child(2n+2) { /* The striping is handled by the :nth-child pseudo-class, with the odd row adjusted. */
background: #f0f0f0;
}
.wikitable tr:nth-child(2n+1),
.prettytable tr:nth-child(2n+1) { /* The striping is handled by the :nth-child pseudo-class, with the even row adjusted. */
background: #f7f7f7;
}
.wikitable caption,
.prettytable caption {
font-weight: bold;
}
/* Pour test d'affichage des événements mfl le 05/08/2016 17:47 */
table.eventable {
width : 100%
background: #f4f4f4;
border-style: hidden;
/* margin: 25px 50px 75px 100px; */
padding: 200x 200px 200px 200px;
border-collapse: collapse;
}
.eventable th, .eventable td {
border: 0px #aaa solid;
padding: 0.0em;
}
.eventable th {
background-color: #747474;
text-align: center;
}
.eventable caption {
font-weight: normal;
background-color: green;
}
.eventable tr:nth-child(2n+2) {
/* The striping is handled by the :nth-child pseudo-class, with the odd row adjusted. */
background: #f0f0f0;
/* border-style: hidden; */
}
.eventable tr:nth-child(2n+1) {
/* The striping is handled by the :nth-child pseudo-class, with the even row adjusted. */
background: #f7f7f7;
/* border-style: hidden; */
}
.eventable td {
/* The striping is handled by the :nth-child pseudo-class, with the even row adjusted. */
padding: 7px 7px 7px 7px;
border-style: hidden;
}