Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

De Banane Atomic
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 8 : Ligne 8 :
/* espacement entre infobox,warnbox et infobox,warnbox,kode,filebox */
/* espacement entre infobox,warnbox et infobox,warnbox,kode,filebox */
.infobox+table, .warnbox+table {
.infobox+table, .warnbox+table {
    margin-top: 5px;
  margin-top: 5px;
}
}


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


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


Ligne 45 : Ligne 45 :
/* monospace dans les colonnes */
/* monospace dans les colonnes */
table.wtmono1 tr td:first-child {
table.wtmono1 tr td:first-child {
    font-family: Inconsolata-g, monospace;
  font-family: Inconsolata-g, monospace;
}
}


table.wtmono2 tr td:nth-child(2) {
table.wtmono2 tr td:nth-child(2) {
    font-family: Inconsolata-g, monospace;
  font-family: Inconsolata-g, monospace;
}
}


table.wtmono3 tr td:nth-child(3) {
table.wtmono3 tr td:nth-child(3) {
    font-family: Inconsolata-g, monospace;
  font-family: Inconsolata-g, monospace;
}
}


table.wtmono4 tr td:nth-child(4) {
table.wtmono4 tr td:nth-child(4) {
    font-family: Inconsolata-g, monospace;
  font-family: Inconsolata-g, monospace;
}
}


/* colorer une ligne sur 2 */
/* colorer une ligne sur 2 */
table.bicolor tr:nth-child(2n) {
table.bicolor tr:nth-child(2n) {
    background-color: DarkSlateGrey;
  background-color: DarkSlateGrey;
}
}

Version du 8 mars 2025 à 21:14

/* 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(/resources/assets/images/list-plus.svg);
}
div.list-minus > ul > li {
  background-image: url(/resources/assets/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;
}

/* tableaux */
/* monospace dans les colonnes */
table.wtmono1 tr td:first-child {
  font-family: Inconsolata-g, monospace;
}

table.wtmono2 tr td:nth-child(2) {
  font-family: Inconsolata-g, monospace;
}

table.wtmono3 tr td:nth-child(3) {
  font-family: Inconsolata-g, monospace;
}

table.wtmono4 tr td:nth-child(4) {
  font-family: Inconsolata-g, monospace;
}

/* colorer une ligne sur 2 */
table.bicolor tr:nth-child(2n) {
  background-color: DarkSlateGrey;
}