MediaWiki:Common.css
Apparence
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ---- Design tokens Zenavia ---- */
:root {
--zw-accent: #00bfff;
--zw-radius: 12px;
}
/* ---- Intro ---- */
.zw-intro {
text-align: center;
margin: 24px 0 8px;
font-size: 1.05rem;
}
/* ---- Bandeau de section ---- */
.zw-banner {
background: var(--zw-accent);
color: #06202b;
text-align: center;
font-weight: 700;
font-size: 1.1rem;
letter-spacing: .08em;
text-transform: uppercase;
padding: 12px;
border-radius: 6px;
margin: 32px 0 18px;
}
/* ---- Grille d'accueil ---- */
.zw-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin: 24px 0;
}
.zw-grid > p { display: contents; }
/* ---- Carte ---- */
.zw-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 24px 18px;
background: var(--background-color-neutral-subtle);
border: 1px solid var(--border-color-base);
border-radius: var(--zw-radius);
transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.zw-card:hover {
border-color: var(--zw-accent);
transform: translateY(-3px);
box-shadow: 0 6px 20px rgb(0 0 0 / .25);
}
.zw-card__icon {
height: 96px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
}
.zw-card__icon img {
max-height: 96px;
width: auto;
object-fit: contain;
}
.zw-card__title {
font-size: 1.15rem;
font-weight: 700;
margin-bottom: 8px;
}
.zw-card__title a { color: var(--color-base); }
.zw-card__title a:hover { color: var(--zw-accent); }
.zw-card__text {
color: var(--color-subtle);
font-size: .9rem;
line-height: 1.5;
flex-grow: 1;
margin-bottom: 16px;
}
.zw-card__link {
color: var(--zw-accent);
font-weight: 600;
}
.zw-card__link::after {
content: " →";
display: inline-block;
transition: transform .15s ease;
}
.zw-card:hover .zw-card__link::after {
transform: translateX(4px);
}