« MediaWiki:Common.css » : différence entre les versions
Apparence
Aucun résumé des modifications |
AAAAAA |
||
| Ligne 1 : | Ligne 1 : | ||
/* Le CSS placé ici sera appliqué à tous les habillages. */ | /* Le CSS placé ici sera appliqué à tous les habillages. */ | ||
/* | /* ============================================ | ||
Design tokens Zenavia | |||
============================================ */ | |||
:root { | :root { | ||
--zw-accent: #00bfff; | --zw-accent: #00bfff; | ||
--zw-accent-dark: #06202b; | |||
--zw-radius: 12px; | --zw-radius: 12px; | ||
--zw-gap: 16px; | |||
} | } | ||
/* ---- | /* ============================================ | ||
Layout d'accueil (2 colonnes) | |||
============================================ */ | |||
.zw-layout { | |||
display: grid; | |||
grid-template-columns: 1fr 320px; | |||
gap: 24px; | |||
align-items: start; | |||
} | |||
.zw-main { min-width: 0; } | |||
.zw-aside { | |||
display: flex; | |||
flex-direction: column; | |||
gap: var(--zw-gap); | |||
position: sticky; | |||
top: 80px; | |||
} | |||
@media (max-width: 1100px) { | |||
.zw-layout { grid-template-columns: 1fr; } | |||
.zw-aside { position: static; } | |||
} | |||
/* ============================================ | |||
Intro | |||
============================================ */ | |||
.zw-intro { | .zw-intro { | ||
text-align: center; | text-align: center; | ||
| Ligne 14 : | Ligne 45 : | ||
} | } | ||
/* | /* ============================================ | ||
Bandeau de section | |||
============================================ */ | |||
.zw-banner { | .zw-banner { | ||
background: var(-- | background-color: var(--background-color-neutral-subtle); | ||
color: | background-image: linear-gradient(90deg, rgb(0 191 255 / .18) 0%, transparent 60%); | ||
text-align: | color: var(--color-base); | ||
border-left: 4px solid var(--zw-accent); | |||
text-align: left; | |||
padding: 12px 18px; | |||
border-radius: 6px; | |||
font-weight: 700; | font-weight: 700; | ||
font-size: 1. | font-size: 1.05rem; | ||
letter-spacing: . | letter-spacing: .06em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
margin: 32px 0 18px; | margin: 32px 0 18px; | ||
} | } | ||
/* | /* ============================================ | ||
Grille de cartes | |||
============================================ */ | |||
.zw-grid { | .zw-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
gap: | gap: var(--zw-gap); | ||
margin: 24px 0; | margin: 24px 0; | ||
} | } | ||
| Ligne 38 : | Ligne 75 : | ||
.zw-grid > p { display: contents; } | .zw-grid > p { display: contents; } | ||
/* | /* ============================================ | ||
Carte | |||
============================================ */ | |||
.zw-card { | .zw-card { | ||
display: flex; | display: flex; | ||
| Ligne 102 : | Ligne 141 : | ||
transform: translateX(4px); | transform: translateX(4px); | ||
} | } | ||
/* ============================================ | |||
Boîte latérale | |||
============================================ */ | |||
.zw-box { | |||
background: var(--background-color-neutral-subtle); | |||
border: 1px solid var(--border-color-base); | |||
border-radius: var(--zw-radius); | |||
overflow: hidden; | |||
} | |||
.zw-box__head { | |||
background: var(--zw-accent); | |||
color: var(--zw-accent-dark); | |||
font-weight: 700; | |||
text-transform: uppercase; | |||
letter-spacing: .06em; | |||
padding: 10px 14px; | |||
font-size: .85rem; | |||
} | |||
.zw-box__body { | |||
padding: 14px; | |||
font-size: .9rem; | |||
line-height: 1.6; | |||
} | |||
.zw-box__body ul { | |||
margin: 0; | |||
padding-left: 18px; | |||
} | |||
/* ============================================ | |||
Bouton | |||
============================================ */ | |||
.zw-btn { | |||
display: inline-block; | |||
background: var(--zw-accent); | |||
color: var(--zw-accent-dark) !important; | |||
font-weight: 700; | |||
padding: 10px 20px; | |||
border-radius: 6px; | |||
text-align: center; | |||
transition: filter .15s ease, transform .15s ease; | |||
} | |||
.zw-btn:hover { | |||
filter: brightness(1.15); | |||
transform: translateY(-2px); | |||
text-decoration: none; | |||
} | |||
.zw-btn--block { display: block; width: 100%; } | |||
Version du 30 août 2026 à 21:48
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ============================================
Design tokens Zenavia
============================================ */
:root {
--zw-accent: #00bfff;
--zw-accent-dark: #06202b;
--zw-radius: 12px;
--zw-gap: 16px;
}
/* ============================================
Layout d'accueil (2 colonnes)
============================================ */
.zw-layout {
display: grid;
grid-template-columns: 1fr 320px;
gap: 24px;
align-items: start;
}
.zw-main { min-width: 0; }
.zw-aside {
display: flex;
flex-direction: column;
gap: var(--zw-gap);
position: sticky;
top: 80px;
}
@media (max-width: 1100px) {
.zw-layout { grid-template-columns: 1fr; }
.zw-aside { position: static; }
}
/* ============================================
Intro
============================================ */
.zw-intro {
text-align: center;
margin: 24px 0 8px;
font-size: 1.05rem;
}
/* ============================================
Bandeau de section
============================================ */
.zw-banner {
background-color: var(--background-color-neutral-subtle);
background-image: linear-gradient(90deg, rgb(0 191 255 / .18) 0%, transparent 60%);
color: var(--color-base);
border-left: 4px solid var(--zw-accent);
text-align: left;
padding: 12px 18px;
border-radius: 6px;
font-weight: 700;
font-size: 1.05rem;
letter-spacing: .06em;
text-transform: uppercase;
margin: 32px 0 18px;
}
/* ============================================
Grille de cartes
============================================ */
.zw-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--zw-gap);
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);
}
/* ============================================
Boîte latérale
============================================ */
.zw-box {
background: var(--background-color-neutral-subtle);
border: 1px solid var(--border-color-base);
border-radius: var(--zw-radius);
overflow: hidden;
}
.zw-box__head {
background: var(--zw-accent);
color: var(--zw-accent-dark);
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
padding: 10px 14px;
font-size: .85rem;
}
.zw-box__body {
padding: 14px;
font-size: .9rem;
line-height: 1.6;
}
.zw-box__body ul {
margin: 0;
padding-left: 18px;
}
/* ============================================
Bouton
============================================ */
.zw-btn {
display: inline-block;
background: var(--zw-accent);
color: var(--zw-accent-dark) !important;
font-weight: 700;
padding: 10px 20px;
border-radius: 6px;
text-align: center;
transition: filter .15s ease, transform .15s ease;
}
.zw-btn:hover {
filter: brightness(1.15);
transform: translateY(-2px);
text-decoration: none;
}
.zw-btn--block { display: block; width: 100%; }