Aller au contenu

MediaWiki:Common.css

De Banane Atomic

Note : après avoir publié 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 appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  •  Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Le CSS placé ici sera appliqué à tous les habillages. */

.infobox td:nth-child(2), .warnbox td:nth-child(2) { padding: 0 10px; }
.infobox, .warnbox { margin-left: 20px; }
.infobox { border: 1px solid #6EB5F8; border-radius: 10px;}
.warnbox { border: 1px solid #FFB472; border-radius: 10px;}

/* espacement entre infobox,warnbox et infobox,warnbox,kode,filebox */
.infobox+table, .warnbox+table {
    margin-top: 5px;
}

.boxx {
    background: #202020;
    color: #d0d0d0;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 1px 4px;
    font-family: monospace,Courier;
}

div.list-plus > ul,
div.list-minus > ul {
    list-style-type: none;
    list-style-image: none;
    padding: 0;
    margin: 0;
    margin-left: .2em;
}
div.list-plus > ul > li {
    background-image: url(/skins/MonoBook/resources/images/list-plus.svg);
}
div.list-minus > ul > li {
    background-image: url(/skins/MonoBook/resources/images/list-minus.svg);
}
div.list-plus > ul > li,
div.list-minus > ul > li {
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: 0 .2em;
    padding-left: 1.4em;
}

table.kode {
    width: 100%;
    table-layout: fixed; /* force the cells to fit the table */
}
table.kode td:first-child {
    /* force la largeur de la première colonne, ainsi la deuxième colonne occupe toute la place restante */
    width: 40px;
}
table.kode div {
    outline: none; /* suppression des pointillés autour des icones de gauche */
}
table.kode pre {
	margin: 0;
}

table.filebox {
	border: 1px solid white;
	border-top-left-radius: 1.5em;
	margin-bottom: 4px;
	width: 100%;
	table-layout: fixed; /* force the cells to fit the table */
}
table.filebox tr:first-child > td {
	font-family: "Source Code Pro", Consolas, monospace;
	padding-left: 1em;
}
table.filebox pre {
	margin: 0;
}