Aller au contenu

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

De Wikiquestia
Aucun résumé des modifications
Aucun résumé des modifications
 
(60 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
.empire {
/* =========================================================
    background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
  GLOBAL CLEAN BASE
}
========================================================= */


.biographie {
hr {
    background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
  margin: 0.3em 0.5em;
}
}


.geographie {
/* =========================================================
background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
  INFOBOX V4 (CORE)
}
========================================================= */


 
.infobox,
.darkgods {
.infoboxv4 {
    background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
     width: 320px;
    color: #fff;
     float: right;
}
     clear: right;
 
.infobox-modifier {  
     text-align: right;
}
 
.modifier {
  font-weight: bold;
  padding: 2px 4px;
  margin: 0.5em;
}
 
.Alerte {   
     float: center;
}
 
.documentation {
    background: #ECFBF3;
     border: 1px solid #aaa;
     margin: 0 0 0.5em 1em;
     margin: 0 0 0.5em 1em;
     box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
     background-color: #e6f4ea;
    background: #f9f9f9;
     padding: 3em;
    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;
}
}


.entete {
/* =========================================================
    font-weight: bold;
  ENTÊTE
    text-align: center;
========================================================= */
    font-size: 1.4em;
}


.soustitre {  
.infoboxv4-entete {
    position: relative;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     padding: 0.5em;
     font-size: 1.3em;
     margin: 5px;
     padding: 0.5em 2.2em 0.5em 0.6em;
 
     margin: 0;
}
 
/* HEADER */
.header, .subheader {
    font-weight: bold;
    text-align: center;
    padding: 0.5em;
     margin: 0.5em;
}
}


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


.subheader {
/* sous-texte */
     line-height: 1.1;
.infoboxv4-lo {
     padding: 4px;
     font-size: 0.7em;
    font-weight: normal;
     margin-top: 0.2em;
}
}


.infobox-liste th, .infobox-liste td {
/* =========================================================
    text-align: left;
  BLOCS (SECTIONS)
    vertical-align: top;
========================================================= */
}


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


.infobox-liste td {
/* Icône bloc */
    width: 15em;
.infoboxv4-titre-bloc::after {
}
     content: "";
 
     position: absolute;
 
     right: 8px;
 
     top: 50%;
.tabber__tabs {
     width: 14px;
        justify-content: space-evenly;
     height: 14px;
}
     transform: translateY(-50%);
 
     background-size: contain;
hr {
     background-repeat: no-repeat;
  margin: 0 0.5em;
     opacity: 0.7;
}
 
.infobox, .infobox_top_border, .infobox_bottom_border {
     padding: 5px;
     background: #f9f9f9;
     border: 1px solid #aaa;
     width: 325px;
     word-wrap: break-word;
     float: right;
    clear: right;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0 0 0.5em 1em;
    border-radius: 10px;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1)
}
 
.infobox_bottom_border {
    width: 100%;
    max-width: 100%;
     border-bottom: 1px solid #aaa;
}
 
.infobox-title {
     font-weight: bold;
    text-align: center;
     color: #000;
    background: #54994C;
    padding: 1px;
    width: 100%;
    height: 45px;
}
}


.infobox-subtitle, .infobox-subtitle-biography {
/* =========================================================
    font-weight: bold;
  IMAGES
    text-align: center;
========================================================= */
    background-color: #5c76be;
    margin: 0.5em;
    padding: 0.2em;
}


.infobox-LO, .infobox-caption {
.infoboxv4-portrait,
    font-size: small;
.infoboxv4-carte,
    font-style: italic;
.infoboxv4-image {
    margin: 0.5em 0;
     text-align: center;
     text-align: center;
    width: -webkit-fill-available;
}
.infobox-séparateur, .infobox_separator {
     padding: 0.5em;
     padding: 0.5em;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-weight: bold;
    text-align: center;
    background: #EBEBEB;
    color: #333;
}
}


.infobox-image {
.infoboxv4-portrait img,
     font-size: smaller;
.infoboxv4-carte img,
    font-style: italic;
.infoboxv4-image img {
     margin: 0.5em 0;
     max-width: 100%;
     text-align: center;
     height: auto;
     border-radius: 4px;
}
}


.infobox-center, .infobox-left, .infobox-right {
.infoboxv4-portrait div,
     font-size: smaller;
.infoboxv4-carte div,
     font-style: italic;
.infoboxv4-image div {
     margin: 0.5em 0;
     font-size: 0.8em;
    text-align: center;
     color: #54595d;
    width: -webkit-fill-available;
     margin-top: 0.3em;
}
}


.infobox-left {
/* =========================================================
    text-align: left;
  TABLEAUX
}
========================================================= */


.infobox-right {
.infoboxv4-tableau {
     text-align: right;
     width: 100%;
    border-collapse: collapse;
}
}


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


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


.infobox-table td {
.infoboxv4-tableau td {
     width: 15em;
     width: 60%;
}
}


.infobox-list-left {
.infoboxv4-tableau tr + tr td,
     text-align: center;
.infoboxv4-tableau tr + tr th {
    float: left;
     border-top: 1px solid #eaecf0;
    width: 45%;
}
}


.infobox-list-right {
/* =========================================================
    text-align: center;
  SÉPARATEURS
    float: right;
========================================================= */
    width: 45%;
}


.border-line {
.infoboxv4-separateur {
     border-top-style: solid;
     border-top: 1px solid #a2a9b1;
    border-width: 1px;
     margin: 0.3em 0;
    height: 2px;
     margin: 5px 0.5em;
}
}


hr.nation {
/* =========================================================
    background-color: #65cec9cc;
  ICÔNES PAR CHARTE
    margin: 0.5em;
========================================================= */
}


.infobox-container {
.infoboxv4-entete.empire::after,
    float: right;
.infoboxv4-titre-bloc.empire::after {
    clear: right;
     background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
    width: 33%;
     margin-left: 10px;
}
}


audio {
.infoboxv4-entete.biographie::after,
    width: -webkit-fill-available;
.infoboxv4-titre-bloc.biographie::after {
     height: 20px;
     background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
}
}


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


.column {
.infoboxv4-entete.darkgods::after,
    float: left;
.infoboxv4-titre-bloc.darkgods::after {
     width: 50%;
     background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
    padding: 10px;
}
}


/* Navbox Template */
.infoboxv4-entete.cite_independante::after,
 
.infoboxv4-titre-bloc.cite_independante::after {
/* Navbox Styling */
     background-image: url(https://wiki.alakihel.ovh/images/2/28/Pictogram_freecity.png);
.navbox {
    border: 1px solid #aaa;
    padding: 2px;
    font-size: 88%;
     background: #f9f9f9;
    margin: 5px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}
}


.navbox-title {
.infoboxv4-entete.björkan::after,
    background-color: #ccccff;
.infoboxv4-titre-bloc.björkan::after {
    font-weight: bold;
     background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
     text-align: center;
    padding: 2px;
}
}


.navbox-list {
/* =========================================================
    text-align: left;
  CORRECTIONS MEDIAWIKI
    padding: 5px;
========================================================= */
}


.navbox-group {
.infobox > p:only-child {
     width: 12%;
     display: none;
    text-align: right;
    padding-right: 0.5em;
    font-weight: bold;
    white-space: nowrap;
}
}


.navbox-table {
.infobox table {
    border-collapse: collapse;
     width: 100%;
     width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}
.navbox hlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.navbox hlist ul {
    display: inline;
}
.navbox hlist li {
    display: inline;
    margin-right: 10px;
}
.selectable-table tr:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}
/* Conteneur des onglets */
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 1em 0;
  border-bottom: 2px solid #ccc;
}
/* Cache les boutons radio */
.tabs input[type="radio"] {
  display: none;
}
/* Style des labels (onglets cliquables) */
.tabs label {
  padding: 10px 20px;
  margin-right: 5px;
  background-color: #eee;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}
/* Onglet actif */
.tabs input[type="radio"]:checked + label {
  background-color: #fff;
  border-bottom: 2px solid white;
  font-weight: bold;
}
/* Contenu des onglets */
.tab-content {
  display: none;
  width: 100%;
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #fff;
}
}


/* Affiche le contenu de l'onglet sélectionné */
.infobox th,
#tab1:checked ~ #content1,
.infobox td {
#tab2:checked ~ #content2,
    border: none;
#tab3:checked ~ #content3 {
  display: block;
}
}

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