« Modèle:Infobox personnalité politique/styles.css » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 3 : | Ligne 3 : | ||
Modèle:Infobox personnalité politique/styles.css | Modèle:Infobox personnalité politique/styles.css | ||
============================================================ */ | ============================================================ */ | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
CONTENEUR | CONTENEUR | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox { | .wk-infobox { | ||
width: 330px; | width: 330px; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
margin: 0 0 24px 24px; | |||
margin: 0 0 | |||
border: 1px solid #dfe5ea; | border: 1px solid #dfe5ea; | ||
border-radius: | border-radius: 12px; | ||
background-color: #ffffff; | |||
background: #ffffff; | |||
color: #263b4d; | color: #263b4d; | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Lato, Helvetica, Arial, sans-serif; | |||
font-size: 13px; | font-size: 13px; | ||
line-height: 1.5; | line-height: 1.5; | ||
overflow: hidden; | |||
} | } | ||
.wk-infobox:hover { | |||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); | |||
} | |||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
EN-TÊTE | EN-TÊTE | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-header { | .wk-infobox-header { | ||
padding: | padding: 20px 20px 16px; | ||
border-bottom: 1px solid #dfe5ea; | border-bottom: 1px solid #dfe5ea; | ||
background-color: #f8fafc; | |||
background: # | |||
} | } | ||
.wk-infobox-kicker { | .wk-infobox-kicker { | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
color: #258052; /* Vert */ | |||
color: # | |||
font-size: 10px; | font-size: 10px; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: .12em; | letter-spacing: .12em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
.wk-infobox-name { | .wk-infobox-name { | ||
color: #13283d; | color: #13283d; | ||
font-family: Georgia, "Times New Roman", serif; | |||
font-family: | font-size: 24px; | ||
font-size: | |||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.2; | |||
line-height: 1. | letter-spacing: -.01em; | ||
letter-spacing: -. | |||
} | } | ||
.wk-infobox-subtitle { | .wk-infobox-subtitle { | ||
margin-top: | margin-top: 6px; | ||
color: #6c7b88; | |||
color: # | |||
font-size: 12px; | font-size: 12px; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
PHOTO | PHOTO | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-image { | .wk-infobox-image { | ||
padding: | padding: 16px 16px 12px; | ||
text-align: center; | text-align: center; | ||
background-color: #ffffff; | |||
background: #ffffff; | |||
} | } | ||
.wk-infobox-image img, | .wk-infobox-image img, | ||
| Ligne 100 : | Ligne 76 : | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
border-radius: 8px; | |||
border-radius: | |||
} | } | ||
.wk-infobox-caption { | .wk-infobox-caption { | ||
margin-top: 8px; | margin-top: 8px; | ||
color: #6c7b88; | |||
color: # | |||
font-size: 11px; | font-size: 11px; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
TITRES DE SECTION | TITRES DE SECTION | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-section-title { | .wk-infobox-section-title { | ||
padding: | padding: 8px 16px; | ||
border-top: 1px solid #dfe5ea; | border-top: 1px solid #dfe5ea; | ||
border-bottom: 1px solid #dfe5ea; | border-bottom: 1px solid #dfe5ea; | ||
background-color: #f8fafc; | |||
background: # | color: #0b5fa8; /* Bleu */ | ||
color: #0b5fa8; | |||
font-size: 10px; | font-size: 10px; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: .1em; | letter-spacing: .1em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
DONNÉES | DONNÉES | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-data { | .wk-infobox-data { | ||
background: #ffffff; | background-color: #ffffff; | ||
} | } | ||
.wk-infobox-row { | .wk-infobox-row { | ||
display: grid; | display: grid; | ||
grid-template-columns: 38% 62%; | grid-template-columns: 38% 62%; | ||
border-bottom: 1px solid #eef1f3; | border-bottom: 1px solid #eef1f3; | ||
} | } | ||
.wk-infobox-row:last-child { | .wk-infobox-row:last-child { | ||
| Ligne 160 : | Ligne 119 : | ||
} | } | ||
.wk-infobox-row:hover { | |||
background-color: #f8fafc; | |||
} | |||
.wk-infobox-label { | .wk-infobox-label { | ||
padding: 10px 8px 10px 16px; | padding: 10px 8px 10px 16px; | ||
color: #6c7b88; | color: #6c7b88; | ||
font-size: 11px; | font-size: 11px; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.wk-infobox-value { | .wk-infobox-value { | ||
padding: 10px 16px 10px 8px; | padding: 10px 16px 10px 8px; | ||
color: #263b4d; | color: #263b4d; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
} | } | ||
.wk-infobox-value strong { | .wk-infobox-value strong { | ||
color: #13283d; | color: #13283d; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.wk-infobox-muted { | .wk-infobox-muted { | ||
color: # | color: #6c7b88; | ||
font-size: 11px; | font-size: 11px; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
FONCTION PRINCIPALE | FONCTION PRINCIPALE & BLOCS DE MANDAT | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-row-featured { | .wk-infobox-row-featured { | ||
background: # | background-color: #f0f7ff; | ||
} | } | ||
.wk-infobox-mandate { | .wk-infobox-mandate { | ||
padding: | padding: 14px 16px; | ||
border-bottom: 1px solid #dfe5ea; | |||
border-bottom: 1px solid # | background-color: #f0f7ff; | ||
background: # | |||
} | } | ||
.wk-infobox-mandate-title { | .wk-infobox-mandate-title { | ||
color: #13283d; | color: #13283d; | ||
font-family: Georgia, "Times New Roman", serif; | |||
font-family: | font-size: 16px; | ||
font-size: | |||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.25; | line-height: 1.25; | ||
} | } | ||
.wk-infobox-mandate-period { | .wk-infobox-mandate-period { | ||
margin-top: | margin-top: 4px; | ||
color: #6c7b88; | |||
color: # | |||
font-size: 11px; | font-size: 11px; | ||
} | } | ||
.wk-infobox-mini-row { | .wk-infobox-mini-row { | ||
display: grid; | display: grid; | ||
grid-template-columns: 43% 57%; | grid-template-columns: 43% 57%; | ||
gap: 8px; | gap: 8px; | ||
margin-top: 8px; | |||
margin-top: | |||
font-size: 11px; | font-size: 11px; | ||
} | } | ||
.wk-infobox-mini-row span { | .wk-infobox-mini-row span { | ||
color: # | color: #6c7b88; | ||
} | } | ||
.wk-infobox-mini-row strong { | .wk-infobox-mini-row strong { | ||
color: #263b4d; | color: #263b4d; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.wk-infobox-row-wide { | .wk-infobox-row-wide { | ||
grid-template-columns: 32% 68%; | grid-template-columns: 32% 68%; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
LISTES | LISTES & LIENS | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-value ul { | .wk-infobox-value ul { | ||
margin: 2px 0 2px | margin: 2px 0 2px 16px; | ||
padding: 0; | padding: 0; | ||
} | } | ||
.wk-infobox-value li { | .wk-infobox-value li { | ||
margin: 3px 0; | margin: 3px 0; | ||
} | } | ||
.wk-infobox a { | .wk-infobox a { | ||
color: #0b5fa8; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.wk-infobox a:hover { | .wk-infobox a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
.wk-infobox-official { | .wk-infobox-official { | ||
padding: | padding: 12px 16px; | ||
border-top: 1px solid #dfe5ea; | |||
border-top: 1px solid # | background-color: #f8fafc; | ||
background: # | |||
} | } | ||
.wk-infobox-official a { | .wk-infobox-official a { | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
SIGNATURE | SIGNATURE | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-signature { | .wk-infobox-signature { | ||
padding: 10px; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.wk-infobox-signature img, | .wk-infobox-signature img, | ||
.wk-infobox-signature .mw-file-element { | .wk-infobox-signature .mw-file-element { | ||
max-width: | max-width: 150px; | ||
height: auto; | height: auto; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
VARIATION POLITIQUE (Bordures personnalisées) | |||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-politique .wk-infobox-header { | .wk-infobox-politique .wk-infobox-header { | ||
border-top: 4px solid #0b5fa8; | border-top: 4px solid #0b5fa8; | ||
} | } | ||
.wk-infobox-politique .wk-infobox-section-title { | .wk-infobox-politique .wk-infobox-section-title { | ||
border-left: 3px solid #258052; | border-left: 3px solid #258052; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
RESPONSIVE DESIGN (Mobile) | |||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.wk-infobox { | .wk-infobox { | ||
width: 100%; | width: 100%; | ||
float: none; | float: none; | ||
clear: both; | clear: both; | ||
margin: 0 0 24px 0; | |||
margin: 0 0 | |||
} | } | ||
.wk-infobox-name { | .wk-infobox-name { | ||
font-size: | font-size: 22px; | ||
} | } | ||
.wk-infobox-row { | .wk-infobox-row { | ||
grid-template-columns: 36% 64%; | grid-template-columns: 36% 64%; | ||
} | } | ||
.wk-infobox-mini-row { | .wk-infobox-mini-row { | ||
grid-template-columns: 42% 58%; | grid-template-columns: 42% 58%; | ||
} | } | ||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.wk-infobox-row { | .wk-infobox-row { | ||
display: block; | display: block; | ||
} | } | ||
.wk-infobox-label { | .wk-infobox-label { | ||
padding: | padding: 8px 14px 2px; | ||
color: #6c7b88; | |||
color: # | |||
} | } | ||
.wk-infobox-value { | .wk-infobox-value { | ||
padding: 2px 14px | padding: 2px 14px 10px; | ||
} | } | ||
.wk-infobox-mini-row { | .wk-infobox-mini-row { | ||
display: block; | display: block; | ||
} | } | ||
.wk-infobox-mini-row span { | .wk-infobox-mini-row span { | ||
display: block; | display: block; | ||
margin-bottom: 2px; | margin-bottom: 2px; | ||
} | } | ||
.wk-infobox-mini-row strong { | .wk-infobox-mini-row strong { | ||
display: block; | display: block; | ||
} | } | ||
} | |||
/* ------------------------------------------------------------ | |||
IMPRESSION | |||
------------------------------------------------------------ */ | |||
@media print { | |||
.wk-infobox { | |||
float: right; | |||
width: 40%; | |||
box-shadow: none; | |||
border: 1px solid #000000; | |||
background-color: #ffffff; | |||
color: #000000; | |||
} | |||
} | } | ||
Version du 9 août 2026 à 00:43
/* ============================================================
WikiKabylie — Infobox personnalité politique
Modèle:Infobox personnalité politique/styles.css
============================================================ */
/* ------------------------------------------------------------
CONTENEUR
------------------------------------------------------------ */
.wk-infobox {
width: 330px;
float: right;
clear: right;
margin: 0 0 24px 24px;
border: 1px solid #dfe5ea;
border-radius: 12px;
background-color: #ffffff;
color: #263b4d;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Lato, Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.5;
overflow: hidden;
}
.wk-infobox:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
/* ------------------------------------------------------------
EN-TÊTE
------------------------------------------------------------ */
.wk-infobox-header {
padding: 20px 20px 16px;
border-bottom: 1px solid #dfe5ea;
background-color: #f8fafc;
}
.wk-infobox-kicker {
margin-bottom: 6px;
color: #258052; /* Vert */
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: 24px;
font-weight: 700;
line-height: 1.2;
letter-spacing: -.01em;
}
.wk-infobox-subtitle {
margin-top: 6px;
color: #6c7b88;
font-size: 12px;
}
/* ------------------------------------------------------------
PHOTO
------------------------------------------------------------ */
.wk-infobox-image {
padding: 16px 16px 12px;
text-align: center;
background-color: #ffffff;
}
.wk-infobox-image img,
.wk-infobox-image .mw-file-element {
max-width: 100%;
height: auto;
border-radius: 8px;
}
.wk-infobox-caption {
margin-top: 8px;
color: #6c7b88;
font-size: 11px;
line-height: 1.4;
}
/* ------------------------------------------------------------
TITRES DE SECTION
------------------------------------------------------------ */
.wk-infobox-section-title {
padding: 8px 16px;
border-top: 1px solid #dfe5ea;
border-bottom: 1px solid #dfe5ea;
background-color: #f8fafc;
color: #0b5fa8; /* Bleu */
font-size: 10px;
font-weight: 800;
letter-spacing: .1em;
text-transform: uppercase;
}
/* ------------------------------------------------------------
DONNÉES
------------------------------------------------------------ */
.wk-infobox-data {
background-color: #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-row:hover {
background-color: #f8fafc;
}
.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: #6c7b88;
font-size: 11px;
}
/* ------------------------------------------------------------
FONCTION PRINCIPALE & BLOCS DE MANDAT
------------------------------------------------------------ */
.wk-infobox-row-featured {
background-color: #f0f7ff;
}
.wk-infobox-mandate {
padding: 14px 16px;
border-bottom: 1px solid #dfe5ea;
background-color: #f0f7ff;
}
.wk-infobox-mandate-title {
color: #13283d;
font-family: Georgia, "Times New Roman", serif;
font-size: 16px;
font-weight: 700;
line-height: 1.25;
}
.wk-infobox-mandate-period {
margin-top: 4px;
color: #6c7b88;
font-size: 11px;
}
.wk-infobox-mini-row {
display: grid;
grid-template-columns: 43% 57%;
gap: 8px;
margin-top: 8px;
font-size: 11px;
}
.wk-infobox-mini-row span {
color: #6c7b88;
}
.wk-infobox-mini-row strong {
color: #263b4d;
font-weight: 700;
}
.wk-infobox-row-wide {
grid-template-columns: 32% 68%;
}
/* ------------------------------------------------------------
LISTES & LIENS
------------------------------------------------------------ */
.wk-infobox-value ul {
margin: 2px 0 2px 16px;
padding: 0;
}
.wk-infobox-value li {
margin: 3px 0;
}
.wk-infobox a {
color: #0b5fa8;
text-decoration: none;
}
.wk-infobox a:hover {
text-decoration: underline;
}
.wk-infobox-official {
padding: 12px 16px;
border-top: 1px solid #dfe5ea;
background-color: #f8fafc;
}
.wk-infobox-official a {
font-weight: 700;
}
/* ------------------------------------------------------------
SIGNATURE
------------------------------------------------------------ */
.wk-infobox-signature {
padding: 10px;
text-align: center;
}
.wk-infobox-signature img,
.wk-infobox-signature .mw-file-element {
max-width: 150px;
height: auto;
}
/* ------------------------------------------------------------
VARIATION POLITIQUE (Bordures personnalisées)
------------------------------------------------------------ */
.wk-infobox-politique .wk-infobox-header {
border-top: 4px solid #0b5fa8;
}
.wk-infobox-politique .wk-infobox-section-title {
border-left: 3px solid #258052;
}
/* ------------------------------------------------------------
RESPONSIVE DESIGN (Mobile)
------------------------------------------------------------ */
@media (max-width: 720px) {
.wk-infobox {
width: 100%;
float: none;
clear: both;
margin: 0 0 24px 0;
}
.wk-infobox-name {
font-size: 22px;
}
.wk-infobox-row {
grid-template-columns: 36% 64%;
}
.wk-infobox-mini-row {
grid-template-columns: 42% 58%;
}
}
@media (max-width: 480px) {
.wk-infobox-row {
display: block;
}
.wk-infobox-label {
padding: 8px 14px 2px;
color: #6c7b88;
}
.wk-infobox-value {
padding: 2px 14px 10px;
}
.wk-infobox-mini-row {
display: block;
}
.wk-infobox-mini-row span {
display: block;
margin-bottom: 2px;
}
.wk-infobox-mini-row strong {
display: block;
}
}
/* ------------------------------------------------------------
IMPRESSION
------------------------------------------------------------ */
@media print {
.wk-infobox {
float: right;
width: 40%;
box-shadow: none;
border: 1px solid #000000;
background-color: #ffffff;
color: #000000;
}
}