Aller au contenu

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

De Wikiquestia
Aucun résumé des modifications
Aucun résumé des modifications
 
(254 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
.infobox, .infobox_top_border {
/* =========================================================
     padding: 5px;
  GLOBAL CLEAN BASE
     width: 25em;
========================================================= */
 
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;
     background: #f9f9f9;
     border: 1px solid #aaa;
     border: 1px solid #a2a9b1;
     clear: right;
     border-radius: 8px;
     float: right;
     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;
    max-width: 325px;
    word-wrap: break-word;
}
}


.infobox_bottom_border {
/* =========================================================
    background: #f9f9f9;
  ENTÊTE
    border-bottom: 1px solid #aaa;
========================================================= */
    width: 100%;
    max-width: 100%;
    float: right;
}


.infobox-title {
.infoboxv4-entete {
    position: relative;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     color: #000;
     font-size: 1.3em;
    background: #54994C;
     padding: 0.5em 2.2em 0.5em 0.6em;
     padding: 1px;
     margin: 0;
    width: 100%;
     height: 45px;
}
}


.infobox-subtitle, .infobox-subtitle-biography {
/* Icône entête */
     font-weight: bold;
.infoboxv4-entete::after {
     text-align: center;
     content: "";
     background-color: #5c76be;
    position: absolute;
     margin: 0.5em;
    top: 50%;
     padding: 0.2em;
    right: 8px;
    width: 18px;
    height: 18px;
     transform: translateY(-50%);
     background-size: contain;
     background-repeat: no-repeat;
     opacity: 0.85;
}
}


.infobox-LO, .infobox-caption {
/* sous-texte */
     font-size: smaller;
.infoboxv4-lo {
     font-style: italic;
     font-size: 0.7em;
     margin: 0.5em 0;
     font-weight: normal;
    text-align: center;
     margin-top: 0.2em;
}
}


.infobox-séparateur, .infobox_separator {
/* =========================================================
    padding: 0.5em;
  BLOCS (SECTIONS)
    border-top: 1px solid;
========================================================= */
    border-bottom: 1px solid;
    font-weight: bold;
    text-align: center;
    background: #EBEBEB;
    color: #333;
}


.infobox-image {
.infoboxv4-titre-bloc {
    position: relative;
     text-align: center;
     text-align: center;
     border: 1px solid #333;
     font-weight: bold;
     padding: 0.5em;
     padding: 0.45em 2em 0.45em 0.6em;
    margin: 0;
    font-size: 0.95em;
}
}


.infobox-center, .infobox-left, .infobox-right {
/* Icône bloc */
     text-align: center;
.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-left {
/* =========================================================
    text-align: left;
  IMAGES
}
========================================================= */


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


.infobox-table th, .infobox-table td {
.infoboxv4-portrait img,
     text-align: left;
.infoboxv4-carte img,
     vertical-align: top;
.infoboxv4-image img {
     width: 10em;
     max-width: 100%;
     height: auto;
     border-radius: 4px;
}
}


.infobox-list-left, .infobox-list-right {
.infoboxv4-portrait div,
     text-align: center;
.infoboxv4-carte div,
     float: left;
.infoboxv4-image div {
     width: 45%;
     font-size: 0.8em;
     color: #54595d;
     margin-top: 0.3em;
}
}


.mw-image-border .mw-file-element {
/* =========================================================
    border: 1px solid #eaecf0;
  TABLEAUX
}
========================================================= */


figure {
.infoboxv4-tableau {
     display: table;
     width: 100%;
    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;
}
}


.infobox-container {
.infoboxv4-tableau th {
     float: right;
     width: 40%;
     clear: right;
     font-weight: normal;
    width: 33%;
     color: #202122;
     margin-left: 10px;
}
}


audio {
.infoboxv4-tableau td {
     width: -webkit-fill-available;
     width: 60%;
    height: 20px;
}
}


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


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


/*HEADER*/
/* =========================================================
.header {
  ICÔNES PAR CHARTE
    font-size: 1.2em;
========================================================= */
    padding: 0.5em;
    margin: 0.5em 0.5em 0.5em 0.5em;
    font-weight: bold;
    text-align: center;
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.subheader {
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    margin: 0.5em;
    padding: 4px;
}


/*TEMPLATE HEROES PNJ*/
.infoboxv4-entete.empire::after,
.header_hero_PNJ {
.infoboxv4-titre-bloc.empire::after {
    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);
    background-size: cover;       
}
.subheader_hero_PNJ {
    background: #a9c8e09c;
}
.hero_PNJ_border {
    border-color: #a9c8e0;
}
}


/*TEMPLATE ENNEMIES*/
.infoboxv4-entete.biographie::after,
.header_enemy {
.infoboxv4-titre-bloc.biographie::after {
    background-color: #39414d;
    background-image: url(https://wiki.alakihel.ovh/images/d/d3/Pictogram_oeil_102x45.png);
    background-size: cover;       
    color: #e4e4e4;
}
.subheader_enemy {
    background: #3B394D;
    color: #e4e4e4;
}
.enemy_border {
    border-color: #39414d;
}
 
/*TEMPLATE PNJ*/
.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);
    background-size: cover;       
}
.subheader_PNJ {
    background: #dac5a367;
}
.PNJ_border {
    border-color: #dac5a3;
}
}


/*TEMPLATE PJ*/
.infoboxv4-entete.geographie::after,
.header_PJ {
.infoboxv4-titre-bloc.geographie::after {
    background-color: #ADA9E0;
     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);
    background-size: cover;
}
.subheader_PJ {
    background: #aca9e099;
}
.PJ_border {
    border-color: #ADA9E0;
}
/*TEMPLATE ORGANIZATION*/
.header_organization {
    background-color: #9d943ccc;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-size: cover;       
}
.subheader_organization {
    background: #9d933c7b;
}
.organization_border {
    border-color: #9d943ccc;
}
}


/*TEMPLATE NATION*/
.infoboxv4-entete.darkgods::after,
.header_nation {
.infoboxv4-titre-bloc.darkgods::after {
    background-color: #65cec9;
     background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
     background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.subheader_nation {
    background: #65cec9cc;
}
.nation_border {
    border-color: #65cec9cc;
}
}


/*TEMPLATE GEOGRAPHY*/
.infoboxv4-entete.cite_independante::after,
.header_geography {
.infoboxv4-titre-bloc.cite_independante::after {
    background-color: #CEF2D4;
     background-image: url(https://wiki.alakihel.ovh/images/2/28/Pictogram_freecity.png);
     background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.subheader_geography {
    background: #cef2d4a6;
}
.geography_border {
    border-color: #CEF2D4;
}
}


/*TEMPLATE CITY*/
.infoboxv4-entete.björkan::after,
.header_city {
.infoboxv4-titre-bloc.björkan::after {
    background-color: #F5F5DC;
     background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
     background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.subheader_city {
    background: #f5f5dc91;
}
.city_border {
    border-color: #F5F5DC;
}
}


/*TEMPLATE PLACE*/
/* =========================================================
.header_place {
  CORRECTIONS MEDIAWIKI
    background-color: #54994c99;
========================================================= */
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.subheader_place {
    background: #54994ccc;
}
.place_border {
    border-color: #c6c4ea;
}


/*TEMPLATE RACE*/
.infobox > p:only-child {
.header_race {
     display: none;
    background-color: #a1730ccc;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.subheader_race {
     background: #a1720c95;
}
.race_border {
    border-color: #a1730ccc;
}
}


/*TEMPLATE MONSTERS & ANIMALS*/
.infobox table {
.header_monsters {
     border-collapse: collapse;
     background-color: #54994c99;
     width: 100%;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;        
}
.subheader_monsters {
     background: #54994ccc;
}
.monsters_border {
    border-color: #c6c4ea;
}
}


/*TEMPLATE ITEMS*/
.infobox th,
.header_items {
.infobox td {
     background-color: #9f262699;
     border: none;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;  
}
}
.subheader_items {
    background: #9f26265d;
}
.items_border {
    border-color: #9f262699;
}
/*TEMPLATE EVENTS*/
.header_events {
    background-color: #54994c99;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
    background-size: cover;       
}
.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;
}