« Modèle:Accueil/panels/styles.css » : différence entre les versions
De Infothèque
Autres actions
< Modèle:Accueil | panels
CSS panels accueil (Infothèque) |
m A protégé « Modèle:Accueil/panels/styles.css » : Modèle/page sensible du wiki : modification réservée aux administrateurs ([Modifier=Autoriser uniquement les administrateurs] (infini) [Renommer=Autoriser uniquement les administrateurs] (infini)) [protection en cascade] |
||
| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 3 : | Ligne 3 : | ||
* Couleur de texte forcée dans les cartes (fond clair fixe, donc | * Couleur de texte forcée dans les cartes (fond clair fixe, donc | ||
* texte sombre fixe, indépendant du thème jour/nuit). | * texte sombre fixe, indépendant du thème jour/nuit). | ||
* | |||
* Largeur totale (1100px) alignée sur celle de la grille de tuiles | |||
* et de la barre de recherche, pour former une colonne cohérente. | |||
* ============================================================ */ | * ============================================================ */ | ||
.ith-panels-table { | .ith-panels-table { | ||
max-width: | box-sizing: border-box; | ||
max-width: 1100px; | |||
margin: 18px auto 0 auto; | margin: 18px auto 0 auto; | ||
display: table; | display: table; | ||
| Ligne 24 : | Ligne 28 : | ||
.ith-panel { | .ith-panel { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
position: relative; | |||
padding: 16px 18px; | padding: 16px 18px; | ||
border: 1px solid #c9ced6; | border: 1px solid #c9ced6; | ||
| Ligne 31 : | Ligne 36 : | ||
text-align: left; | text-align: left; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
overflow: hidden; | |||
} | } | ||
| Ligne 36 : | Ligne 42 : | ||
.ith-panel--quick { background: #f7f7f8; border-color: #d1d5db; } | .ith-panel--quick { background: #f7f7f8; border-color: #d1d5db; } | ||
.ith-panel__head { margin: 0 0 10px 0; } | .ith-panel__head { margin: 0 0 10px 0; position: relative; z-index: 1; } | ||
.ith-panel__title { font-size: 20px; font-weight: 800; } | .ith-panel__title { font-size: 20px; font-weight: 800; } | ||
.ith-panel__body { line-height: 1.5; } | .ith-panel__body { line-height: 1.5; position: relative; z-index: 1; } | ||
.ith-panel__bgicon { | |||
position: absolute; | |||
right: 12px; | |||
bottom: 12px; | |||
opacity: 0.12; | |||
z-index: 0; | |||
} | |||
.ith-panel__bgicon img { display: block; } | |||
.ith-stats { text-align: center; white-space: nowrap; } | .ith-stats { text-align: center; white-space: nowrap; } | ||
Dernière version du 12 août 2026 à 13:46
/* ============================================================
* Infothèque — Accueil : panels (Bienvenue, Statistiques, Accès rapide)
* Couleur de texte forcée dans les cartes (fond clair fixe, donc
* texte sombre fixe, indépendant du thème jour/nuit).
*
* Largeur totale (1100px) alignée sur celle de la grille de tuiles
* et de la barre de recherche, pour former une colonne cohérente.
* ============================================================ */
.ith-panels-table {
box-sizing: border-box;
max-width: 1100px;
margin: 18px auto 0 auto;
display: table;
width: 100%;
table-layout: fixed;
}
.ith-panels-left, .ith-panels-right {
display: table-cell;
vertical-align: top;
}
.ith-panels-left { width: 68%; padding-right: 2%; }
.ith-panels-right { width: 30%; }
.ith-panels-right .ith-panel { width: 100%; margin: 0 0 12px 0; }
.ith-panel {
box-sizing: border-box;
position: relative;
padding: 16px 18px;
border: 1px solid #c9ced6;
border-radius: 16px;
background: #ffffff;
color: #1f2328;
text-align: left;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.ith-panel--stats { background: #f5f8ff; border-color: #b6c7f2; }
.ith-panel--quick { background: #f7f7f8; border-color: #d1d5db; }
.ith-panel__head { margin: 0 0 10px 0; position: relative; z-index: 1; }
.ith-panel__title { font-size: 20px; font-weight: 800; }
.ith-panel__body { line-height: 1.5; position: relative; z-index: 1; }
.ith-panel__bgicon {
position: absolute;
right: 12px;
bottom: 12px;
opacity: 0.12;
z-index: 0;
}
.ith-panel__bgicon img { display: block; }
.ith-stats { text-align: center; white-space: nowrap; }
.ith-stat { display: inline-block; margin: 6px 14px; vertical-align: top; }
.ith-stat__number { font-size: 30px; font-weight: 800; line-height: 1.1; }
.ith-stat__label { font-size: 12px; color: #6b7280; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 900px) {
.ith-panels-table, .ith-panels-left, .ith-panels-right { display: block; width: 100%; }
.ith-panels-left { padding-right: 0; }
.ith-panels-right .ith-panel { margin: 12px 0 0 0; }
}