Aller au contenu

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

De Wikiquestia
Aucun résumé des modifications
Aucun résumé des modifications
 
(208 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
.infobox, .infobox_top_border, .infobox_bottom_border {
/* =========================================================
    padding: 5px;
  GLOBAL CLEAN BASE
    background: #f9f9f9;
========================================================= */
    border: 1px solid #aaa;
 
     max-width: 325px;
hr {
    word-wrap: break-word;
  margin: 0.3em 0.5em;
}
 
/* =========================================================
  INFOBOX V4 (CORE)
========================================================= */
 
.infobox,
.infoboxv4 {
     width: 320px;
     float: right;
     float: right;
     clear: right;
     clear: right;
    margin: 0 0 0.5em 1em;
    padding: 0;
    background: #f9f9f9;
    border: 1px solid #a2a9b1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
     font-size: 0.9em;
     font-size: 0.9em;
     line-height: 1.4;
     line-height: 1.4;
     margin: 0 0 0.5em 1em;
     overflow: hidden;
}
 
.infobox_bottom_border {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #aaa;
}
}


.infobox-title {
/* =========================================================
    font-weight: bold;
  ENTÊTE
    text-align: center;
========================================================= */
    color: #000;
    background: #54994C;
    padding: 1px;
    width: 100%;
    height: 45px;
}


.infobox-subtitle, .infobox-subtitle-biography {
.infoboxv4-entete {
    position: relative;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     background-color: #5c76be;
     font-size: 1.3em;
     margin: 0.5em;
     padding: 0.5em 2.2em 0.5em 0.6em;
     padding: 0.2em;
     margin: 0;
}
}


.infobox-LO, .infobox-caption {
/* Icône entête */
     font-size: smaller;
.infoboxv4-entete::after {
     font-style: italic;
     content: "";
     margin: 0.5em 0;
     position: absolute;
     text-align: center;
     top: 50%;
     width: -webkit-fill-available;
     right: 8px;
     width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
}
}


.infobox-séparateur, .infobox_separator {
/* sous-texte */
     padding: 0.5em;
.infoboxv4-lo {
    border-top: 1px solid;
     font-size: 0.7em;
    border-bottom: 1px solid;
     font-weight: normal;
     font-weight: bold;
     margin-top: 0.2em;
     text-align: center;
    background: #EBEBEB;
    color: #333;
}
}


.infobox-image {
/* =========================================================
    font-size: smaller;
  BLOCS (SECTIONS)
    font-style: italic;
========================================================= */
    margin: 0.5em 0;
    text-align: center;
}


.infobox-center, .infobox-left, .infobox-right {
.infoboxv4-titre-bloc {
    position: relative;
     text-align: center;
     text-align: center;
     margin: 5px 0.5em;
    font-weight: bold;
    padding: 0.45em 2em 0.45em 0.6em;
     margin: 0;
    font-size: 0.95em;
}
}


.infobox-left {
/* Icône bloc */
     text-align: left;
.infoboxv4-titre-bloc::after {
     content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}
}


.infobox-right {
/* =========================================================
    text-align: right;
  IMAGES
}
========================================================= */


.infobox-table th, .infobox-table td {
.infoboxv4-portrait,
    text-align: left;
.infoboxv4-carte,
    vertical-align: top;
.infoboxv4-image {
}
 
.infobox-table th {
    width: 10em;
}
 
.infobox-table td {
    width: 15em;
}
 
.infobox-list-left {
     text-align: center;
     text-align: center;
     float: left;
     padding: 0.5em;
    width: 45%;
}
}


.infobox-list-right {
.infoboxv4-portrait img,
     text-align: center;
.infoboxv4-carte img,
     float: right;
.infoboxv4-image img {
     width: 45%;
     max-width: 100%;
     height: auto;
     border-radius: 4px;
}
}


 
.infoboxv4-portrait div,
.infobox-modifier {
.infoboxv4-carte div,
     display: inline-block;
.infoboxv4-image div {
     width: -webkit-fill-available;
     font-size: 0.8em;
     color: #54595d;
    margin-top: 0.3em;
}
}


.plainlinks {
/* =========================================================
    margin: 5px 0.5em;
  TABLEAUX
}
========================================================= */


.mw-image-border .mw-file-element {
.infoboxv4-tableau {
    border: 1px solid #eaecf0;
     width: 100%;
}
 
figure {
     display: table;
    text-align: center;
     border-collapse: collapse;
     border-collapse: collapse;
    margin: 0.2em;
    clear: right;
    float: right;
}
}


.border-line {
.infoboxv4-tableau th,
     border-top-style: solid;
.infoboxv4-tableau td {
     border-width: 1px;
     padding: 0.35em 0.5em;
    height: 2px;
     vertical-align: top;
    margin: 5px 0.5em;
}
}


hr.nation {
.infoboxv4-tableau th {
     background-color: #65cec9cc;
     width: 40%;
     margin: 0.5em;
    font-weight: normal;
     color: #202122;
}
}


.infobox-container {
.infoboxv4-tableau td {
    float: right;
     width: 60%;
    clear: right;
     width: 33%;
    margin-left: 10px;
}
}


audio {
.infoboxv4-tableau tr + tr td,
     width: -webkit-fill-available;
.infoboxv4-tableau tr + tr th {
    height: 20px;
     border-top: 1px solid #eaecf0;
}
}


.row {
/* =========================================================
    display: table;
  SÉPARATEURS
    clear: both;
========================================================= */
}


.column {
.infoboxv4-separateur {
     float: left;
     border-top: 1px solid #a2a9b1;
     width: 50%;
     margin: 0.3em 0;
    padding: 10px;
}
}


/* HEADER */
/* =========================================================
.header, .subheader {
  ICÔNES PAR CHARTE
    font-weight: bold;
========================================================= */
    text-align: center;
    padding: 0.5em;
    margin: 0.5em;
}


.header {
.infoboxv4-entete.empire::after,
    font-size: 1.2em;
.infoboxv4-titre-bloc.empire::after {
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
}
 
.subheader {
    line-height: 1.1;
    padding: 4px;
}
 
/* TEMPLATE HEROES PNJ */
.header_hero_PNJ, .header_enemy, .header_PNJ, .header_PJ, .header_organization, .header_nation,
.header_dwarf_nation, .header_wood_nation, .header_geography, .header_city, .header_place,
.header_race, .header_monsters, .header_items, .header_events {
 
    background-size: cover;
}
 
 
.hero_PNJ_border, .enemy_border, .PNJ_border, .PJ_border, .organization_border, .nation_border,
.dwarf_nation_border, .wood_nation_border, .geography_border, .city_border, .place_border,
.race_border, .monsters_border, .items_border, .events_border {
 
    border-color: currentColor;
}
 
/* SPECIFIC TEMPLATES */
.header_hero_PNJ {
    background-color: #a9c8e0;
     background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
     background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
}
.subheader_hero_PNJ {
    background: #a9c8e09c;
}
.hero_PNJ_border {
    border-color: #a9c8e0;
}
}


.header_enemy {
.infoboxv4-entete.biographie::after,
    background-color: #39414d;
.infoboxv4-titre-bloc.biographie::after {
    background-image: url(https://wiki.alakihel.ovh/images/d/d3/Pictogram_oeil_102x45.png);
    color: #e4e4e4;
}
.subheader_enemy {
    background: #3B394D;
    color: #e4e4e4;
}
.enemy_border {
    border-color: #39414d;
}
 
.header_PNJ {
    background-color: #dac5a3ca;
     background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
     background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
}
.subheader_PNJ {
    background: #dac5a367;
}
.PNJ_border {
    border-color: #dac5a3;
}
}


.header_PJ {
.infoboxv4-entete.geographie::after,
    background-color: #ADA9E0;
.infoboxv4-titre-bloc.geographie::after {
     background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
     background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
}
.subheader_PJ {
    background: #aca9e099;
}
.PJ_border {
    border-color: #ADA9E0;
}
}


.header_organization {
.infoboxv4-entete.darkgods::after,
    background-color: #9d943ccc;
.infoboxv4-titre-bloc.darkgods::after {
     background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
     background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
}
.subheader_organization {
    background: #9d933c7b;
}
.organization_border {
    border-color: #9d943ccc;
}
}


.header_nation {
.infoboxv4-entete.cite_independante::after,
    background-color: #65cec9;
.infoboxv4-titre-bloc.cite_independante::after {
     background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
     background-image: url(https://wiki.alakihel.ovh/images/2/28/Pictogram_freecity.png);
}
.subheader_nation {
    background: #65cec9cc;
}
}


/* ACTORIA (GOUVERNORATE) TEMPLATES */
.infoboxv4-entete.björkan::after,
 
.infoboxv4-titre-bloc.björkan::after {
.header_actoria_governorate {
     background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
    background-color: #0b57dbb5;
     background-image: url(https://wiki.alakihel.ovh/images/4/41/Pictogram_actoria_%28gouvernorate%29.png);
}
.subheader_actoria_governorate {
    background: #0b57db76;
}
hr.actoria_governorate {
    background-color: #0b57dbb5;
    margin: 0.5em;
}
}


/* =========================================================
  CORRECTIONS MEDIAWIKI
========================================================= */


/* CÉDOYIN TEMPLATES */
.infobox > p:only-child {
 
     display: none;
.header_cédoyin {
    background-color: #0b69dbc1;
    background-image: url(https://wiki.alakihel.ovh/images/6/6f/Pictogram_cédoyin.png);
}
.subheader_cédoyin {
    background: #0b69db90;
}
hr.cédoyin {
     background-color: #0b69dbc1;
    margin: 0.5em;
}
}


 
.infobox table {
/* ELNASTOR TEMPLATES */
     border-collapse: collapse;
 
     width: 100%;
.header_elnastor {
    background-color: #db0b1db5;
    background-image: url(https://wiki.alakihel.ovh/images/6/67/Pictogram_elnastor.png);
}
.subheader_elnastor {
    background: #db0b1ca8;
}
hr.elnastor {
    background-color: #db0b1db5;
    margin: 0.5em;
}
 
 
/* ELPONIE TEMPLATES */
 
.header_elponie {
    background-color: #c8212fd9;
    background-image: url(https://wiki.alakihel.ovh/images/6/6d/Pictogram_elponie.png);
}
.subheader_elponie {
    background: #c8212f79;
}
hr.elponie {
    background-color: #c8212fd9;
    margin: 0.5em;
}
 
 
/* ITIRITH TEMPLATES */
 
.header_itirith {
    background-color: #35bd65d8;
    background-image: url(https://wiki.alakihel.ovh/images/0/00/Pictogram_itirith.png);
}
.subheader_itirith {
    background: #35bd65a8;
}
hr.itirith {
    background-color: #35bd65d8;
    margin: 0.5em;
}
 
 
.header_dwarf_nation {
    background-color: #5e5e5e;
    background-image: url(https://wiki.alakihel.ovh/images/8/8a/Pictogram_dwarf_city.png);
    color: #e1e1e1;
}
.subheader_dwarf_nation {
    background: #8e8e8e9d;
}
.dwarf_nation_border {
    border-color: #5e5e5e;
}
 
.header_wood_nation {
    background-color: #48ba78;
    background-image: url(https://wiki.alakihel.ovh/images/6/67/Pictogram_wood_nation.png);
}
.subheader_wood_nation {
    background: #48ba779e;
}
.wood_nation_border {
     border-color: #48ba78;
}
 
.header_geography {
    background-color: #CEF2D4;
     background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_geography {
    background: #cef2d4a6;
}
.geography_border {
    border-color: #CEF2D4;
}
}


.header_city {
.infobox th,
     background-color: #F5F5DC;
.infobox td {
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
     border: none;
}
}
.subheader_city {
    background: #f5f5dc91;
}
.city_border {
    border-color: #F5F5DC;
}
.header_place {
    background-color: #54994c99;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_place {
    background: #54994ccc;
}
.place_border {
    border-color: #c6c4ea;
}
.header_race {
    background-color: #a1730ccc;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_race {
    background: #a1720c95;
}
.race_border {
    border-color: #a1730ccc;
}
.header_monsters {
    background-color: #54994c99;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_monsters {
    background: #54994ccc;
}
.monsters_border {
    border-color: #c6c4ea;
}
.header_items {
    background-color: #9f262699;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_items {
    background: #9f26265d;
}
.items_border {
    border-color: #9f262699;
}
.header_events {
    background-color: #54994c99;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}
.subheader_events {
    background: #54994ccc;
}
.events_border {
    border-color: #c6c4ea;
}
/* END OF TEMPLATES */

Dernière version du 9 avril 2026 à 16:42

/* =========================================================
   GLOBAL CLEAN BASE
========================================================= */

hr {
  margin: 0.3em 0.5em;
}

/* =========================================================
   INFOBOX V4 (CORE)
========================================================= */

.infobox,
.infoboxv4 {
    width: 320px;
    float: right;
    clear: right;
    margin: 0 0 0.5em 1em;
    padding: 0;
    background: #f9f9f9;
    border: 1px solid #a2a9b1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-size: 0.9em;
    line-height: 1.4;
    overflow: hidden;
}

/* =========================================================
   ENTÊTE
========================================================= */

.infoboxv4-entete {
    position: relative;
    font-weight: bold;
    text-align: center;
    font-size: 1.3em;
    padding: 0.5em 2.2em 0.5em 0.6em;
    margin: 0;
}

/* Icône entête */
.infoboxv4-entete::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
}

/* sous-texte */
.infoboxv4-lo {
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 0.2em;
}

/* =========================================================
   BLOCS (SECTIONS)
========================================================= */

.infoboxv4-titre-bloc {
    position: relative;
    text-align: center;
    font-weight: bold;
    padding: 0.45em 2em 0.45em 0.6em;
    margin: 0;
    font-size: 0.95em;
}

/* Icône bloc */
.infoboxv4-titre-bloc::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* =========================================================
   IMAGES
========================================================= */

.infoboxv4-portrait,
.infoboxv4-carte,
.infoboxv4-image {
    text-align: center;
    padding: 0.5em;
}

.infoboxv4-portrait img,
.infoboxv4-carte img,
.infoboxv4-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.infoboxv4-portrait div,
.infoboxv4-carte div,
.infoboxv4-image div {
    font-size: 0.8em;
    color: #54595d;
    margin-top: 0.3em;
}

/* =========================================================
   TABLEAUX
========================================================= */

.infoboxv4-tableau {
    width: 100%;
    border-collapse: collapse;
}

.infoboxv4-tableau th,
.infoboxv4-tableau td {
    padding: 0.35em 0.5em;
    vertical-align: top;
}

.infoboxv4-tableau th {
    width: 40%;
    font-weight: normal;
    color: #202122;
}

.infoboxv4-tableau td {
    width: 60%;
}

.infoboxv4-tableau tr + tr td,
.infoboxv4-tableau tr + tr th {
    border-top: 1px solid #eaecf0;
}

/* =========================================================
   SÉPARATEURS
========================================================= */

.infoboxv4-separateur {
    border-top: 1px solid #a2a9b1;
    margin: 0.3em 0;
}

/* =========================================================
   ICÔNES PAR CHARTE
========================================================= */

.infoboxv4-entete.empire::after,
.infoboxv4-titre-bloc.empire::after {
    background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
}

.infoboxv4-entete.biographie::after,
.infoboxv4-titre-bloc.biographie::after {
    background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
}

.infoboxv4-entete.geographie::after,
.infoboxv4-titre-bloc.geographie::after {
    background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
}

.infoboxv4-entete.darkgods::after,
.infoboxv4-titre-bloc.darkgods::after {
    background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
}

.infoboxv4-entete.cite_independante::after,
.infoboxv4-titre-bloc.cite_independante::after {
    background-image: url(https://wiki.alakihel.ovh/images/2/28/Pictogram_freecity.png);
}

.infoboxv4-entete.björkan::after,
.infoboxv4-titre-bloc.björkan::after {
    background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
}

/* =========================================================
   CORRECTIONS MEDIAWIKI
========================================================= */

.infobox > p:only-child {
    display: none;
}

.infobox table {
    border-collapse: collapse;
    width: 100%;
}

.infobox th,
.infobox td {
    border: none;
}