« 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
 
(20 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/***************************************************************
⚜️ ALFI ROYAL CSS v3.4 — “Cadre Royal Pur”
Association des Lignages de France et de l’International
Style : Monarchie spirituelle — Pureté, équilibre, élégance
Fond ivoire — Cadre doré 2px sur tout le body
****************************************************************/


/* ======================= 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;
  --accent-royal: linear-gradient(90deg, #b9962e, #f6e27f, #b9962e);
    min-height: 500px !important;
    font-family: monospace !important;
    font-size: 14px !important;
}
}


/* ======================= BODY GÉNÉRAL AVEC CADRE ======================= */
/* Force l'affichage des onglets de commande en haut */
body {
#p-views, #left-navigation, #right-navigation, .vectorTabs {
  background-color: var(--couleur-fond);
    display: block !important;
  color: var(--couleur-texte);
    visibility: visible !important;
  font-family: "Crimson Pro", serif;
    margin-top: 20px !important;
  font-size: 17px;
    z-index: 1000 !important;
  line-height: 1.6;
  margin: 0;
  padding: 2em;
  border: 2px solid var(--doré);
  box-sizing: border-box;
}
}


/* ======================= JUSTIFICATION ======================= */
.vectorTabs li a, #p-views li a {
.mw-parser-output p,
    color: #0645ad !important; /* Liens en bleu */
.mw-parser-output li,
    font-weight: bold !important;
.mw-parser-output td {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
}


/* ======================= TITRES ======================= */
/* 2. BASE DE LECTURE (16px comme vous aimiez) */
h1, h2, h3, h4, h5 {
#mw-content-text {
  font-family: "EB Garamond", serif;
    font-size: 16px !important;
  color: var(--couleur-texte);
    line-height: 1.6 !important;
  text-transform: none;
    max-width: 950px !important;
    margin: 40px auto !important;
    padding: 30px !important;
    background: #ffffff !important;
}
}


/* ⚜️ TITRE ROYAL H1 */
/* 3. TITRES HARMONISÉS */
h1 {
h1, h2, h3, .mw-headline, #firstHeading {
  font-size: 1.6em;
    font-size: 24px !important;
  text-align: center;
    color: #3a260b !important;
  margin: 0.8em auto 0.4em;
    border-bottom: 1px solid #d4af37 !important;
  position: relative;
    margin: 15px 0 !important;
  font-weight: 700;
    padding: 5px 0 !important;
  letter-spacing: 0.5px;
}
}
h1::before {
 
  content: "⚜️";
/* 4. POSITIONNEMENT DE LA BARRE DE GAUCHE */
  color: var(--doré);
#mw-panel {
  font-size: 1.3em;
    position: absolute !important;
  margin-right: 0.3em;
    top: 160px !important;
    left: 0 !important;
    width: 11em !important;
}
}
h1::after {
 
  content: "";
#content {
  display: block;
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
  height: 2px;
  width: 100px;
  background: var(--accent-royal);
  margin: 8px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
}
}


h2 {
/* 5. ÉLÉMENTS ALFI */
  font-size: 1.35em;
.lettre-alfi {
  font-weight: 600;
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
  border-left: 4px solid var(--doré);
    border: 1px solid #d4af37 !important;
  padding-left: 8px;
    padding: 4px 8px !important;
  margin-top: 1.4em;
    display: inline-block !important;
}
}


h3 {
#alfi-footer {
  font-size: 1.18em;
    position: fixed !important;
  font-weight: 600;
    bottom: 0 !important;
  color: var(--brun-foncé);
    width: 100% !important;
  margin-top: 1em;
    background: rgba(255,253,248,0.95) !important;
    border-top: 2px solid #d4af37 !important;
    z-index: 1000 !important;
}
}
/* ===============================================================
  📱 AJUSTEMENT SPÉCIFIQUE POUR MOBILE (XIAOMI)
  =============================================================== */


/* ======================= CITATIONS ======================= */
@media screen and (max-width: 768px) {
blockquote {
    /* 1. On libère les marges pour que le texte prenne toute la largeur */
  font-family: "Cormorant Garamond", serif;
    #content, #mw-content-text {
  font-style: italic;
        margin-left: 0 !important;
  background-color: var(--fond-citation);
        width: 100% !important;
  border-left: 4px solid var(--doré);
        max-width: 100% !important;
  margin: 1.2em 2em;
        padding: 10px !important;
  padding: 0.9em 1.4em;
        box-sizing: border-box !important;
  color: var(--brun-foncé);
    }
  position: relative;
 
    /* 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;
    }
}
}
blockquote::before {
/* CORRECTIF PDF : FORCE LE CONTENU À PRENDRE TOUTE LA PAGE */
  content: "❝";
@media print {
  color: var(--doré);
    /* On force le contenu à ignorer toute limite de largeur */
  font-size: 2em;
    #content, #mw-content-text, .mw-body {
  position: absolute;
        margin: 0 !important;
  top: -10px;
        padding: 0 !important;
  left: 10px;
        width: 100% !important;
  opacity: 0.4;
        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;
    }
}
}
blockquote::after {
@media print {
  content: "❞";
  /* Force le contenu à occuper 100% de la largeur du papier */
  color: var(--doré);
  #content, #mw-content-text, .mw-body {
  font-size: 2em;
      margin: 0 !important;
  position: absolute;
      padding: 0 !important;
  bottom: -15px;
      width: 100% !important;
  right: 12px;
      max-width: 100% !important;
  opacity: 0.4;
      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;
  }
}
}


/* ======================= TABLES ======================= */
/* Masque le titre "Accueil" uniquement sur la page principale */
table {
.page-Accueil #firstHeading {
  border-collapse: collapse;
    display: none !important;
  background-color: var(--fond-tableau);
  width: 100%;
  margin: 1em 0;
}
}
th, td {
 
  border: 1px solid var(--doré);
/* Remonte le logo au maximum */
  padding: 6px 10px;
.page-Accueil #mw-content-text {
  color: var(--couleur-texte);
    padding-top: 0 !important;
}
    margin-top: -10px !important;
th {
  background: var(--accent-royal);
  color: #2a1b0a;
  font-weight: 600;
}
}


/* ======================= LIENS ======================= */
/* --- NETTOYAGE DE L'ESPACE SUPÉRIEUR --- */
a, a:visited {
  color: var(--brun-foncé);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
  color: var(--doré);
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(212,175,55,0.6);
}


/* ======================= CITATION ROYALE ======================= */
/* 1. Supprime l'espace réservé au titre (même si caché) */
.ordo {
.mw-body, #content {
  font-family: "Cinzel", serif;
    padding-top: 0 !important;
  text-align: center;
    margin-top: 0 !important;
  color: var(--brun-foncé);
  background: var(--fond-citation);
  border: 2px solid var(--doré);
  border-radius: 10px;
  padding: 18px;
  margin: 1.8em auto;
  width: 80%;
  font-size: 1.1em;
  box-shadow: 0 0 10px rgba(212,175,55,0.15);
}
}


/* ======================= SIGNATURE ALFI ======================= */
#firstHeading {
.signature-alfi {
    display: none !important; /* Cache le titre pour gagner de la place */
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 0.9em;
  color: var(--couleur-texte);
  margin-top: 3em;
  letter-spacing: 0.05em;
}
}
.signature-alfi::before { content: "⚜️ "; color: var(--doré); }
.signature-alfi::after { content: " ⚜️"; color: var(--doré); }


/* ======================= SIGNATURE FIXE BAS DE PAGE ======================= */
/* 2. Élimine le décalage blanc au-dessus des images/palais */
body::after {
#mw-content-text > .mw-parser-output > p:first-child {
  content: "Association des Lignages de France et de l’International — A.L.F.I.";
    margin: 0 !important;
  display: block;
    padding: 0 !important;
  text-align: center;
    line-height: 0 !important;
  font-family: "Cinzel", serif;
  font-size: 0.8em;
  color: var(--doré);
  margin-top: 3em;
  letter-spacing: 0.05em;
}
}


/* ======================= IMPRESSION ======================= */
/* 3. Ajustement spécifique pour le haut de page mobile */
@media print {
@media screen and (max-width: 768px) {
  body {
    .mw-body {
    border: 1.5pt solid #d4af37;
        margin-top: -15px !important;
    margin: 2cm;
     }
     padding: 1.5cm;
  }
}
}

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