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

De Association Linéage de France et d'International
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/* ===============================================================
/* ===============================================================
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Corrigée
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version FINE (Plus petit)
   =============================================================== */
   =============================================================== */


/* --- 1. STRUCTURE DE L'ARTICLE (Finit le texte vertical !) --- */
/* --- 1. STRUCTURE DE L'ARTICLE (Texte réduit) --- */


#mw-content-text {
#mw-content-text {
   max-width: 1050px !important; /* Limite la largeur pour le confort */
   max-width: 900px !important; /* On réduit la largeur totale */
   margin: 20px auto !important; /* Centre l'article au milieu */
   margin: 10px auto !important;
   line-height: 1.7;            /* Espace les lignes */
   line-height: 1.6;            /* Interlignage plus serré */
   color: #2c2c2c;
   color: #2c2c2c;
   padding: 40px !important;     /* Donne de l'air aux bords (fini l'écrasement) */
   padding: 25px !important;     /* Moins de vide sur les côtés */
   background: #ffffff;
   background: #ffffff;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
   font-family: 'EB Garamond', 'Garamond', serif;
   font-family: 'EB Garamond', 'Garamond', serif;
   font-size: 1.15em;
   font-size: 0.95em !important; /* TEXTE PLUS PETIT (0.95 au lieu de 1.15) */
  border-radius: 4px;
}
}


/* Harmonisation des Titres (Plus petits et élégants) */
/* Harmonisation des Titres (BEAUCOUP PLUS PETITS) */
h1 { font-size: 1.8em !important; }
h2 { font-size: 1.5em !important; }
h3 { font-size: 1.2em !important; }
 
h1, h2, h3 {
h1, h2, h3 {
   font-family: 'EB Garamond', serif;
   font-family: 'EB Garamond', serif;
   color: #3a260b;
   color: #3a260b;
   border-bottom: 1px solid #d4af37;
   border-bottom: 1px solid #d4af37;
   padding-bottom: 8px;
   padding-bottom: 5px;
   margin-top: 1.5em;
   margin-top: 1em;
   font-weight: bold;
   font-weight: bold;
  text-align: left;
}
}


/* Images et Infobox (Correction du placement) */
/* Images et Infobox */
.thumb, .infobox {
.thumb, .infobox {
   margin: 15px 0 25px 25px !important;
   margin: 10px 0 15px 15px !important;
   border: 1px solid #d4af37 !important;
   border: 1px solid #d4af37 !important;
   background: #fffdf8 !important;
   max-width: 250px !important; /* Empêche les images d'être trop grosses */
  padding: 8px;
}
}


/* --- 2. ÉLÉMENTS ALFI (Menu Index et Boutons) --- */
/* --- 2. ÉLÉMENTS ALFI (Menu réduit) --- */


#alfi-index {
#alfi-index {
Ligne 45 : Ligne 47 :
   background: rgba(255, 253, 248, 0.98);
   background: rgba(255, 253, 248, 0.98);
   border-bottom: 2px solid #d4af37;
   border-bottom: 2px solid #d4af37;
   box-shadow: 0 4px 10px rgba(212,175,55,0.2);
   padding: 10px; /* Menu moins haut */
  padding: 15px;
   margin-bottom: 20px;
   margin-bottom: 30px;
}
}


.lettre-alfi {
.lettre-alfi {
  background: linear-gradient(180deg,#f8f2d0,#f6e27f);
   padding: 4px 8px !important; /* Boutons plus petits */
  border: 1px solid #d4af37;
   font-size: 14px !important;
  border-radius: 6px;
   margin: 2px;
   padding: 6px 12px;
   font-size: 16px;
  font-weight: bold;
  color: #3a260b;
  display: inline-block;
  margin: 3px;
  text-decoration: none !important;
}
 
#alfi-footer {
   position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,253,248,0.95);
  border-top: 2px solid #d4af37;
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
}
}


/* --- 3. ADAPTATION ÉCRANS ET MOBILES --- */
/* --- 3. FIX POUR LES GRANDS TITRES (Comme votre capture) --- */
 
.mw-headline {
@media (max-width: 768px) {
     font-size: inherit !important;
  #mw-content-text {
     word-break: break-word;
    width: 95% !important;
    padding: 15px !important;
     font-size: 1.05em;
  }
 
  .thumb {
    float: none !important;
     display: block;
    margin: 10px auto !important;
    max-width: 100% !important;
  }
}
}

Version du 25 mars 2026 à 09:47

/* ===============================================================
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version FINE (Plus petit)
   =============================================================== */

/* --- 1. STRUCTURE DE L'ARTICLE (Texte réduit) --- */

#mw-content-text {
  max-width: 900px !important;  /* On réduit la largeur totale */
  margin: 10px auto !important;
  line-height: 1.6;             /* Interlignage plus serré */
  color: #2c2c2c;
  padding: 25px !important;     /* Moins de vide sur les côtés */
  background: #ffffff;
  font-family: 'EB Garamond', 'Garamond', serif;
  font-size: 0.95em !important; /* TEXTE PLUS PETIT (0.95 au lieu de 1.15) */
}

/* Harmonisation des Titres (BEAUCOUP PLUS PETITS) */
h1 { font-size: 1.8em !important; }
h2 { font-size: 1.5em !important; }
h3 { font-size: 1.2em !important; }

h1, h2, h3 {
  font-family: 'EB Garamond', serif;
  color: #3a260b;
  border-bottom: 1px solid #d4af37;
  padding-bottom: 5px;
  margin-top: 1em;
  font-weight: bold;
  text-align: left;
}

/* Images et Infobox */
.thumb, .infobox {
  margin: 10px 0 15px 15px !important;
  border: 1px solid #d4af37 !important;
  max-width: 250px !important; /* Empêche les images d'être trop grosses */
}

/* --- 2. ÉLÉMENTS ALFI (Menu réduit) --- */

#alfi-index {
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  background: rgba(255, 253, 248, 0.98);
  border-bottom: 2px solid #d4af37;
  padding: 10px; /* Menu moins haut */
  margin-bottom: 20px;
}

.lettre-alfi {
  padding: 4px 8px !important; /* Boutons plus petits */
  font-size: 14px !important;
  margin: 2px;
}

/* --- 3. FIX POUR LES GRANDS TITRES (Comme votre capture) --- */
.mw-headline {
    font-size: inherit !important;
    word-break: break-word;
}