« 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 5 : | Ligne 5 : | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
CONTENEUR | CONTENEUR PRINCIPAL | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox { | .wk-infobox { | ||
| Ligne 13 : | Ligne 13 : | ||
margin: 0 0 24px 24px; | margin: 0 0 24px 24px; | ||
border: 1px solid # | border: 1px solid #e2e8f0; | ||
border-radius: | border-radius: 16px; | ||
background-color: #ffffff; | background-color: #ffffff; | ||
color: # | color: #1e293b; | ||
box-shadow: 0 | box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05); | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | ||
font-size: 13px; | font-size: 13px; | ||
line-height: 1.5; | line-height: 1.5; | ||
overflow: hidden; | overflow: hidden; | ||
transition: box-shadow 0.2s ease, transform 0.2s ease; | |||
} | } | ||
.wk-infobox:hover { | .wk-infobox:hover { | ||
box-shadow: 0 | box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04); | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
EN-TÊTE | EN-TÊTE (HEADER) | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-header { | .wk-infobox-header { | ||
padding: 20px | padding: 22px 20px 18px; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #f1f5f9; | ||
background- | background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); | ||
text-align: left; | |||
} | } | ||
.wk-infobox-kicker { | .wk-infobox-kicker { | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
color: # | color: #16834b; /* Vert Amazigh */ | ||
font-size: 10px; | font-size: 10px; | ||
font-weight: 800; | font-weight: 800; | ||
| Ligne 49 : | Ligne 51 : | ||
.wk-infobox-name { | .wk-infobox-name { | ||
color: # | color: #0f172a; | ||
font-family: Georgia, "Times New Roman", serif; | font-family: Georgia, "Times New Roman", serif; | ||
font-size: | font-size: 25px; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1. | line-height: 1.15; | ||
letter-spacing: -. | letter-spacing: -.02em; | ||
} | } | ||
.wk-infobox-subtitle { | .wk-infobox-subtitle { | ||
margin-top: 6px; | margin-top: 6px; | ||
color: # | color: #64748b; | ||
font-size: 12px; | font-size: 12px; | ||
font-weight: 500; | |||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
PHOTO | PHOTO & LÉGENDE | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-image { | .wk-infobox-image { | ||
| Ligne 76 : | Ligne 79 : | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
border-radius: 8px; | border-radius: 10px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); | |||
} | } | ||
.wk-infobox-caption { | .wk-infobox-caption { | ||
margin-top: 8px; | margin-top: 8px; | ||
color: # | color: #64748b; | ||
font-size: 11px; | font-size: 11px; | ||
line-height: 1. | line-height: 1.45; | ||
} | } | ||
| Ligne 91 : | Ligne 95 : | ||
.wk-infobox-section-title { | .wk-infobox-section-title { | ||
padding: 8px 16px; | padding: 8px 16px; | ||
border-top: 1px solid # | border-top: 1px solid #f1f5f9; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #f1f5f9; | ||
background-color: #f8fafc; | background-color: #f8fafc; | ||
color: # | color: #0757a6; /* Bleu Azur */ | ||
font-size: 10px; | font-size: 10px; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: . | letter-spacing: .12em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
DONNÉES | DONNÉES & LIGNES (ROWS) | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-data { | .wk-infobox-data { | ||
| Ligne 112 : | Ligne 116 : | ||
display: grid; | display: grid; | ||
grid-template-columns: 38% 62%; | grid-template-columns: 38% 62%; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #f8fafc; | ||
transition: background-color 0.15s ease; | |||
} | } | ||
| Ligne 125 : | Ligne 130 : | ||
.wk-infobox-label { | .wk-infobox-label { | ||
padding: 10px 8px 10px 16px; | padding: 10px 8px 10px 16px; | ||
color: # | color: #64748b; | ||
font-size: 11px; | font-size: 11px; | ||
font-weight: 700; | font-weight: 700; | ||
| Ligne 132 : | Ligne 137 : | ||
.wk-infobox-value { | .wk-infobox-value { | ||
padding: 10px 16px 10px 8px; | padding: 10px 16px 10px 8px; | ||
color: # | color: #1e293b; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
} | } | ||
.wk-infobox-value strong { | .wk-infobox-value strong { | ||
color: # | color: #0f172a; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.wk-infobox-muted { | .wk-infobox-muted { | ||
color: # | color: #64748b; | ||
font-size: 11px; | font-size: 11px; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
FONCTIONS PRINCIPALES & BLOCS DE MANDAT | |||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-row-featured { | .wk-infobox-row-featured { | ||
| Ligne 155 : | Ligne 160 : | ||
.wk-infobox-mandate { | .wk-infobox-mandate { | ||
padding: 14px 16px; | padding: 14px 16px; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #e2e8f0; | ||
background-color: #f0f7ff; | background-color: #f0f7ff; | ||
} | } | ||
.wk-infobox-mandate-title { | .wk-infobox-mandate-title { | ||
color: # | color: #0f172a; | ||
font-family: Georgia, "Times New Roman", serif; | font-family: Georgia, "Times New Roman", serif; | ||
font-size: | font-size: 15px; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1. | line-height: 1.3; | ||
} | } | ||
.wk-infobox-mandate-period { | .wk-infobox-mandate-period { | ||
margin-top: 4px; | margin-top: 4px; | ||
color: # | color: #64748b; | ||
font-size: 11px; | font-size: 11px; | ||
font-weight: 600; | |||
} | } | ||
| Ligne 182 : | Ligne 188 : | ||
.wk-infobox-mini-row span { | .wk-infobox-mini-row span { | ||
color: # | color: #64748b; | ||
} | } | ||
.wk-infobox-mini-row strong { | .wk-infobox-mini-row strong { | ||
color: # | color: #1e293b; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| Ligne 207 : | Ligne 213 : | ||
.wk-infobox a { | .wk-infobox a { | ||
color: # | color: #0757a6; | ||
text-decoration: none; | text-decoration: none; | ||
transition: color 0.15s ease; | |||
} | } | ||
.wk-infobox a:hover { | .wk-infobox a:hover { | ||
color: #073763; | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| Ligne 217 : | Ligne 225 : | ||
.wk-infobox-official { | .wk-infobox-official { | ||
padding: 12px 16px; | padding: 12px 16px; | ||
border-top: 1px solid # | border-top: 1px solid #e2e8f0; | ||
background-color: #f8fafc; | background-color: #f8fafc; | ||
text-align: center; | |||
} | } | ||
.wk-infobox-official a { | .wk-infobox-official a { | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 12px; | |||
} | } | ||
| Ligne 229 : | Ligne 239 : | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-signature { | .wk-infobox-signature { | ||
padding: | padding: 12px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Ligne 240 : | Ligne 250 : | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
VARIATION POLITIQUE ( | VARIATION POLITIQUE (Accents visuels Amazigh/Kabylie) | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
.wk-infobox-politique .wk-infobox-header { | .wk-infobox-politique .wk-infobox-header { | ||
border-top: 4px solid # | border-top: 4px solid #0757a6; /* Bleu Azur */ | ||
} | } | ||
.wk-infobox-politique .wk-infobox-section-title { | .wk-infobox-politique .wk-infobox-section-title { | ||
border-left: 3px solid # | border-left: 3px solid #16834b; /* Vert Nature */ | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
RESPONSIVE DESIGN ( | RESPONSIVE DESIGN (Mobiles & Tablettes) | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
| Ligne 259 : | Ligne 269 : | ||
clear: both; | clear: both; | ||
margin: 0 0 24px 0; | margin: 0 0 24px 0; | ||
border-radius: 12px; | |||
} | } | ||
| Ligne 281 : | Ligne 292 : | ||
.wk-infobox-label { | .wk-infobox-label { | ||
padding: 8px 14px 2px; | padding: 8px 14px 2px; | ||
color: # | color: #64748b; | ||
} | } | ||
| Ligne 303 : | Ligne 314 : | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
IMPRESSION | IMPRESSION (Clean Print) | ||
------------------------------------------------------------ */ | ------------------------------------------------------------ */ | ||
@media print { | @media print { | ||
Version du 9 août 2026 à 01:13
/* ============================================================
WikiKabylie — Infobox personnalité politique
Modèle:Infobox personnalité politique/styles.css
============================================================ */
/* ------------------------------------------------------------
CONTENEUR PRINCIPAL
------------------------------------------------------------ */
.wk-infobox {
width: 330px;
float: right;
clear: right;
margin: 0 0 24px 24px;
border: 1px solid #e2e8f0;
border-radius: 16px;
background-color: #ffffff;
color: #1e293b;
box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.5;
overflow: hidden;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wk-infobox:hover {
box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}
/* ------------------------------------------------------------
EN-TÊTE (HEADER)
------------------------------------------------------------ */
.wk-infobox-header {
padding: 22px 20px 18px;
border-bottom: 1px solid #f1f5f9;
background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
text-align: left;
}
.wk-infobox-kicker {
margin-bottom: 6px;
color: #16834b; /* Vert Amazigh */
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}
.wk-infobox-name {
color: #0f172a;
font-family: Georgia, "Times New Roman", serif;
font-size: 25px;
font-weight: 700;
line-height: 1.15;
letter-spacing: -.02em;
}
.wk-infobox-subtitle {
margin-top: 6px;
color: #64748b;
font-size: 12px;
font-weight: 500;
}
/* ------------------------------------------------------------
PHOTO & LÉGENDE
------------------------------------------------------------ */
.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: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.wk-infobox-caption {
margin-top: 8px;
color: #64748b;
font-size: 11px;
line-height: 1.45;
}
/* ------------------------------------------------------------
TITRES DE SECTION
------------------------------------------------------------ */
.wk-infobox-section-title {
padding: 8px 16px;
border-top: 1px solid #f1f5f9;
border-bottom: 1px solid #f1f5f9;
background-color: #f8fafc;
color: #0757a6; /* Bleu Azur */
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}
/* ------------------------------------------------------------
DONNÉES & LIGNES (ROWS)
------------------------------------------------------------ */
.wk-infobox-data {
background-color: #ffffff;
}
.wk-infobox-row {
display: grid;
grid-template-columns: 38% 62%;
border-bottom: 1px solid #f8fafc;
transition: background-color 0.15s ease;
}
.wk-infobox-row:last-child {
border-bottom: 0;
}
.wk-infobox-row:hover {
background-color: #f8fafc;
}
.wk-infobox-label {
padding: 10px 8px 10px 16px;
color: #64748b;
font-size: 11px;
font-weight: 700;
}
.wk-infobox-value {
padding: 10px 16px 10px 8px;
color: #1e293b;
overflow-wrap: break-word;
}
.wk-infobox-value strong {
color: #0f172a;
font-weight: 700;
}
.wk-infobox-muted {
color: #64748b;
font-size: 11px;
}
/* ------------------------------------------------------------
FONCTIONS PRINCIPALES & BLOCS DE MANDAT
------------------------------------------------------------ */
.wk-infobox-row-featured {
background-color: #f0f7ff;
}
.wk-infobox-mandate {
padding: 14px 16px;
border-bottom: 1px solid #e2e8f0;
background-color: #f0f7ff;
}
.wk-infobox-mandate-title {
color: #0f172a;
font-family: Georgia, "Times New Roman", serif;
font-size: 15px;
font-weight: 700;
line-height: 1.3;
}
.wk-infobox-mandate-period {
margin-top: 4px;
color: #64748b;
font-size: 11px;
font-weight: 600;
}
.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: #64748b;
}
.wk-infobox-mini-row strong {
color: #1e293b;
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: #0757a6;
text-decoration: none;
transition: color 0.15s ease;
}
.wk-infobox a:hover {
color: #073763;
text-decoration: underline;
}
.wk-infobox-official {
padding: 12px 16px;
border-top: 1px solid #e2e8f0;
background-color: #f8fafc;
text-align: center;
}
.wk-infobox-official a {
font-weight: 700;
font-size: 12px;
}
/* ------------------------------------------------------------
SIGNATURE
------------------------------------------------------------ */
.wk-infobox-signature {
padding: 12px;
text-align: center;
}
.wk-infobox-signature img,
.wk-infobox-signature .mw-file-element {
max-width: 150px;
height: auto;
}
/* ------------------------------------------------------------
VARIATION POLITIQUE (Accents visuels Amazigh/Kabylie)
------------------------------------------------------------ */
.wk-infobox-politique .wk-infobox-header {
border-top: 4px solid #0757a6; /* Bleu Azur */
}
.wk-infobox-politique .wk-infobox-section-title {
border-left: 3px solid #16834b; /* Vert Nature */
}
/* ------------------------------------------------------------
RESPONSIVE DESIGN (Mobiles & Tablettes)
------------------------------------------------------------ */
@media (max-width: 720px) {
.wk-infobox {
width: 100%;
float: none;
clear: both;
margin: 0 0 24px 0;
border-radius: 12px;
}
.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: #64748b;
}
.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 (Clean Print)
------------------------------------------------------------ */
@media print {
.wk-infobox {
float: right;
width: 40%;
box-shadow: none;
border: 1px solid #000000;
background-color: #ffffff;
color: #000000;
}
}