MediaWiki:Common.css

De Milamzer
Révision datée du 17 février 2020 à 19:21 par Manager (discussion | contributions) (1 révision importée)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche

Note : après avoir enregistré 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 pressez Ctrl-F5 ou Ctrl-R (⌘-R sur un Mac).
  • Google Chrome : appuyez sur Ctrl-Maj-R (⌘-Shift-R sur un Mac).
  • Internet Explorer : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
  • Opera : allez dans Menu → Settings (Opera → Préférences sur un Mac) et ensuite à Confidentialité et sécurité → Effacer les données d’exploration → Images et fichiers en cache.
/* 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;
}