Modèle:Infobox personnalité politique/styles.css
Aller à la navigation
Aller à la recherche
/* ============================================================
WikiKabylie — Infobox personnalité politique
Modèle:Infobox personnalité politique/styles.css
============================================================ */
/* ------------------------------------------------------------
CONTENEUR
------------------------------------------------------------ */
.wk-infobox {
width: 330px;
float: right;
clear: right;
margin: 0 0 28px 30px;
overflow: hidden;
border: 1px solid #dfe5ea;
border-radius: 16px;
background: #ffffff;
color: #263b4d;
font-size: 13px;
line-height: 1.5;
}
/* ------------------------------------------------------------
EN-TÊTE
------------------------------------------------------------ */
.wk-infobox-header {
padding: 22px 22px 18px;
border-bottom: 1px solid #dfe5ea;
background: #f7fafc;
}
.wk-infobox-kicker {
margin-bottom: 6px;
color: #267a50;
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}
.wk-infobox-name {
color: #13283d;
font-family:
Georgia,
"Times New Roman",
serif;
font-size: 27px;
font-weight: 700;
line-height: 1.1;
letter-spacing: -.02em;
}
.wk-infobox-subtitle {
margin-top: 7px;
color: #718091;
font-size: 12px;
}
/* ------------------------------------------------------------
PHOTO
------------------------------------------------------------ */
.wk-infobox-image {
padding: 14px 14px 11px;
text-align: center;
background: #ffffff;
}
.wk-infobox-image img,
.wk-infobox-image .mw-file-element {
max-width: 100%;
height: auto;
border-radius: 10px;
}
.wk-infobox-caption {
margin-top: 8px;
color: #718091;
font-size: 11px;
line-height: 1.4;
}
/* ------------------------------------------------------------
TITRES DE SECTION
------------------------------------------------------------ */
.wk-infobox-section-title {
padding: 10px 16px;
border-top: 1px solid #dfe5ea;
border-bottom: 1px solid #dfe5ea;
background: #f3f7f9;
color: #0b5fa8;
font-size: 10px;
font-weight: 800;
letter-spacing: .1em;
text-transform: uppercase;
}
/* ------------------------------------------------------------
DONNÉES
------------------------------------------------------------ */
.wk-infobox-data {
background: #ffffff;
}
.wk-infobox-row {
display: grid;
grid-template-columns: 38% 62%;
border-bottom: 1px solid #eef1f3;
}
.wk-infobox-row:last-child {
border-bottom: 0;
}
.wk-infobox-label {
padding: 10px 8px 10px 16px;
color: #6c7b88;
font-size: 11px;
font-weight: 700;
}
.wk-infobox-value {
padding: 10px 16px 10px 8px;
color: #263b4d;
overflow-wrap: break-word;
}
.wk-infobox-value strong {
color: #13283d;
font-weight: 700;
}
.wk-infobox-muted {
color: #718091;
font-size: 11px;
}
/* ------------------------------------------------------------
FONCTION PRINCIPALE
------------------------------------------------------------ */
.wk-infobox-row-featured {
background: #f7fbff;
}
/* ------------------------------------------------------------
BLOC DE MANDAT
------------------------------------------------------------ */
.wk-infobox-mandate {
padding: 15px 16px;
border-bottom: 1px solid #e8edf1;
background: #f7fbff;
}
.wk-infobox-mandate-title {
color: #13283d;
font-family:
Georgia,
"Times New Roman",
serif;
font-size: 17px;
font-weight: 700;
line-height: 1.25;
}
.wk-infobox-mandate-period {
margin-top: 5px;
color: #718091;
font-size: 11px;
}
/* ------------------------------------------------------------
INFORMATIONS D'UN MANDAT
------------------------------------------------------------ */
.wk-infobox-mini-row {
display: grid;
grid-template-columns: 43% 57%;
gap: 8px;
margin-top: 9px;
font-size: 11px;
}
.wk-infobox-mini-row span {
color: #718091;
}
.wk-infobox-mini-row strong {
color: #263b4d;
font-weight: 700;
}
/* ------------------------------------------------------------
LIGNES LARGES
ouvrages / œuvres / publications
------------------------------------------------------------ */
.wk-infobox-row-wide {
grid-template-columns: 32% 68%;
}
/* ------------------------------------------------------------
LISTES DANS L'INFOBOX
------------------------------------------------------------ */
.wk-infobox-value ul {
margin: 2px 0 2px 17px;
padding: 0;
}
.wk-infobox-value li {
margin: 3px 0;
}
/* ------------------------------------------------------------
LIENS
------------------------------------------------------------ */
.wk-infobox a {
text-decoration: none;
}
.wk-infobox a:hover {
text-decoration: underline;
}
/* ------------------------------------------------------------
LIENS OFFICIELS
------------------------------------------------------------ */
.wk-infobox-official {
padding: 13px 16px;
border-top: 1px solid #e5e9ee;
background: #fafbfc;
}
.wk-infobox-official a {
font-weight: 700;
}
/* ------------------------------------------------------------
SIGNATURE
------------------------------------------------------------ */
.wk-infobox-signature {
text-align: center;
}
.wk-infobox-signature img,
.wk-infobox-signature .mw-file-element {
max-width: 160px;
height: auto;
}
/* ------------------------------------------------------------
COULEURS OPTIONNELLES
------------------------------------------------------------ */
.wk-infobox-politique .wk-infobox-header {
border-top: 4px solid #0b5fa8;
}
.wk-infobox-politique .wk-infobox-section-title {
border-left: 3px solid #258052;
}
/* ------------------------------------------------------------
AMÉLIORATION DES ÉLÉMENTS LONGS
------------------------------------------------------------ */
.wk-infobox-value,
.wk-infobox-mandate-title,
.wk-infobox-mini-row strong {
word-break: normal;
overflow-wrap: break-word;
}
/* ------------------------------------------------------------
MOBILE
------------------------------------------------------------ */
@media (max-width: 720px) {
.wk-infobox {
width: 100%;
float: none;
clear: both;
margin: 0 0 30px;
}
.wk-infobox-name {
font-size: 25px;
}
.wk-infobox-row {
grid-template-columns: 36% 64%;
}
.wk-infobox-mini-row {
grid-template-columns: 42% 58%;
}
}
/* ------------------------------------------------------------
TRÈS PETITS ÉCRANS
------------------------------------------------------------ */
@media (max-width: 480px) {
.wk-infobox-row {
display: block;
}
.wk-infobox-label {
padding: 10px 14px 2px;
color: #718091;
}
.wk-infobox-value {
padding: 2px 14px 11px;
}
.wk-infobox-mini-row {
display: block;
}
.wk-infobox-mini-row span {
display: block;
margin-bottom: 2px;
}
.wk-infobox-mini-row strong {
display: block;
}
}