« MediaWiki:Common.css » : différence entre les versions
Apparence
Page créée avec « →Le CSS placé ici sera appliqué à tous les habillages. : →Titre : .home-title { text-align: center; margin: 30px 0; } .home-title h1 { font-size: 36px; color: #fff; } .home-title p { font-size: 18px; color: #ccc; } →Grille principale : .main-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; } →Cartes : .grid-card { backg... » |
Mise à jour du CSS du wiki |
||
| Ligne 1 : | Ligne 1 : | ||
/* | /* ---- Design tokens Zenavia ---- */ | ||
:root { | |||
--zw-accent: #00bfff; | |||
--zw-radius: 12px; | |||
} | |||
/* | /* ---- Grille d'accueil ---- */ | ||
. | .zw-grid { | ||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); | |||
gap: 16px; | |||
margin: 24px 0; | |||
} | } | ||
. | |||
/* ---- 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); | |||
} | } | ||
. | |||
/* ---- Bandeau de section (style Hypixel) ---- */ | |||
.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; | |||
} | } | ||
Version du 30 août 2026 à 21:27
/* ---- Design tokens Zenavia ---- */
:root {
--zw-accent: #00bfff;
--zw-radius: 12px;
}
/* ---- Grille d'accueil ---- */
.zw-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin: 24px 0;
}
/* ---- 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);
}
/* ---- Bandeau de section (style Hypixel) ---- */
.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;
}