Aller au contenu

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

De Wikiquestia
Page créée avec « .infobox { padding: 5px; width: 25em; background: #f9f9f9; border: 1px solid #aaa; clear: right; float: right; font-size: 0.9em; line-height: 1.4; margin: 0 0 0.5em 1em; max-width: 325px; word-wrap: break-word } .infobox-title { display: table; padding: 1px; height: 45px; width: 100%; font-weight: bold; text-align: center; color: #000000; background: #54994C; } .infobox-subtitle { font-weight: bold; text-align: center; margin: 0.5em... »
 
Aucun résumé des modifications
 
(438 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
.infobox {
/* =========================================================
padding: 5px;
  GLOBAL CLEAN BASE
width: 25em;
========================================================= */
background: #f9f9f9;
border: 1px solid #aaa;
clear: right;
float: right;
font-size: 0.9em;
line-height: 1.4;
margin: 0 0 0.5em 1em;
max-width: 325px;
word-wrap: break-word
}


.infobox-title {
hr {
display: table;
  margin: 0.3em 0.5em;
padding: 1px;
height: 45px;
width: 100%;
font-weight: bold;
text-align: center;
color: #000000;
background: #54994C;
}
}


.infobox-subtitle {
/* =========================================================
    font-weight: bold;
  INFOBOX V4 (CORE)
    text-align: center;
========================================================= */
margin: 0.5em 0.5em 0.5em 0.5em;
    padding: 0.2em;
    background-color: #5c76be;
}


 
.infobox,
.infobox-LO {
.infoboxv4 {
font-size: smaller;
    width: 320px;
font-style: italic;
    float: right;
margin: 0.5em 0;
    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;
}
}


.infobox-subtitle-biography {
/* =========================================================
font-weight: bold;
  ENTÊTE
text-align: center;
========================================================= */
line-height: 1.1;
margin: 0 0 5px 0;
padding: 4px;
background-color: #5c76be;
}


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


.infobox-séparateur {
/* Icône entête */
padding: 0.5em;
.infoboxv4-entete::after {
border-top: 1px solid;
    content: "";
border-bottom: 1px solid;
    position: absolute;
font-weight: bold;
    top: 50%;
text-align: center;
    right: 8px;
line-height: 1.1;
    width: 18px;
margin: 0.5em 0 0.5em 0;
    height: 18px;
background: #EBEBEB;
    transform: translateY(-50%);
color: #333;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
}
}


.infobox-image {
/* sous-texte */
text-align: center;
.infoboxv4-lo {
border: #333;
    font-size: 0.7em;
border-style: solid;
    font-weight: normal;
border-width: 1px;
    margin-top: 0.2em;
padding: 0, 5em;
}
}


.infobox-center {
/* =========================================================
text-align: center;
  BLOCS (SECTIONS)
}
========================================================= */


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


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


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


.infobox-lined {}
.infoboxv4-portrait img,
 
.infoboxv4-carte img,
.infobox-2-boxes {}
.infoboxv4-image img {
 
    max-width: 100%;
.infobox-list {
    height: auto;
align: center;
    border-radius: 4px;
}
}


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


.infobox-list-right {
/* =========================================================
  TABLEAUX
========================================================= */


align: center;
.infoboxv4-tableau {
float: right;
    width: 100%;
width: 45%;
    border-collapse: collapse;
}
}


 
.infoboxv4-tableau th,
.mw-image-border .mw-file-element {
.infoboxv4-tableau td {
border: 1px solid #eaecf0
    padding: 0.35em 0.5em;
    vertical-align: top;
}
}


figure {
.infoboxv4-tableau th {
display: table;
    width: 40%;
text-align: center;
    font-weight: normal;
border-collapse: collapse;
    color: #202122;
line-height: 0;
margin: 0.2em;
clear: right;
float: right
}
}


.border-line {
.infoboxv4-tableau td {
     border-top-style: solid;
     width: 60%;
    border-width: 1px;
    border-color: #a2a9b1;
    height: 1px;
    margin: 5px 0.5em;
}
}


.infobox-container {
.infoboxv4-tableau tr + tr td,
float: right;
.infoboxv4-tableau tr + tr th {
clear: right;
    border-top: 1px solid #eaecf0;
width: 33%;
margin-left: 10px;
}
}


audio {
/* =========================================================
width: -webkit-fill-available;
  SÉPARATEURS
height: 20px;
========================================================= */


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


.row {
/* =========================================================
content: "";
  ICÔNES PAR CHARTE
display: table;
========================================================= */
clear: both;
}


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


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


.infobox_v3 p.bloc,
.infoboxv4-entete.geographie::after,
.infobox_v3 table caption {
.infoboxv4-titre-bloc.geographie::after {
background-color: #eaecf0 !important;
    background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
color: #222 !important;
}
}


div.infobox_v3 {
.infoboxv4-entete.darkgods::after,
padding: 10px;
.infoboxv4-titre-bloc.darkgods::after {
width: 25em;
    background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
background: #ffffff;
clear: right;
float: right;
font-size: 0.9em;
line-height: 1.4;
margin: 1em 1em 0.5em 1em;
max-width: 325px;
word-wrap: break-word;
box-shadow: 0 0 .2rem #999;
border: 0px;
}
}


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


.infobox_v3 .entete {
.infoboxv4-entete.björkan::after,
padding: 10px;
.infoboxv4-titre-bloc.björkan::after {
margin-top: -10px;
    background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
margin-bottom: 5px;
margin-right: -10px;
margin-left: -10px;
}
}


.infobox_v3 th[scope="row"],
/* =========================================================
.infobox_v3 td {
  CORRECTIONS MEDIAWIKI
padding-left: 2px;
========================================================= */
padding-right: 2px;
}
 
.infobox_v3 .images {
padding: 0 !important;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
 
.infobox_v3 .images img {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
height: auto;
max-width: 320px;
width: 100%;
}
 
.infobox_v3 p.legend {
background: #FFF;
color: #54525d;
font-size: 0.9em;
margin: 0;
padding: 3px 6px 12px;
text-align: left;
}
 
.infobox_v3 p.legend {
background: #FFF;
color: #54525d;
}
 
.infobox_v3 p.legend a {
color: #54525d;
text-align: center;
}
 
.infobox_v3 .navbar {
display: none;
}
 
.infobox_v3 p.bloc,
.infobox_v3 table caption {
background-color: #eaecf0 !important;
color: #222 !important;
}
 
/* Crédits d'auteurs: [[Projet:Charte graphique/Articles/Infoboxes]] */
 
.infobox_top_border {
border-top: 1px solid #aaa;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
width: 25em;
background: #f9f9f9;
line-height: 1.4;
margin: 0 0 0.5em 1em;
max-width: 327px;
word-wrap: break-word;
clear: right;
float: right;
}
 
.infobox_bottom_border {
background: #f9f9f9;
border-bottom: 1px solid #aaa;
width: 100%;
max-width: 100%;
float: right;
}


.infobox_header_blank {
.infobox > p:only-child {
padding: 0.5em;
    display: none;
clear: right;
font-size: 1.2em;
margin: 0.5em 0.5em 0.5em 0.5em;
font-weight: bold;
text-align: center;
background: #dfedff;
}
}


 
.infobox table {
.Infobox_country_heraldry {
    border-collapse: collapse;
padding: 0.5em;
    width: 100%;
clear: right;
font-size: 1.2em;
margin: 0.5em 0.5em 0.5em 0.5em;
font-weight: bold;
text-align: center;
color: #000000;
background: #54994c99;
}
}


 
.infobox th,
.infobox_separator {
.infobox td {
padding: 0.5em;
     border: none;
border-top: 1px solid;
border-bottom: 1px solid;
font-weight: bold;
text-align: center;
line-height: 1.1;
margin: 0.5em 0 0.5em 0;
background: #EBEBEB;
color: #333;
}
.infobox_header {
     clear: right;
    font-size: 1.2em;
    padding: 0.5em;
    margin: 0.5em 0.5em 0.5em 0.5em;
    font-weight: bold;
    text-align: center;
    color: #000000;
}
.header_country {
    background: #54994c99;
    background-image: url(http://localhost:8888/FQw/images/3/3a/Picto_infobox_compass.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_biography {
    background: #4C6099;
    background-image: url(http://localhost:8888/FQw/images/0/0c/Picto_infobox_biography.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_city {
    background: #9d943099;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_geography {
    background: #915B5B;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_place {
    background: #a7b0a799;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_race {
    background: #9f571899;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_ethnicity {
    background: #a1730099;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_organization {
    background-color: #9d943ccc;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_item {
    background: #9f262699;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
.header_event {
    background: #10c4b899;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7a/Picto_infobox_map.png);
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: contain;
}
 
.infobox_subheader {
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    margin: 0.5em 0.5em 0.5em 0.5em;
    padding: 4px;
}
.subheader_general {
    background: #4652adcc;
}
.subheader_country {
    background: #54994ccc;
}
.subheader_biography {
    background: #4c6199b6;;
}
.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 {
    background: #10c4bccc;
}
}

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