« 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
 
(25 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/***************************************************************
    ⚜️ THEME OFFICIEL — ALFI ROYAL CSS ⚜️
    Association des Lignages de France et de l’International
    Style graphique : Monarchie spirituelle – Élégance française
    Version : 1.3 (mars 2026, titres équilibrés + variantes dorées)
****************************************************************/


/* =======================
/* ===============================================================
   BASE GÉNÉRALE
   ⚜️ STYLE ROYAL ALFI — VERSION RÉPARATRICE INTERFACE
======================= */
  =============================================================== */
body {
  font-family: "Crimson Pro", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #2a1b0a;            /* Brun noble */
  background-color: #fffdf8; /* Blanc parchemin */
  margin: 0;
  padding: 0;
}


/* =======================
/* 1. RÉTABLIT LA ZONE DE TEXTE ET LES BOUTONS (Indispensable) */
  TITRES PRINCIPAUX
#wpTextbox1, .wikiEditor-ui {
======================= */
    display: block !important;
h1, h2, h3, h4, h5 {
    visibility: visible !important;
  font-family: "EB Garamond", serif;
    width: 100% !important;
  color: #2a1b0a;
    min-height: 500px !important;
  text-transform: none;
    font-family: monospace !important;
  line-height: 1.3;
    font-size: 14px !important;
  word-wrap: break-word;
}
}


/* ⚜️ Titre royal — équilibré + filet doré */
/* Force l'affichage des onglets de commande en haut */
h1 {
#p-views, #left-navigation, #right-navigation, .vectorTabs {
  font-size: 1.55em; /* Taille ajustée */
    display: block !important;
  font-weight: 700;
    visibility: visible !important;
  text-align: center;
    margin-top: 20px !important;
  margin: 0.8em auto 0.4em;
    z-index: 1000 !important;
  padding-bottom: 0.4em;
  position: relative;
  max-width: 90%;
}
}


/* Filet doré lumineux sous le titre */
.vectorTabs li a, #p-views li a {
h1::after {
    color: #0645ad !important; /* Liens en bleu */
  content: "";
    font-weight: bold !important;
  display: block;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, #d4af37, #f6e27f, #d4af37);
  margin: 10px auto 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}
}


/* Sous-titres harmonieux */
/* 2. BASE DE LECTURE (16px comme vous aimiez) */
h2 {
#mw-content-text {
  font-size: 1.35em;
    font-size: 16px !important;
  font-weight: 600;
    line-height: 1.6 !important;
  border-left: 4px solid #d4af37;
    max-width: 950px !important;
  padding-left: 8px;
    margin: 40px auto !important;
  margin-top: 1.2em;
    padding: 30px !important;
    background: #ffffff !important;
}
}


h3 {
/* 3. TITRES HARMONISÉS */
  font-size: 1.18em;
h1, h2, h3, .mw-headline, #firstHeading {
  font-weight: 600;
    font-size: 24px !important;
  color: #3b2a0b;
    color: #3a260b !important;
  margin-top: 1em;
    border-bottom: 1px solid #d4af37 !important;
    margin: 15px 0 !important;
    padding: 5px 0 !important;
}
}


/* ✅ Responsive */
/* 4. POSITIONNEMENT DE LA BARRE DE GAUCHE */
@media (max-width: 600px) {
#mw-panel {
  h1 { font-size: 1.3em; line-height: 1.2; }
    position: absolute !important;
  h2 { font-size: 1.1em; }
    top: 160px !important;
  h3 { font-size: 1em; }
    left: 0 !important;
    width: 11em !important;
}
}


/* =======================
#content {
  🎇 TITRES ALFI SECONDAIRES — Doré lumineux
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
======================= */
.titre-alfi {
  font-family: "EB Garamond", serif;
  font-size: 1.25em;
  font-weight: 600;
  color: #2a1b0a;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid transparent;
}
}


/* Filet doré lumineux à gauche */
/* 5. ÉLÉMENTS ALFI */
.titre-alfi::before {
.lettre-alfi {
  content: "";
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
  position: absolute;
    border: 1px solid #d4af37 !important;
  left: 0;
    padding: 4px 8px !important;
  top: 0.2em;
    display: inline-block !important;
  bottom: 0.1em;
  width: 4px;
  background: linear-gradient(to bottom, #f6e27f, #d4af37, #f6e27f);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}
}


/* Première lettre dorée */
#alfi-footer {
.titre-alfi::first-letter {
    position: fixed !important;
  color: #d4af37;
    bottom: 0 !important;
  font-size: 1.35em;
    width: 100% !important;
  font-weight: 700;
    background: rgba(255,253,248,0.95) !important;
    border-top: 2px solid #d4af37 !important;
    z-index: 1000 !important;
}
}
/* ===============================================================
  📱 AJUSTEMENT SPÉCIFIQUE POUR MOBILE (XIAOMI)
  =============================================================== */


/* Effet lumineux au survol */
@media screen and (max-width: 768px) {
.titre-alfi:hover {
    /* 1. On libère les marges pour que le texte prenne toute la largeur */
  text-shadow: 0 0 6px rgba(246, 226, 127, 0.6);
    #content, #mw-content-text {
  transition: text-shadow 0.3s ease;
        margin-left: 0 !important;
}
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }


/* =======================
    /* 2. On réduit la taille du texte pour mobile */
  CITATIONS & ÉPIGRAPHES
    * {
======================= */
        font-size: 15px !important;  
blockquote {
    }
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05em;
  font-style: italic;
  color: #4b3621;
  background-color: #fefaf3;
  border-left: 4px solid #d4af37;
  margin: 1em 2em;
  padding: 0.8em 1.2em;
}


/* =======================
    /* 3. On ajuste les titres pour qu'ils ne débordent pas */
  TABLE DES SOMMAIRES
    h1, .firstHeading { font-size: 20px !important; }
======================= */
    h2, .mw-headline { font-size: 18px !important; }
#toc, .toc {
  background: #f9f6ef;
  border: 1px solid #d4af37;
  border-radius: 8px;
  font-family: "EB Garamond", serif;
  padding: 10px 15px;
  margin: 1em auto;
  width: 80%;
}


#toc h2 {
    /* 4. On cache la barre de gauche qui encombre le mobile */
  text-align: center;
    #mw-panel {
  color: #2a1b0a;
        display: none !important;
  border: none;
    }
  font-weight: 700;
  font-size: 1.15em;
}


/* =======================
    /* 5. Les images prennent toute la largeur sur mobile */
  LIENS
    .thumb {
======================= */
        float: none !important;
a, a:visited {
        margin: 10px auto !important;
  color: #7a4e00;
        width: 90% !important;
  text-decoration: none;
        display: block !important;
}
    }


a:hover {
    /* 6. On force les blocs dorés à s'ajuster */
  color: #d4af37;
    div[style*="width: 100%"] {
  text-decoration: underline;
        width: 100% !important;
        padding: 5px !important;
    }
}
}
/* CORRECTIF PDF : FORCE LE CONTENU À PRENDRE TOUTE LA PAGE */
@media print {
    /* On force le contenu à ignorer toute limite de largeur */
    #content, #mw-content-text, .mw-body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* Libère les côtés */
        border: none !important;
    }


/* =======================
    /* On ajoute une marge interne de sécurité pour que le texte ne soit pas coupé à l'impression */
  TABLEAUX
    body {
======================= */
        padding: 1cm !important;  
table {
    }
  border-collapse: collapse;
  background-color: #fffefb;
}


th {
    /* On cache absolument tout ce qui n'est pas le texte (menus, recherche, boutons) */
  background-color: #f6ecd4;
    #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
  color: #2a1b0a;
        display: none !important;
  font-family: "EB Garamond", serif;
    }
  font-weight: 600;
  border-bottom: 2px solid #d4af37;
}
}
 
@media print {
td, th {
  /* Force le contenu à occuper 100% de la largeur du papier */
  border: 1px solid #e2c885;
  #content, #mw-content-text, .mw-body {
  padding: 6px 10px;
      margin: 0 !important;
}
      padding: 0 !important;
 
      width: 100% !important;
/* =======================
      max-width: 100% !important;
  CITATION ROYALE (“ordo”)
      border: none !important;
======================= */
  }
.ordo {
  /* Supprime le menu de gauche et les onglets qui polluent le PDF */
  font-family: "Cinzel", serif;
  #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
  text-align: center;
      display: none !important;
  color: #3b2a0b;
  }
  background: #fdf8ee;
  /* Ajoute une marge interne de confort pour que le texte ne touche pas le bord du papier */
  border: 2px solid #d4af37;
  body {
  border-radius: 10px;
      padding: 1.5cm !important;
  padding: 15px;
  }
  margin: 1.5em auto;
  width: 80%;
  font-size: 1.1em;
}
 
/* =======================
  HEADER / BANNIÈRE
======================= */
#mw-head, .mw-header {
  background-color: #f8f5e8;
  border-bottom: 3px solid #d4af37;
}
}


#p-logo a {
/* Masque le titre "Accueil" uniquement sur la page principale */
  background-image: url("https://wiki.alfinternational.eu/images/logo_alfi_gold.png");
.page-Accueil #firstHeading {
  background-size: contain;
    display: none !important;
  background-repeat: no-repeat;
}
}


/* =======================
/* Remonte le logo au maximum */
  MENUS & INTERFACE
.page-Accueil #mw-content-text {
======================= */
    padding-top: 0 !important;
.vector-menu-content, #p-navigation, #p-personal {
    margin-top: -10px !important;
  font-family: "Lato", sans-serif;
  font-size: 14px;
}
}


.vector-menu-content a {
/* --- NETTOYAGE DE L'ESPACE SUPÉRIEUR --- */
  color: #3b2a0b;
}


.vector-menu-content a:hover {
/* 1. Supprime l'espace réservé au titre (même si caché) */
  color: #d4af37;
.mw-body, #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
}


/* =======================
#firstHeading {
  SIGNATURE FINALE
    display: none !important; /* Cache le titre pour gagner de la place */
======================= */
.signature-alfi {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 1em;
  margin-top: 2em;
  color: #2a1b0a;
}
}


.signature-alfi::before {
/* 2. Élimine le décalage blanc au-dessus des images/palais */
  content: "⚜️ ";
#mw-content-text > .mw-parser-output > p:first-child {
  color: #d4af37;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
}


.signature-alfi::after {
/* 3. Ajustement spécifique pour le haut de page mobile */
  content: " ⚜️";
@media screen and (max-width: 768px) {
  color: #d4af37;
    .mw-body {
        margin-top: -15px !important;
    }
}
}

Dernière version du 25 avril 2026 à 13:57

/* ===============================================================
   ⚜️ STYLE ROYAL ALFI — VERSION RÉPARATRICE INTERFACE
   =============================================================== */

/* 1. RÉTABLIT LA ZONE DE TEXTE ET LES BOUTONS (Indispensable) */
#wpTextbox1, .wikiEditor-ui {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 500px !important;
    font-family: monospace !important;
    font-size: 14px !important;
}

/* Force l'affichage des onglets de commande en haut */
#p-views, #left-navigation, #right-navigation, .vectorTabs {
    display: block !important;
    visibility: visible !important;
    margin-top: 20px !important;
    z-index: 1000 !important;
}

.vectorTabs li a, #p-views li a {
    color: #0645ad !important; /* Liens en bleu */
    font-weight: bold !important;
}

/* 2. BASE DE LECTURE (16px comme vous aimiez) */
#mw-content-text {
    font-size: 16px !important;
    line-height: 1.6 !important;
    max-width: 950px !important;
    margin: 40px auto !important;
    padding: 30px !important;
    background: #ffffff !important;
}

/* 3. TITRES HARMONISÉS */
h1, h2, h3, .mw-headline, #firstHeading {
    font-size: 24px !important;
    color: #3a260b !important;
    border-bottom: 1px solid #d4af37 !important;
    margin: 15px 0 !important;
    padding: 5px 0 !important;
}

/* 4. POSITIONNEMENT DE LA BARRE DE GAUCHE */
#mw-panel {
    position: absolute !important;
    top: 160px !important;
    left: 0 !important;
    width: 11em !important;
}

#content {
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
}

/* 5. ÉLÉMENTS ALFI */
.lettre-alfi {
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
    border: 1px solid #d4af37 !important;
    padding: 4px 8px !important;
    display: inline-block !important;
}

#alfi-footer {
    position: fixed !important;
    bottom: 0 !important;
    width: 100% !important;
    background: rgba(255,253,248,0.95) !important;
    border-top: 2px solid #d4af37 !important;
    z-index: 1000 !important;
}
/* ===============================================================
   📱 AJUSTEMENT SPÉCIFIQUE POUR MOBILE (XIAOMI)
   =============================================================== */

@media screen and (max-width: 768px) {
    /* 1. On libère les marges pour que le texte prenne toute la largeur */
    #content, #mw-content-text {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    /* 2. On réduit la taille du texte pour mobile */
    * {
        font-size: 15px !important; 
    }

    /* 3. On ajuste les titres pour qu'ils ne débordent pas */
    h1, .firstHeading { font-size: 20px !important; }
    h2, .mw-headline { font-size: 18px !important; }

    /* 4. On cache la barre de gauche qui encombre le mobile */
    #mw-panel {
        display: none !important;
    }

    /* 5. Les images prennent toute la largeur sur mobile */
    .thumb {
        float: none !important;
        margin: 10px auto !important;
        width: 90% !important;
        display: block !important;
    }

    /* 6. On force les blocs dorés à s'ajuster */
    div[style*="width: 100%"] {
        width: 100% !important;
        padding: 5px !important;
    }
}
/* CORRECTIF PDF : FORCE LE CONTENU À PRENDRE TOUTE LA PAGE */
@media print {
    /* On force le contenu à ignorer toute limite de largeur */
    #content, #mw-content-text, .mw-body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* Libère les côtés */
        border: none !important;
    }

    /* On ajoute une marge interne de sécurité pour que le texte ne soit pas coupé à l'impression */
    body {
        padding: 1cm !important; 
    }

    /* On cache absolument tout ce qui n'est pas le texte (menus, recherche, boutons) */
    #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
        display: none !important;
    }
}
@media print {
   /* Force le contenu à occuper 100% de la largeur du papier */
   #content, #mw-content-text, .mw-body {
       margin: 0 !important;
       padding: 0 !important;
       width: 100% !important;
       max-width: 100% !important;
       border: none !important;
   }
   /* Supprime le menu de gauche et les onglets qui polluent le PDF */
   #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
       display: none !important;
   }
   /* Ajoute une marge interne de confort pour que le texte ne touche pas le bord du papier */
   body {
       padding: 1.5cm !important;
   }
}

/* Masque le titre "Accueil" uniquement sur la page principale */
.page-Accueil #firstHeading {
    display: none !important;
}

/* Remonte le logo au maximum */
.page-Accueil #mw-content-text {
    padding-top: 0 !important;
    margin-top: -10px !important;
}

/* --- NETTOYAGE DE L'ESPACE SUPÉRIEUR --- */

/* 1. Supprime l'espace réservé au titre (même si caché) */
.mw-body, #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#firstHeading {
    display: none !important; /* Cache le titre pour gagner de la place */
}

/* 2. Élimine le décalage blanc au-dessus des images/palais */
#mw-content-text > .mw-parser-output > p:first-child {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* 3. Ajustement spécifique pour le haut de page mobile */
@media screen and (max-width: 768px) {
    .mw-body {
        margin-top: -15px !important;
    }
}