Aller au contenu

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

De Zenavia Wiki
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/* Le CSS placé ici sera appliqué à tous les habillages. */
/* Le CSS placé ici sera appliqué à tous les habillages. */


/* Titre */
/* ---- Design tokens Zenavia ---- */
.home-title {
:root {
    text-align: center;
  --zw-accent: #00bfff;
    margin: 30px 0;
  --zw-radius: 12px;
}
}
.home-title h1 {
 
    font-size: 36px;
/* ---- Intro ---- */
    color: #fff;
.zw-intro {
  text-align: center;
  margin: 24px 0 8px;
  font-size: 1.05rem;
}
}
.home-title p {
 
    font-size: 18px;
/* ---- Bandeau de section ---- */
    color: #ccc;
.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 principale */
/* ---- Grille d'accueil ---- */
.main-grid {
.zw-grid {
    display: grid;
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  gap: 16px;
    max-width: 1200px;
  margin: 24px 0;
    margin: 0 auto;
}
}


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


.zw-intro {
.zw-card__link::after {
   text-align: center;
   content: " →";
   margin: 24px 0 8px;
   display: inline-block;
   font-size: 1.05rem;
   transition: transform .15s ease;
}
}


.zw-grid > p { display: contents; }
.zw-card:hover .zw-card__link::after {
  transform: translateX(4px);
}

Version du 30 août 2026 à 21:41

/* 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);
}