« 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
 
(17 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* ===============================================================
/* ===============================================================
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Optimisée
   ⚜️ STYLE ROYAL ALFI — VERSION RÉPARATRICE INTERFACE
   =============================================================== */
   =============================================================== */


/* --- 1. STRUCTURE DE L'ARTICLE (Correction du "désastre") --- */
/* 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 {
#mw-content-text {
  max-width: 1050px;           /* Empêche le texte de s'étaler à l'infini sur grand écran */
    font-size: 16px !important;
  margin: 40px auto;          /* Centre l'article et ajoute de l'espace en haut/bas */
    line-height: 1.6 !important;
  line-height: 1.8;           /* Aère les lignes pour un confort de lecture optimal */
    max-width: 950px !important;
  color: #2c2c2c;             /* Gris anthracite pour une lecture reposante */
    margin: 40px auto !important;
  padding: 40px;               /* Marges intérieures généreuses */
    padding: 30px !important;
  background: #ffffff;         /* Fond blanc pur pour le corps de l'article */
    background: #ffffff !important;
  box-shadow: 0 0 25px rgba(0,0,0,0.08); /* Ombre légère pour détacher l'article du fond */
  font-family: 'EB Garamond', 'Garamond', serif; /* Police de caractère royale */
  font-size: 1.15em;          /* Taille de texte légèrement augmentée */
  border-radius: 4px;          /* Arrondi très léger des angles de l'article */
}
}


/* Harmonisation des Titres (H1, H2, H3) */
/* 3. TITRES HARMONISÉS */
h1, h2, h3, h4 {
h1, h2, h3, .mw-headline, #firstHeading {
  font-family: 'EB Garamond', serif;
    font-size: 24px !important;
  color: #3a260b;             /* Brun profond pour un aspect historique */
    color: #3a260b !important;
  border-bottom: 1px solid #d4af37; /* Soulignement doré fin */
    border-bottom: 1px solid #d4af37 !important;
  padding-bottom: 8px;
    margin: 15px 0 !important;
  margin-top: 1.6em;
    padding: 5px 0 !important;
  font-weight: bold;
}
}


/* Gestion des images (Thumbnails) et Infobox */
/* 4. POSITIONNEMENT DE LA BARRE DE GAUCHE */
.thumb, .infobox {
#mw-panel {
  margin: 15px 0 25px 30px !important;
    position: absolute !important;
  border: 1px solid #d4af37 !important; /* Bordure dorée rappelant le thème */
    top: 160px !important;
  background: #fffdf8 !important;      /* Fond crème très léger */
    left: 0 !important;
  padding: 10px;
    width: 11em !important;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}
}


/* --- 2. ÉLÉMENTS ALFI ORIGINAUX (Menu Index et Boutons) --- */
#content {
 
    margin-left: 12em !important; /* Laisse la place au menu de gauche */
#alfi-index {
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  background: rgba(255, 253, 248, 0.96); /* Fond parchemin quasi-opaque */
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
  padding: 20px 15px;
  margin-bottom: 40px;
}
}


/* 5. ÉLÉMENTS ALFI */
.lettre-alfi {
.lettre-alfi {
  background: linear-gradient(180deg,#f8f2d0,#f6e27f);
    background: linear-gradient(180deg,#f8f2d0,#f6e27f) !important;
  border: 1px solid #d4af37;
    border: 1px solid #d4af37 !important;
  border-radius: 6px;
    padding: 4px 8px !important;
  padding: 8px 14px;
    display: inline-block !important;
  font-size: 17px;
  font-weight: bold;
  color: #3a260b;
  box-shadow: 0 0 5px rgba(212,175,55,0.25);
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  margin: 4px;
}
}


.lettre-alfi:hover {
#alfi-footer {
  background: linear-gradient(180deg,#fff8cc,#f9e27a);
    position: fixed !important;
  color: #a40000;
    bottom: 0 !important;
  box-shadow: 0 0 15px rgba(212,175,55,0.6), 0 0 4px #fff8cc inset;
    width: 100% !important;
  transform: translateY(-2px);
    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;
    }


.bouton-footer {
    /* 6. On force les blocs dorés à s'ajuster */
  display: inline-block;
    div[style*="width: 100%"] {
  margin: 5px 12px;
        width: 100% !important;
  padding: 9px 16px;
        padding: 5px !important;
  color: #3a260b;
    }
  font-weight: bold;
  text-decoration: none !important;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: linear-gradient(180deg,#f9eeb8,#f6e27f);
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(212,175,55,0.2);
}
}
/* 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;
    }


.bouton-footer:hover {
    /* On cache absolument tout ce qui n'est pas le texte (menus, recherche, boutons) */
  background: linear-gradient(180deg,#fff7c6,#fbe88f);
    #mw-navigation, #mw-panel, #p-search, .vectorTabs, #footer, .noprint {
  color: #a40000;
        display: none !important;
  transform: translateY(-1px);
    }
}
@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;
  }
}
}


#alfi-footer {
/* Masque le titre "Accueil" uniquement sur la page principale */
  position: fixed;
.page-Accueil #firstHeading {
  bottom: 0;
    display: none !important;
  left: 0;
  width: 100%;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(6px);
  border-top: 2px solid #d4af37;
  box-shadow: 0 -3px 10px rgba(212,175,55,0.2);
  text-align: center;
  padding: 12px 0;
  z-index: 1000;
}
}


/* --- 3. ADAPTATION MOBILE (Responsive) --- */
/* Remonte le logo au maximum */
 
.page-Accueil #mw-content-text {
@media (max-width:768px) {
     padding-top: 0 !important;
  #mw-content-text {
     margin-top: -10px !important;
    width: 92%;
     padding: 20px;
    margin: 20px auto;
    font-size: 1.05em;
  }
 
  .thumb {
    float: none !important;
    display: block;
     margin: 15px auto !important;
    max-width: 100% !important;
  }
 
  #alfi-index { padding: 12px 5px; }
  .lettre-alfi { font-size: 15px; padding: 6px 10px; margin: 2px; }
}
}

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