Aller au contenu

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

De Wikiquestia
Aucun résumé des modifications
Aucun résumé des modifications
 
(309 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
.header_icon {
/* =========================================================
    background-image: url(https://wiki.alakihel.ovh/images/d/d3/Pictogram_oeil_102x45.png);
  GLOBAL CLEAN BASE
    position: relative; /* or absolute, fixed */
========================================================= */
    z-index: 10; /* Or any value higher than the z-index of Header */
}


.header-text {
hr {
    position: relative; /* Ensure this is not static */
  margin: 0.3em 0.5em;
    z-index: 1; /* Or any value lower than the z-index of header_organization */
}
}


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


 
.infobox,
 
.infoboxv4 {
 
     width: 320px;
 
    float: right;
.no-right-click {
    clear: right;
     pointer-events: none;
     margin: 0 0 0.5em 1em;
}
     padding: 0;
 
.infobox, .infobox_top_border {
     padding: 5px;
     width: 25em;
     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;
}
}


.borderline {
.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;
}
 
/*
 
*/
 
.icon {
    text-align: right;


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


.header {
/* =========================================================
    font-size: 1.2em;
  ICÔNES PAR CHARTE
    padding: 0.5em;
========================================================= */
    margin: 0.5em 0.5em 0.5em 0.5em;
    font-weight: bold;
    text-align: center;
}
.subheader {
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    margin: 0.5em;
    padding: 4px;
}
 
.header_hero_PNJ {
    background-image: url(https://wiki.alakihel.ovh/images/d/d3/Pictogram_oeil_102x45.png);
}
.subheader_hero_PNJ {
    background-color: #c6c4ea;
 
}
.hero_PNJ_border {
    border-color: #c6c4ea;
}
 
 
 
.header_biography_evil {
    background-color: #39414d;
    background-image: url(https://wiki.alakihel.ovh/images/d/d3/Pictogram_oeil_102x45.png);
    color: #e4e4e4;
}
 
.header_organization {
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
}
 
.header_country {
    background-color: #54994c99;
    background-image: url(https://wiki.alakihel.ovh/images/4/40/Pictogram_nation_102x45.png);
}


.header_biography_vardahil {
.infoboxv4-entete.empire::after,
.infoboxv4-titre-bloc.empire::after {
     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);
}
}


.header_biography_bjorkan,
.infoboxv4-entete.biographie::after,
.header_biography_adenaor, .header_biography_damian, .header_biography_valt,  
.infoboxv4-titre-bloc.biographie::after {
.header_biography_dekaron, .header_biography_kelendros, .header_biography_regnak,
     background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
.header_biography_djillian {
    background-color: #DDD5C9;
     background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
}
}


.header_biography_PNJ {
.infoboxv4-entete.geographie::after,
    background: #dac5a3;
.infoboxv4-titre-bloc.geographie::after {
     background-image: url(http://localhost:8888/FQw/images/0/0c/Picto_infobox_biography.png);
     background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
}
}


.header_city, .header_geography, .header_place, .header_race,  
.infoboxv4-entete.darkgods::after,
.header_ethnicity, .header_item, .header_event {
.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);
 
}
}


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


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


.header_place {
/* =========================================================
    background: #a7b0a799;
  CORRECTIONS MEDIAWIKI
}
========================================================= */


.header_race {
.infobox > p:only-child {
     background: #9f571899;
     display: none;
}
}


.header_ethnicity {
.infobox table {
     background: #a1730099;
     border-collapse: collapse;
}
     width: 100%;
 
 
 
.header_item {
    background: #9f262699;
}
 
.header_event {
    background: #10c4b899;
}
 
 
.subheader_general {
    background: #4652adcc;
}
 
.subheader_country {
    background: #54994ccc;
}
 
.subheader_biography_hero_PJ {
    background: #DBDDC9;
}
 
.subheader_biography_hero_PNJ {
    background: #c6c4ea;
    color: #c6c4ea;
}
 
.subheader_biography_PNJ {
    background: #D3DAA3;
}
 
.subheader_biography_evil {
    background: #3B394D;
    color: #FFFFFF;
}
 
.subheader_city {
    background: #9d2ebc88;
}
 
.subheader_geography {
    background: #DB8877;
}
 
.subheader_place {
    background: #a7b0accc;
}
 
.subheader_race {
    background: #9f571ccc;
}
 
.subheader_ethnicity {
    background: #a1730ccc;
}
 
.subheader_organization {
    background-color: #9d933c82;
}
 
.subheader_item {
     background: #9f262ccc;
}
}


.subheader_event {
.infobox th,
     background: #10c4bccc;
.infobox td {
     border: none;
}
}

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;
}