Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

De Zenavia Wiki
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 :
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* ---- Design tokens Zenavia ---- */
:root {
  --zw-accent: #00bfff;
  --zw-radius: 12px;
}


/* Titre */
/* ---- Grille d'accueil ---- */
.home-title {
.zw-grid {
    text-align: center;
  display: grid;
    margin: 30px 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
}
.home-title h1 {
 
    font-size: 36px;
/* ---- Carte ---- */
    color: #fff;
.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;
}
}
.home-title p {
 
    font-size: 18px;
.zw-card:hover {
    color: #ccc;
  border-color: var(--zw-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
}
}


/* Grille principale */
.zw-card__icon {
.main-grid {
  height: 96px;
    display: grid;
  display: flex;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
    gap: 20px;
  justify-content: center;
    max-width: 1200px;
  margin-bottom: 14px;
    margin: 0 auto;
}
}


/* Cartes */
.zw-card__icon img {
.grid-card {
  max-height: 96px;
    background: #1c1c1c;
  width: auto;
    border: 1px solid #333;
  object-fit: contain;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: 0.2s;
}
}
.grid-card:hover {
 
    transform: scale(1.05);
.zw-card__title {
    background-color: #222;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
}
.grid-card img {
 
    width: 80px;
.zw-card__title a { color: var(--color-base); }
    height: 80px;
.zw-card__title a:hover { color: var(--zw-accent); }
    margin-bottom: 10px;
 
.zw-card__text {
  color: var(--color-subtle);
  font-size: .9rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 16px;
}
}
.grid-card h2 {
 
    color: #fff;
.zw-card__link {
    margin-bottom: 10px;
  color: var(--zw-accent);
  font-weight: 600;
}
}
.grid-card p {
 
    color: #aaa;
.zw-card__link::after {
    font-size: 14px;
  content: " →";
    margin-bottom: 15px;
  display: inline-block;
  transition: transform .15s ease;
}
}
.grid-card a {
 
    color: #00bfff;
.zw-card:hover .zw-card__link::after {
    font-weight: bold;
  transform: translateX(4px);
    text-decoration: none;
}
}
.grid-card a:hover {
 
    text-decoration: underline;
/* ---- 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;
}