« 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 | ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Corrigée | ||
=============================================================== */ | =============================================================== */ | ||
/* --- 1. STRUCTURE DE L'ARTICLE (Correction du | /* --- 1. STRUCTURE DE L'ARTICLE (Correction du texte vertical) --- */ | ||
#mw-content-text { | #mw-content-text { | ||
max-width: 1050px; /* | max-width: 1050px; /* Limite la largeur sur grand écran */ | ||
margin: | margin: 20px auto; /* Centre l'article avec une marge raisonnable */ | ||
line-height: 1. | line-height: 1.7; /* Espacement des lignes pour la lecture */ | ||
color: #2c2c2c; | color: #2c2c2c; | ||
padding: | padding: 30px; /* Espace intérieur pour la version PC */ | ||
background: #ffffff; | background: #ffffff; | ||
box-shadow: 0 0 | 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: 1.15em; | ||
border-radius: 4px; | border-radius: 4px; | ||
word-wrap: break-word; /* Sécurité anti-débordement */ | |||
} | } | ||
/* Harmonisation des Titres | /* Harmonisation des Titres */ | ||
h1, h2, h3, h4 { | h1, h2, h3, h4 { | ||
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: 8px; | ||
margin-top: 1. | margin-top: 1.5em; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* | /* Images et Infobox */ | ||
.thumb, .infobox { | .thumb, .infobox { | ||
margin: 15px 0 25px | margin: 15px 0 25px 25px !important; | ||
border: 1px solid #d4af37 !important; | border: 1px solid #d4af37 !important; | ||
background: #fffdf8 !important; | background: #fffdf8 !important; | ||
padding: | padding: 8px; | ||
box-shadow: | box-shadow: 3px 3px 10px rgba(0,0,0,0.1); | ||
} | } | ||
/* --- 2. ÉLÉMENTS ALFI | /* --- 2. ÉLÉMENTS ALFI (Menu Index et Boutons) --- */ | ||
#alfi-index { | #alfi-index { | ||
position: sticky; | position: sticky; | ||
top: 0; | top: 0; | ||
z-index: | z-index: 100; | ||
text-align: center; | text-align: center; | ||
background: rgba(255, 253, 248, 0. | background: rgba(255, 253, 248, 0.98); | ||
border-bottom: 2px solid #d4af37; | border-bottom: 2px solid #d4af37; | ||
box-shadow: 0 4px | box-shadow: 0 4px 10px rgba(212,175,55,0.2); | ||
padding: | padding: 15px; | ||
margin-bottom: | margin-bottom: 30px; | ||
} | } | ||
| Ligne 56 : | Ligne 56 : | ||
border: 1px solid #d4af37; | border: 1px solid #d4af37; | ||
border-radius: 6px; | border-radius: 6px; | ||
padding: | padding: 6px 12px; | ||
font-size: | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
color: #3a260b; | color: #3a260b; | ||
display: inline-block; | |||
margin: 3px; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.lettre-alfi:hover { | .lettre-alfi:hover { | ||
background: linear-gradient(180deg,#fff8cc,#f9e27a); | background: linear-gradient(180deg,#fff8cc,#f9e27a); | ||
color: #a40000; | color: #a40000; | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
| Ligne 99 : | Ligne 76 : | ||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
background: rgba(255,253,248,0. | background: rgba(255,253,248,0.95); | ||
border-top: 2px solid #d4af37; | border-top: 2px solid #d4af37; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 10px 0; | ||
z-index: | z-index: 100; | ||
} | } | ||
/* --- 3. ADAPTATION MOBILE ( | /* --- 3. ADAPTATION MOBILE (Crucial pour votre problème) --- */ | ||
@media (max-width:768px) { | @media (max-width: 768px) { | ||
#mw-content-text { | #mw-content-text { | ||
width: | width: 95% !important; /* Force l'article à prendre presque tout l'écran */ | ||
margin: 10px auto !important; | |||
padding: 15px !important; /* Réduit l'espace interne pour laisser de la place au texte */ | |||
font-size: 1.05em; | font-size: 1.05em; | ||
box-shadow: none; /* Allège l'affichage mobile */ | |||
} | |||
#alfi-index { | |||
position: relative; /* Désactive le "sticky" pour ne pas bloquer la vue */ | |||
padding: 10px 5px; | |||
} | } | ||
.lettre-alfi { | |||
font-size: 14px; | |||
padding: 5px 8px; | |||
} | |||
.thumb { | .thumb { | ||
float: none !important; | float: none !important; /* Empêche les images de pousser le texte sur le côté */ | ||
margin: 10px auto !important; | |||
display: block; | display: block; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
} | } | ||
/* Empêche les lettres de s'empiler verticalement */ | |||
p, span, div { | |||
white-space: normal !important; | |||
} | |||
} | } | ||
Version du 25 mars 2026 à 07:01
/* ===============================================================
⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Corrigée
=============================================================== */
/* --- 1. STRUCTURE DE L'ARTICLE (Correction du texte vertical) --- */
#mw-content-text {
max-width: 1050px; /* Limite la largeur sur grand écran */
margin: 20px auto; /* Centre l'article avec une marge raisonnable */
line-height: 1.7; /* Espacement des lignes pour la lecture */
color: #2c2c2c;
padding: 30px; /* Espace intérieur pour la version PC */
background: #ffffff;
box-shadow: 0 0 20px rgba(0,0,0,0.05);
font-family: 'EB Garamond', 'Garamond', serif;
font-size: 1.15em;
border-radius: 4px;
word-wrap: break-word; /* Sécurité anti-débordement */
}
/* Harmonisation des Titres */
h1, h2, h3, h4 {
font-family: 'EB Garamond', serif;
color: #3a260b;
border-bottom: 1px solid #d4af37;
padding-bottom: 8px;
margin-top: 1.5em;
font-weight: bold;
}
/* Images et Infobox */
.thumb, .infobox {
margin: 15px 0 25px 25px !important;
border: 1px solid #d4af37 !important;
background: #fffdf8 !important;
padding: 8px;
box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}
/* --- 2. ÉLÉMENTS ALFI (Menu Index et Boutons) --- */
#alfi-index {
position: sticky;
top: 0;
z-index: 100;
text-align: center;
background: rgba(255, 253, 248, 0.98);
border-bottom: 2px solid #d4af37;
box-shadow: 0 4px 10px rgba(212,175,55,0.2);
padding: 15px;
margin-bottom: 30px;
}
.lettre-alfi {
background: linear-gradient(180deg,#f8f2d0,#f6e27f);
border: 1px solid #d4af37;
border-radius: 6px;
padding: 6px 12px;
font-size: 16px;
font-weight: bold;
color: #3a260b;
display: inline-block;
margin: 3px;
text-decoration: none !important;
}
.lettre-alfi:hover {
background: linear-gradient(180deg,#fff8cc,#f9e27a);
color: #a40000;
transform: translateY(-1px);
}
#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: 100;
}
/* --- 3. ADAPTATION MOBILE (Crucial pour votre problème) --- */
@media (max-width: 768px) {
#mw-content-text {
width: 95% !important; /* Force l'article à prendre presque tout l'écran */
margin: 10px auto !important;
padding: 15px !important; /* Réduit l'espace interne pour laisser de la place au texte */
font-size: 1.05em;
box-shadow: none; /* Allège l'affichage mobile */
}
#alfi-index {
position: relative; /* Désactive le "sticky" pour ne pas bloquer la vue */
padding: 10px 5px;
}
.lettre-alfi {
font-size: 14px;
padding: 5px 8px;
}
.thumb {
float: none !important; /* Empêche les images de pousser le texte sur le côté */
margin: 10px auto !important;
display: block;
max-width: 100% !important;
}
/* Empêche les lettres de s'empiler verticalement */
p, span, div {
white-space: normal !important;
}
}