MediaWiki:Common.css : Différence entre versions

De Aide Battle Arenas
Ligne 94 : Ligne 94 :
 
}
 
}
  
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
+
/** Collapsible tables *********************************************************
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
+
*
.collapseButton {
+
*  Description: Allows tables to be collapsed, showing only the header. See
    /* @noflip */
+
*                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
    float: right;
+
* Maintainers: [[en:User:R. Koot]]
    font-weight: normal;
+
*/
    /* @noflip */
+
    margin-left: 0.5em;
+
table.collapsed tr.collapsible {
    /* @noflip */
+
        display: none;
    text-align: right;
+
    width: auto;
+
}
+
/* In navboxes, the show/hide button balances the v·d·e links
+
  from [[Template:Navbar]], so they need to be the same width. */
+
.navbox .collapseButton {
+
    width: 6em;
+
 
}
 
}
 
   
 
   
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
+
.collapseButton {              /* 'show'/'hide' buttons created dynamically by the            */
.mw-collapsible-toggle {
+
        float: right;          /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
    font-weight: normal;
+
        font-weight: normal;   /* are styled here so they can be customised.            */
    /* @noflip */
+
        text-align: right;
    text-align: right;
+
        width: auto;
}
+
.navbox .mw-collapsible-toggle {
+
    width: 6em;
+
 
}
 
}

Version du 10 août 2012 à 13:57

/* Le CSS placé ici sera appliqué à tous les habillages. */
#f-poweredbyico { display: none; }

/* WIKITABLE */
/* Classe pour tableaux standards, légèrement grisés. Syntaxe : {| class="wikitable" */
/* Tableaux selon la charte graphique. Ils sont centrés par défaut. */
 
table.wikitable th,
table.wikitable td {
  border:1px #000000 solid;
  padding: 0.3em;
}
 
.wikitable th[scope=row] {
  text-align: left;
}
 
/** Alignement du tableau : flottant à droite ou à gauche, ou centré. On peut aligner à droite ou à gauche
 *  sans flottement en ajoutant le [[modèle:clr]] en bas du tableau, ou en précisant style="float:none"
 *  dans l'en-tête du tableau.
 */
 
table.gauche,
table.left {
  border:1px #000000 solid;
  background: #FFFFFF;
  float: left;
  margin: 0 1em 1em 0;
}
 
table.droite,
table.right {
  border:1px #000000 solid;
  background: #FFFFFF;
  float: right;
  margin: 0 0 1em 1em;
}
 
table.centre,
table.center {
  border:1px #000000 solid;
  background: #FFFFFF;
  margin: 1em auto;
}
 
/* Pour les cas où le code de l'article contienne un paramètre align de valeur center */
 
table.wikitable[align=center] {
  margin: 1em auto;
}
 
/* ALTERNANCE */
 
/** Classes permettant d'alterner les couleurs de ligne
 *  dans les tableaux selon le nombre de lignes d'en-tête :
 *.alternance si nombre impair
 *.alternance2 si nombre pair.
 *
 *.odd est un be kind to IE<9 qui n'implémente pas
 *  le sélecteur :nth-child, appliquée via Common.js
 *
 *.sortable : les tableaux triables nécessitent d'inverser
 *  l'alternance.
 */
 
table.alternance tr,
.alternance.wikitable th[scope="row"] {
  background: #fff;
}
 
table.alternance tr:nth-child(odd),
.alternance.wikitable tr:nth-child(odd) th[scope="row"] {
  background: #E9E9E9;
}
 
table.alternance tr.odd,
table.alternance.wikitable tr.odd th[scope="row"] {
  background: #E9E9E9;
}
 
table.alternance2 tr,
table.alternance.sortable tr {
  background: #E9E9E9;
}
 
table.alternance2 tr:nth-child(odd),
table.alternance.sortable tr:nth-child(2n+1) {
  background: #fff;
}
 
table.alternance2 tr.odd,
table.alternance.sortable tr.odd {
  background: #fff;
}

/** Collapsible tables *********************************************************
 *
 *  Description: Allows tables to be collapsed, showing only the header. See
 *                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
 *  Maintainers: [[en:User:R. Koot]]
 */
 
table.collapsed tr.collapsible {
        display: none;
}
 
.collapseButton {               /* 'show'/'hide' buttons created dynamically by the             */
        float: right;           /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;    /* are styled here so they can be customised.             */
        text-align: right;
        width: auto;
}