Aller au contenu

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

De Zenavia Wiki
Mise à jour du CSS du wiki
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/* ---- Design tokens Zenavia ---- */
/* Le CSS placé ici sera appliqué à tous les habillages. */
:root {
 
  --zw-accent: #00bfff;
/* Titre */
  --zw-radius: 12px;
.home-title {
    text-align: center;
    margin: 30px 0;
}
}
 
.home-title h1 {
/* ---- Grille d'accueil ---- */
    font-size: 36px;
.zw-grid {
    color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
}
 
.home-title p {
/* ---- Carte ---- */
    font-size: 18px;
.zw-card {
    color: #ccc;
  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 {
/* Grille principale */
  border-color: var(--zw-accent);
.main-grid {
  transform: translateY(-3px);
    display: grid;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
}


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


/* ---- Bandeau de section (style Hypixel) ---- */
.zw-intro {
.zw-banner {
  background: var(--zw-accent);
  color: #06202b;
   text-align: center;
   text-align: center;
   font-weight: 700;
   margin: 24px 0 8px;
   font-size: 1.1rem;
   font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 6px;
  margin: 32px 0 18px;
}
}
.zw-grid > p { display: contents; }

Version du 30 août 2026 à 21:32

/* 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 {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: 0.2s;
}
.grid-card:hover {
    transform: scale(1.05);
    background-color: #222;
}
.grid-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}
.grid-card h2 {
    color: #fff;
    margin-bottom: 10px;
}
.grid-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
}
.grid-card a {
    color: #00bfff;
    font-weight: bold;
    text-decoration: none;
}
.grid-card a:hover {
    text-decoration: underline;
}

.zw-intro {
  text-align: center;
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.zw-grid > p { display: contents; }