« MediaWiki:Common.css » : différence entre les versions
Apparence
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
/* ========================================================= | |||
GLOBAL CLEAN BASE | |||
========================================================= */ | |||
hr { | hr { | ||
margin: | margin: 0.3em 0.5em; | ||
} | } | ||
/* ========================================================= | |||
INFOBOX V4 (CORE) | |||
========================================================= */ | |||
/* | |||
.infobox, | .infobox, | ||
.infoboxv4 { | .infoboxv4 { | ||
width: 320px; | width: 320px; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
margin: 0 0 0.5em 1em; | margin: 0 0 0.5em 1em; | ||
padding: 0; | |||
background: #f9f9f9; | |||
border: 1px solid #a2a9b1; | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.08); | box-shadow: 0 2px 4px rgba(0,0,0,0.08); | ||
font-size: 0.9em; | |||
line-height: 1.4; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* ===== ENTÊTE ===== */ | /* ========================================================= | ||
ENTÊTE | |||
========================================================= */ | |||
.infoboxv4-entete { | .infoboxv4-entete { | ||
position: relative; | |||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
font-size: 1.3em; | font-size: 1.3em; | ||
padding: 0.5em 0.6em; | padding: 0.5em 2.2em 0.5em 0.6em; | ||
margin: 0; | 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 { | .infoboxv4-lo { | ||
font-size: 0.7em; | font-size: 0.7em; | ||
| Ligne 518 : | Ligne 61 : | ||
} | } | ||
/* ===== BLOCS ===== */ | /* ========================================================= | ||
BLOCS (SECTIONS) | |||
========================================================= */ | |||
.infoboxv4-titre-bloc { | .infoboxv4-titre-bloc { | ||
position: relative; | |||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0.45em 0.6em; | padding: 0.45em 2em 0.45em 0.6em; | ||
margin: 0; | margin: 0; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
} | } | ||
/* ===== IMAGES ===== */ | /* 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-portrait, | ||
.infoboxv4- | .infoboxv4-carte, | ||
.infoboxv4- | .infoboxv4-image { | ||
text-align: center; | text-align: center; | ||
padding: 0.5em; | padding: 0.5em; | ||
| Ligne 538 : | Ligne 100 : | ||
.infoboxv4-portrait img, | .infoboxv4-portrait img, | ||
.infoboxv4- | .infoboxv4-carte img, | ||
.infoboxv4- | .infoboxv4-image img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
| Ligne 545 : | Ligne 107 : | ||
} | } | ||
.infoboxv4-portrait div, | .infoboxv4-portrait div, | ||
.infoboxv4- | .infoboxv4-carte div, | ||
.infoboxv4- | .infoboxv4-image div { | ||
font-size: 0.8em; | font-size: 0.8em; | ||
color: #54595d; | color: #54595d; | ||
| Ligne 554 : | Ligne 115 : | ||
} | } | ||
/* ===== TABLEAUX ===== */ | /* ========================================================= | ||
TABLEAUX | |||
========================================================= */ | |||
.infoboxv4-tableau { | .infoboxv4-tableau { | ||
| Ligne 567 : | Ligne 130 : | ||
} | } | ||
.infoboxv4-tableau th { | .infoboxv4-tableau th { | ||
width: 40%; | width: 40%; | ||
| Ligne 574 : | Ligne 136 : | ||
} | } | ||
.infoboxv4-tableau td { | .infoboxv4-tableau td { | ||
width: 60%; | width: 60%; | ||
} | } | ||
.infoboxv4-tableau tr + tr td, | .infoboxv4-tableau tr + tr td, | ||
.infoboxv4-tableau tr + tr th { | .infoboxv4-tableau tr + tr th { | ||
| Ligne 585 : | Ligne 145 : | ||
} | } | ||
/* ===== | /* ========================================================= | ||
SÉPARATEURS | |||
========================================================= */ | |||
.infoboxv4-separateur { | .infoboxv4-separateur { | ||
| Ligne 592 : | Ligne 154 : | ||
} | } | ||
/* ===== CORRECTIONS | /* ========================================================= | ||
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 { | .infobox table { | ||
border-collapse: collapse; | border-collapse: collapse; | ||
width: 100%; | |||
} | } | ||
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;
}