MediaWiki:Common.css : Différence entre versions
De Wikipasdecalais
Ligne 177 : | Ligne 177 : | ||
font-size: 0.70em; | font-size: 0.70em; | ||
} | } | ||
+ | /* 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 { /* monobookocentré debut */ | ||
+ | margin-top:1em; | ||
+ | margin-bottom:1em; | ||
+ | background:#F9F9F9; | ||
+ | border:1px #AAA solid; | ||
+ | border-collapse:collapse; | ||
+ | } | ||
+ | |||
+ | table.wikitable th, table.wikitable td { | ||
+ | border:1px #AAA solid; | ||
+ | padding:.3em; | ||
+ | } | ||
+ | |||
+ | table.wikitable th, .wikitable_header { | ||
+ | background:#F2F2F2; | ||
+ | text-align:center; | ||
+ | } | ||
+ | .wikitable th[scope=row] { | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | table.wikitable caption { | ||
+ | margin-left:inherit; | ||
+ | margin-right:inherit; | ||
+ | } /* monobookocentré fin */ | ||
+ | |||
+ | /* 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 { | ||
+ | float:left; | ||
+ | margin:0 1em 1em 0; | ||
+ | } | ||
+ | |||
+ | table.droite, table.right { | ||
+ | float:right; | ||
+ | margin:0 0 1em 1em; | ||
+ | } | ||
+ | |||
+ | table.centre, table.center { | ||
+ | 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;} |
Version du 29 septembre 2011 à 10:35
/* Le CSS placé ici sera appliqué à tous les habillages. */ /** NOTES, RÉFÉRENCES, BIBLIOGRAPHIE **/ /* make the list of references look smaller and highlight clicked reference in blue */ ol.references { font-size: 85%; } .references-small { font-size: 85%;} ol.references > li:target { background-color: #ddeeff; } sup.reference:target { background-color: #ddeeff; } /* MISE EN ÉVIDENCE */ /* Mise en surbrillance de la note ou de l'ouvrage de référence cliqué pour faciliter la navigation (de en.wikipedia). */ /* Contenu de la note */ ol.references > li:target, .ouvrage:target { background:#DEF } /* Renvoi */ sup.reference:target { background:#DEF } /* /* Référence présente */ span.ref:hover { border-bottom:1px solid #AAA } /* NORMES BIBLIOGRAPHIQUES */ /* Mode d'affichage par défaut des données dans l'espace référence. */ .BibList { display:block } .WikiNorme, .BibTeX, .ISBD, .ISO690, .specialBib { display:none } /* BOÎTES DÉROULANTES */ /* Styles des boîtes déroulantes, voir [[Modèle:Boîte déroulante/Documentation]]. */ div.NavFrame { margin:0; padding:2px; border:1px #AAA; text-align:center; border-collapse:collapse; font-size:95%; } /* monobookocentré début */ div.NavFrame + div.NavFrame { border-top-style:hidden; } div.NavPic { background:#FFF; margin:0; padding:2px; float:left; } div.NavFrame div.NavHead { height:1.6em; font-weight:bold; font-size:100%; background:#EFEFEF; } div.NavFrame p, div.NavFrame div.NavContent, div.NavFrame div.NavContent p { font-size:100% } div.NavEnd { margin:0; padding:0; line-height:1px; clear:both; } .NavToggle { font-size:90%; float:right; } /* monobookocentré fin */ /* Styles de [[Modèle:Méta palette de navigation]] */ table.navbox { background:#F9F9F9; border:1px solid #AAA; clear:both; font-size:90%; margin:1em 0 0; padding:2px; text-align:center; width:100%; } table.navbox th { background:#CCF; padding-left:1em; padding-right:1em; } table.navbox td.group { background:#DDF; vertical-align:middle; width:150px; padding-left:1em; padding-right:1em; font-weight: bold; } table.navbox td.list { text-align:left } table.navbox td.even { background:#EEF } table.navbox td.below { background:#CCF; vertical-align:middle; padding-left:1em; padding-right:1em; } .navboxToggle { font-size:90%; font-weight:normal; float:right !important; } /* Modèle de palettes groupées, [[Modèle:Palette]] */ div.navbox_group { border: 1px solid #aaaaaa; margin-top: 15px; } div.navbox_group table.navbox { border: 0; margin: 0em 0px 0px; } /* Fin styles de [[Modèle:Méta palette de navigation]] */ /* ARTICLE DÉTAILLÉ */ /* Classes pour les modèles basés sur [[modèle:Article détaillé]] ainsi que [[Modèle:Article principal]], [[Modèle:Commonscat simple]], [[Modèle:Galerie détaillée]] et [[Modèle:...]] ; style décidé dans [[Wikipédia:Prise de décision/Unification des modèles : article détaillé et Loupe]]. */ .detail, .details { margin:0 0 .7em 2em; border:solid #E7E7E7; border-width:1px 0; text-align:left; font-size:95%; background:#FDFDFD url(http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Searchtool.svg/15px-Searchtool.svg.png) no-repeat left center; padding:1px 4px 1px 24px; overflow:hidden; } .detail.commons { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png); background-repeat:no-repeat; } .detail.principal { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Nuvola_apps_download_manager2-70%25.svg/15px-Nuvola_apps_download_manager2-70%25.svg.png); background-repeat:no-repeat; } .detail.section { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/Fairytale_waring.png/15px-Fairytale_waring.png); background-repeat:no-repeat; /* ABBR ET BALISE ABBR discrète */ abbr { color: inherit; } abbr.abbr { border-bottom: 0; } /* CATEGORIES CACHEES */ #mw-hidden-catlinks { font-size: 0.70em; } /* 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 { /* monobookocentré debut */ margin-top:1em; margin-bottom:1em; background:#F9F9F9; border:1px #AAA solid; border-collapse:collapse; } table.wikitable th, table.wikitable td { border:1px #AAA solid; padding:.3em; } table.wikitable th, .wikitable_header { background:#F2F2F2; text-align:center; } .wikitable th[scope=row] { text-align: left; } table.wikitable caption { margin-left:inherit; margin-right:inherit; } /* monobookocentré fin */ /* 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 { float:left; margin:0 1em 1em 0; } table.droite, table.right { float:right; margin:0 0 1em 1em; } table.centre, table.center { 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;}