« 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
Balise : Révocation manuelle
 
(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.2 (février 2026)
****************************************************************/


/* =======================
/* ===============================================================
   BASE GÉNÉRALE
   ⚜️ STYLE ROYAL ALFI — VERSION RÉPARATRICE INTERFACE
   ======================= */
   =============================================================== */


body {
/* 1. RÉTABLIT LA ZONE DE TEXTE ET LES BOUTONS (Indispensable) */
  font-family: "Crimson Pro", serif;
#wpTextbox1, .wikiEditor-ui {
  font-size: 17px;
    display: block !important;
  line-height: 1.6;
    visibility: visible !important;
  color: #2a1b0a;             /* Brun noble */
    width: 100% !important;
  background-color: #fffdf8;   /* Blanc parchemin */
    min-height: 500px !important;
  margin: 0;
    font-family: monospace !important;
  padding: 0;
    font-size: 14px !important;
}
}


/* =======================
/* Force l'affichage des onglets de commande en haut */
  TITRES PRINCIPAUX
#p-views, #left-navigation, #right-navigation, .vectorTabs {
  ======================= */
    display: block !important;
 
    visibility: visible !important;
h1, h2, h3, h4, h5 {
    margin-top: 20px !important;
  font-family: "EB Garamond", serif;
    z-index: 1000 !important;
  color: #2a1b0a;
  text-transform: none;
  line-height: 1.3;
  word-wrap: break-word;
}
 
/* Titre royal — équilibré + filet doré */
h1 {
  font-size: 1.8em;
  font-weight: 700;
  text-align: center;
  margin: 0.8em auto 0.4em;
  padding-bottom: 0.5em;
  position: relative;
  max-width: 90%;
}
 
/* Filet doré lumineux sous le titre */
h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #f6e27f, #d4af37);
  margin: 10px auto 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}
 
h2 {
  font-size: 1.5em;
  font-weight: 600;
  border-left: 4px solid #d4af37;
  padding-left: 8px;
  margin-top: 1.2em;
}
 
h3 {
  font-size: 1.25em;
  font-weight: 600;
  color: #3b2a0b;
  margin-top: 1em;
}
 
/* ✅ Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.4em; line-height: 1.2; }
  h2 { font-size: 1.2em; }
  h3 { font-size: 1.1em; }
}
 
/* =======================
  CITATIONS & ÉPIGRAPHES
  ======================= */
 
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;
}
}


/* =======================
.vectorTabs li a, #p-views li a {
  TABLE DES SOMMAIRES
    color: #0645ad !important; /* Liens en bleu */
  ======================= */
    font-weight: bold !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 {
/* 2. BASE DE LECTURE (16px comme vous aimiez) */
  text-align: center;
#mw-content-text {
  color: #2a1b0a;
    font-size: 16px !important;
  border: none;
    line-height: 1.6 !important;
  font-weight: 700;
    max-width: 950px !important;
    margin: 40px auto !important;
    padding: 30px !important;
    background: #ffffff !important;
}
}


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


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


/* =======================
#content {
  TABLEAUX
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
  ======================= */
 
table {
  border-collapse: collapse;
  background-color: #fffefb;
}
}


th {
/* 5. ÉLÉMENTS ALFI */
  background-color: #f6ecd4;
.lettre-alfi {
  color: #2a1b0a;
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
  font-family: "EB Garamond", serif;
    border: 1px solid #d4af37 !important;
  font-weight: 600;
    padding: 4px 8px !important;
  border-bottom: 2px solid #d4af37;
    display: inline-block !important;
}
}


td, th {
#alfi-footer {
  border: 1px solid #e2c885;
    position: fixed !important;
  padding: 6px 10px;
    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) {
  CITATION ROYALE (“ordo”)
    /* 1. On libère les marges pour que le texte prenne toute la largeur */
  ======================= */
    #content, #mw-content-text {
 
        margin-left: 0 !important;
.ordo {
        width: 100% !important;
  font-family: "Cinzel", serif;
        max-width: 100% !important;
  text-align: center;
        padding: 10px !important;
  color: #3b2a0b;
        box-sizing: border-box !important;
  background: #fdf8ee;
    }
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 15px;
  margin: 1.5em auto;
  width: 80%;
  font-size: 1.15em;
}


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


#mw-head, .mw-header {
    /* 3. On ajuste les titres pour qu'ils ne débordent pas */
  background-color: #f8f5e8;
    h1, .firstHeading { font-size: 20px !important; }
  border-bottom: 3px solid #d4af37;
    h2, .mw-headline { font-size: 18px !important; }
}


#p-logo a {
    /* 4. On cache la barre de gauche qui encombre le mobile */
  background-image: url("https://wiki.alfinternational.eu/images/logo_alfi_gold.png");
    #mw-panel {
  background-size: contain;
        display: none !important;
  background-repeat: no-repeat;
    }
}


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


.vector-menu-content, #p-navigation, #p-personal {
    /* 6. On force les blocs dorés à s'ajuster */
  font-family: "Lato", sans-serif;
    div[style*="width: 100%"] {
  font-size: 14px;
        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;
    }


.vector-menu-content a {
    /* On ajoute une marge interne de sécurité pour que le texte ne soit pas coupé à l'impression */
  color: #3b2a0b;
    body {
}
        padding: 1cm !important;  
    }


.vector-menu-content a:hover {
    /* On cache absolument tout ce qui n'est pas le texte (menus, recherche, boutons) */
  color: #d4af37;
    #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
        display: none !important;
    }
}
}
 
@media print {
/* =======================
  /* Force le contenu à occuper 100% de la largeur du papier */
  SIGNATURE FINALE
  #content, #mw-content-text, .mw-body {
  ======================= */
      margin: 0 !important;
 
      padding: 0 !important;
.signature-alfi {
      width: 100% !important;
  text-align: center;
      max-width: 100% !important;
  font-family: "Cinzel", serif;
      border: none !important;
  font-size: 1em;
  }
  margin-top: 2em;
  /* Supprime le menu de gauche et les onglets qui polluent le PDF */
  color: #2a1b0a;
  #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;
  }
}
}


.signature-alfi::before {
/* Masque le titre "Accueil" uniquement sur la page principale */
  content: "⚜️ ";
.page-Accueil #firstHeading {
  color: #d4af37;
    display: none !important;
}
}


.signature-alfi::after {
/* Remonte le logo au maximum */
  content: " ⚜️";
.page-Accueil #mw-content-text {
  color: #d4af37;
    padding-top: 0 !important;
    margin-top: -10px !important;
}
}

Dernière version du 29 mars 2026 à 08:46

/* ===============================================================
   ⚜️ 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;
}