« 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
 
(21 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/***************************************************************
⚜️ THEME GLOBAL — ALFI ROYAL CSS ⚜️
Association des Lignages de France et de l’International
Style graphique : Monarchie spirituelle – Élégance française
Version 2.0 (avril 2026) – Trois thèmes : Clair / Impérial / Nocturne
****************************************************************/


/* ======================= VARIABLES DE BASE ======================= */
/* ===============================================================
:root {
  ⚜️ STYLE ROYAL ALFI — VERSION RÉPARATRICE INTERFACE
  --couleur-texte: #2a1b0a;
  =============================================================== */
  --couleur-fond: #fffdf8;
 
  --doré: #d4af37;
/* 1. RÉTABLIT LA ZONE DE TEXTE ET LES BOUTONS (Indispensable) */
  --doré-clair: #f6e27f;
#wpTextbox1, .wikiEditor-ui {
  --brun-foncé: #3b2a0b;
    display: block !important;
  --fond-tableau: #f6ecd4;
    visibility: visible !important;
  --fond-citation: #fefaf3;
    width: 100% !important;
    min-height: 500px !important;
    font-family: monospace !important;
    font-size: 14px !important;
}
}


/* ======================= THEME CLAIR ======================= */
/* Force l'affichage des onglets de commande en haut */
.alfi-theme-clair {
#p-views, #left-navigation, #right-navigation, .vectorTabs {
  --couleur-texte: #2a1b0a;
    display: block !important;
  --couleur-fond: #fffdf8;
    visibility: visible !important;
  --doré: #d4af37;
    margin-top: 20px !important;
  --doré-clair: #f6e27f;
    z-index: 1000 !important;
  --brun-foncé: #3b2a0b;
  --fond-tableau: #f6ecd4;
  --fond-citation: #fefaf3;
  background-color: var(--couleur-fond);
  color: var(--couleur-texte);
}
}


/* ======================= THEME IMPERIAL ======================= */
.vectorTabs li a, #p-views li a {
.alfi-theme-imperial {
    color: #0645ad !important; /* Liens en bleu */
  --couleur-texte: #3a260b;
    font-weight: bold !important;
  --couleur-fond: #f8f5eb;
  --doré: #c9a13d;
  --doré-clair: #f5e6a0;
  --brun-foncé: #31200a;
  --fond-tableau: #f2e8cf;
  --fond-citation: #fdf9ef;
  background-color: var(--couleur-fond);
  color: var(--couleur-texte);
}
}


/* ======================= THEME NOCTURNE ======================= */
/* 2. BASE DE LECTURE (16px comme vous aimiez) */
.alfi-theme-nocturne {
#mw-content-text {
  --couleur-texte: #f6eecf;
    font-size: 16px !important;
  --couleur-fond: #121014;
    line-height: 1.6 !important;
  --doré: #d4af37;
    max-width: 950px !important;
  --doré-clair: #ffecb3;
    margin: 40px auto !important;
  --brun-foncé: #f9f5dc;
    padding: 30px !important;
  --fond-tableau: #1e1a22;
    background: #ffffff !important;
  --fond-citation: #1a1620;
  background-color: var(--couleur-fond);
  color: var(--couleur-texte);
}
}


/* ======================= BASE TYPOGRAPHIQUE ======================= */
/* 3. TITRES HARMONISÉS */
body, .alfi-theme-clair, .alfi-theme-imperial, .alfi-theme-nocturne {
h1, h2, h3, .mw-headline, #firstHeading {
  font-family: "Crimson Pro", serif;
    font-size: 24px !important;
  font-size: 17px;
    color: #3a260b !important;
  line-height: 1.6;
    border-bottom: 1px solid #d4af37 !important;
  margin: 0;
    margin: 15px 0 !important;
  padding: 0;
    padding: 5px 0 !important;
}
}


/* ======================= JUSTIFICATION ======================= */
/* 4. POSITIONNEMENT DE LA BARRE DE GAUCHE */
.mw-parser-output p,
#mw-panel {
.mw-parser-output li,
    position: absolute !important;
.mw-parser-output td {
    top: 160px !important;
  text-align: justify;
    left: 0 !important;
  text-justify: inter-word;
    width: 11em !important;
  hyphens: auto;
}
}


/* ======================= TITRES ======================= */
#content {
h1, h2, h3, h4, h5 {
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
  font-family: "EB Garamond", serif;
  text-transform: none;
  line-height: 1.3;
  color: var(--couleur-texte);
}
}


/* ⚜️ Titre royal */
/* 5. ÉLÉMENTS ALFI */
h1 {
.lettre-alfi {
  font-size: 1.55em;
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
  font-weight: 700;
    border: 1px solid #d4af37 !important;
  text-align: center;
    padding: 4px 8px !important;
  margin: 0.8em auto 0.4em;
    display: inline-block !important;
  padding-bottom: 0.4em;
  position: relative;
  max-width: 90%;
}
}


h1::after {
#alfi-footer {
  content: "";
    position: fixed !important;
  display: block;
    bottom: 0 !important;
  width: 100px;
    width: 100% !important;
  height: 2px;
    background: rgba(255,253,248,0.95) !important;
  background: linear-gradient(to right, var(--doré), var(--doré-clair), var(--doré));
    border-top: 2px solid #d4af37 !important;
  margin: 10px auto 0 auto;
    z-index: 1000 !important;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}
}
/* ===============================================================
  📱 AJUSTEMENT SPÉCIFIQUE POUR MOBILE (XIAOMI)
  =============================================================== */


h2 {
@media screen and (max-width: 768px) {
  font-size: 1.35em;
    /* 1. On libère les marges pour que le texte prenne toute la largeur */
  font-weight: 600;
    #content, #mw-content-text {
  border-left: 4px solid var(--doré);
        margin-left: 0 !important;
  padding-left: 8px;
        width: 100% !important;
  margin-top: 1.2em;
        max-width: 100% !important;
}
        padding: 10px !important;
        box-sizing: border-box !important;
    }


h3 {
    /* 2. On réduit la taille du texte pour mobile */
  font-size: 1.18em;
    * {
  font-weight: 600;
        font-size: 15px !important;  
  color: var(--brun-foncé);
    }
  margin-top: 1em;
}


/* ======================= CITATIONS ======================= */
    /* 3. On ajuste les titres pour qu'ils ne débordent pas */
blockquote {
    h1, .firstHeading { font-size: 20px !important; }
  font-family: "Cormorant Garamond", serif;
    h2, .mw-headline { font-size: 18px !important; }
  font-size: 1.05em;
  font-style: italic;
  background-color: var(--fond-citation);
  border-left: 4px solid var(--doré);
  margin: 1em 2em;
  padding: 0.8em 1.2em;
  color: var(--brun-foncé);
}


/* ======================= TABLES ======================= */
    /* 4. On cache la barre de gauche qui encombre le mobile */
table {
    #mw-panel {
  border-collapse: collapse;
        display: none !important;
  background-color: var(--fond-tableau);
    }
}
th, td {
  border: 1px solid var(--doré);
  padding: 6px 10px;
  color: var(--couleur-texte);
}


/* ======================= LIENS ======================= */
    /* 5. Les images prennent toute la largeur sur mobile */
a, a:visited { color: var(--brun-foncé); text-decoration: none; }
    .thumb {
a:hover { color: var(--doré); text-decoration: underline; }
        float: none !important;
        margin: 10px auto !important;
        width: 90% !important;
        display: block !important;
    }


/* ======================= CITATION ROYALE ("ordo") ======================= */
    /* 6. On force les blocs dorés à s'ajuster */
.ordo {
    div[style*="width: 100%"] {
  font-family: "Cinzel", serif;
        width: 100% !important;
  text-align: center;
        padding: 5px !important;
  color: var(--brun-foncé);
    }
  background: var(--fond-citation);
  border: 2px solid var(--doré);
  border-radius: 10px;
  padding: 15px;
  margin: 1.5em auto;
  width: 80%;
  font-size: 1.1em;
}
}
/* 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;
    }


/* ======================= SIGNATURE ======================= */
    /* On ajoute une marge interne de sécurité pour que le texte ne soit pas coupé à l'impression */
.signature-alfi {
    body {
  text-align: center;
        padding: 1cm !important;  
  font-family: "Cinzel", serif;
    }
  font-size: 1em;
  margin-top: 2em;
  color: var(--couleur-texte);
}
.signature-alfi::before { content: "⚜️ "; color: var(--doré); }
.signature-alfi::after { content: " ⚜️"; color: var(--doré); }


/* ======================= TABLE DES SOMMAIRES ======================= */
    /* On cache absolument tout ce qui n'est pas le texte (menus, recherche, boutons) */
#toc, .toc {
    #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
  background: var(--fond-citation);
        display: none !important;
  border: 1px solid var(--doré);
    }
  border-radius: 8px;
  font-family: "EB Garamond", serif;
  padding: 10px 15px;
  margin: 1em auto;
  width: 80%;
}
}
#toc h2 {
@media print {
  text-align: center;
  /* Force le contenu à occuper 100% de la largeur du papier */
  color: var(--couleur-texte);
  #content, #mw-content-text, .mw-body {
  border: none;
      margin: 0 !important;
  font-weight: 700;
      padding: 0 !important;
  font-size: 1.15em;
      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;
  }
}
}


/* ======================= RESPONSIVE ======================= */
/* Masque le titre "Accueil" uniquement sur la page principale */
@media (max-width: 600px) {
.page-Accueil #firstHeading {
  h1 { font-size: 1.3em; line-height: 1.2; }
    display: none !important;
  h2 { font-size: 1.1em; }
  h3 { font-size: 1em; }
  .mw-parser-output p { text-align: left; }
}
}


/***************************************************************
/* Remonte le logo au maximum */
⚜️ THEME D’IMPRESSION — ALFI IMPRIMATUR v1.0 ⚜️
.page-Accueil #mw-content-text {
Format : A4 — Usage : Chartes, Statuts, Actes, Dossiers royaux
     padding-top: 0 !important;
****************************************************************/
     margin-top: -10px !important;
@media print {
  body {
    font-family: "Crimson Pro", serif;
    font-size: 12.5pt;
    line-height: 1.55;
    color: #2a1b0a;
    background: #fffdf8;
    margin: 2.5cm;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  h1 {
    font-family: "EB Garamond", serif;
    font-size: 16pt;
    text-align: center;
    font-weight: 700;
    border-bottom: 1.5pt solid #d4af37;
    padding-bottom: 6pt;
  }
  h2 {
    font-size: 14pt;
    border-left: 4pt solid #d4af37;
     padding-left: 8pt;
    margin-top: 18pt;
  }
  p, li {
    text-align: justify;
    orphans: 3;
    widows: 3;
  }
  blockquote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    border-left: 3pt solid #d4af37;
     margin: 10pt 20pt;
    padding: 6pt 12pt;
  }
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 0.5pt solid #d4af37;
    padding: 6pt;
  }
  body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: url("https://wiki.alfinternational.eu/images/logo_alfi_gold.png") no-repeat center;
    background-size: contain;
    opacity: 0.06;
    transform: translate(-50%, -50%);
  }
}
}

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;
}