« MediaWiki:Common.css » : différence entre les versions

De WikiRuches
(Thème Ruches v5 — corps + sidebars marines, Admin rouge)
(Thème Ruches v6 — sélecteurs précis, onglets exclus)
Ligne 1 : Ligne 1 :
/* ============================================================
/* ============================================================
   Thème Ruches v5
   Thème Ruches v6
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   ============================================================ */
   ============================================================ */


/* ── 1. Corps et conteneurs de page — marine ── */
/* ── 1. Corps global — marine ── */
body,
body,
.mw-page-container,
.mw-page-container,
Ligne 11 : Ligne 11 :
}
}


/* ── 2. Sidebars — marine (ciblage large) ── */
/* ── 2. En-tête complet — marine ── */
/* Portlets génériques */
.vector-header,
.mw-portlet,
.mw-header,
.mw-portlet-body,
.vector-header-start,
.mw-portlet-content,
.vector-header-end,
/* IDs navigation et outils */
.mw-logo,
#p-logo,
.vector-header-logo {
    background-color: #1a2040 !important;
    border-bottom: 2px solid #cc2020 !important;
    box-shadow: none !important;
}
 
/* ── 3. Zone Admin/utilisateur — rouge ── */
.vector-user-links,
.vector-user-links-main,
.vector-user-menu,
.vector-user-menu-overflow,
#pt-userpage,
.mw-portlet-personal,
#p-personal {
    background-color: #cc2020 !important;
    border-radius: 4px;
    border-bottom: none !important;
}
 
.vector-user-links a,
.vector-user-links button,
.vector-user-menu a,
.mw-portlet-personal a,
#p-personal a,
.vector-user-links .mw-ui-icon::before {
    color: #ffffff !important;
}
 
.vector-user-links a:hover,
.mw-portlet-personal a:hover {
    color: #ffe0e0 !important;
    text-decoration: none !important;
}
 
/* ── 4. Sidebars — marine (portlets spécifiques, PAS les onglets de page) ── */
#p-navigation,
#p-navigation,
#p-tb,
#p-tb,
#p-lang,
#p-coll-print_export,
#p-coll-print_export,
#p-lang,
/* Main menu */
.vector-main-menu,
.vector-main-menu,
#vector-main-menu,
#vector-main-menu,
.vector-main-menu-container,
.vector-main-menu-container,
#vector-main-menu-pinned-container,
#vector-main-menu-pinned-container,
/* TOC */
.vector-toc,
.vector-toc,
#vector-toc,
#vector-toc,
Ligne 33 : Ligne 67 :
.mw-table-of-contents-container,
.mw-table-of-contents-container,
#vector-toc-pinned-container,
#vector-toc-pinned-container,
/* Outils page */
.vector-page-tools,
.vector-page-tools,
#vector-page-tools,
#vector-page-tools,
.vector-page-tools-container,
.vector-page-tools-container,
#vector-page-tools-pinned-container,
#vector-page-tools-pinned-container,
/* Colonnes sidebar */
.vector-column-start,
.vector-column-start,
.vector-column-end,
.vector-column-end,
Ligne 44 : Ligne 76 :
#mw-panel {
#mw-panel {
     background-color: #1a2040 !important;
     background-color: #1a2040 !important;
    border-bottom: none !important;
}
/* ── 5. Onglets de page — fond transparent (héritent du blanc du contenu) ── */
.mw-portlet-namespaces,
.mw-portlet-views,
.mw-portlet-cactions,
.vector-menu-tabs,
.vector-menu-tabs-legacy,
#p-namespaces,
#p-views,
#p-cactions {
    background-color: transparent !important;
    border-bottom: none !important;
}
}


/* ── 3. Zone de contenu — blanc ── */
/* ── 6. Zone de contenu — blanc ── */
.mw-content-container,
.mw-content-container,
.mw-body,
.mw-body,
Ligne 55 : Ligne 101 :
}
}


/* ── 4. En-tête ── */
/* ── 7. Texte dans les sidebars beige ── */
.vector-header,
#p-navigation h3, #p-tb h3,
.mw-header {
    background-color: #1a2040 !important;
    border-bottom: 2px solid #cc2020 !important;
    box-shadow: none !important;
}
 
/* ── 5. Zone Admin fond rouge ── */
.vector-user-links,
.mw-portlet-personal,
#p-personal,
.vector-user-menu-overflow,
.vector-user-menu {
    background-color: #cc2020 !important;
    border-radius: 4px;
}
 
.vector-user-links a,
.mw-portlet-personal a,
#p-personal a,
.vector-user-menu a {
    color: #ffffff !important;
}
 
.vector-user-links a:hover,
.mw-portlet-personal a:hover {
    color: #ffe0e0 !important;
    text-decoration: none !important;
}
 
/* ── 6. Texte dans les sidebars — beige ── */
.mw-portlet h3,
.mw-portlet-heading,
.mw-portlet-heading,
.vector-menu-heading,
.vector-menu-heading,
.vector-menu-heading-label,
.vector-menu-heading-label,
.vector-pinnable-header-label,
.vector-pinnable-header-label,
#mw-panel .portal h3,
.vector-toc-heading {
.vector-toc-heading {
     color: #c9b99a !important;
     color: #c9b99a !important;
Ligne 100 : Ligne 114 :


/* Liens sidebar */
/* Liens sidebar */
.mw-portlet a,
#p-navigation a, #p-tb a,
.vector-toc a,
.vector-toc a,
.vector-main-menu a,
.vector-main-menu a,
#mw-panel a,
.mw-table-of-contents-container a,
.vector-column-start a,
.vector-column-start a,
.vector-column-end a {
.vector-column-end a,
#mw-panel a {
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}


.mw-portlet a:hover,
#p-navigation a:hover, #p-tb a:hover,
.vector-toc a:hover,
.vector-toc a:hover,
.vector-column-start a:hover,
.vector-column-start a:hover,
Ligne 123 : Ligne 136 :
}
}


/* Boutons [masquer] dans les sidebars */
.mw-portlet-hide,
.mw-portlet-hide,
.vector-pinnable-header-toggle-button {
.vector-pinnable-header-toggle-button {
Ligne 129 : Ligne 141 :
}
}


/* ── 7. Liens dans le contenu — marine ── */
/* ── 8. Liens dans le contenu — marine ── */
#mw-content-text a,
#mw-content-text a,
.mw-body-content a,
.mw-body-content a,
Ligne 153 : Ligne 165 :
}
}


/* ── 8. Onglets (Lire / Modifier / Historique) ── */
/* ── 9. Onglets (Lire / Modifier / Historique) ── */
.vector-menu-tabs a,
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
.vector-menu-tabs-legacy a {
Ligne 160 : Ligne 172 :


.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a,
.vector-menu-tabs-legacy .selected a,
.vector-menu-tabs-legacy .selected a {
#ca-view a {
     color: #cc2020 !important;
     color: #cc2020 !important;
     border-bottom: 2px solid #cc2020 !important;
     border-bottom: 2px solid #cc2020 !important;
}
}


/* ── 9. Liens [modifier] de section ── */
/* ── 10. Liens [modifier] de section ── */
.mw-editsection a {
.mw-editsection a {
     color: #1a2040 !important;
     color: #1a2040 !important;
Ligne 172 : Ligne 183 :
}
}


/* ── 10. Titres ── */
/* ── 11. Titres ── */
.firstHeading, h1.firstHeading {
.firstHeading, h1.firstHeading {
     color: #1a2040;
     color: #1a2040;
Ligne 188 : Ligne 199 :
}
}


/* ── 11. Boutons ── */
/* ── 12. Boutons ── */
.mw-ui-button.mw-ui-progressive,
.mw-ui-button.mw-ui-progressive,
.oo-ui-buttonElement-button.oo-ui-flaggedElement-progressive {
.oo-ui-buttonElement-button.oo-ui-flaggedElement-progressive {
Ligne 196 : Ligne 207 :
}
}


.mw-ui-button.mw-ui-progressive:hover,
/* ── 13. Tables ── */
.oo-ui-buttonElement-button.oo-ui-flaggedElement-progressive:hover {
    background-color: #a01818 !important;
    border-color: #a01818 !important;
}
 
/* ── 12. Tables ── */
.wikitable > tr > th, .wikitable > * > tr > th {
.wikitable > tr > th, .wikitable > * > tr > th {
     background-color: #1a2040;
     background-color: #1a2040;
Ligne 215 : Ligne 220 :
}
}


/* ── 13. Catégories ── */
/* ── 14. Catégories ── */
#catlinks {
#catlinks {
     background-color: #f5f0e8 !important;
     background-color: #f5f0e8 !important;
Ligne 221 : Ligne 226 :
     color: #1a2040 !important;
     color: #1a2040 !important;
}
}
#catlinks a { color: #1a2040 !important; }
#catlinks a { color: #1a2040 !important; }


/* ── 14. Footer ── */
/* ── 15. Footer ── */
#footer, .mw-footer {
#footer, .mw-footer {
     background-color: #1a2040 !important;
     background-color: #1a2040 !important;
Ligne 230 : Ligne 234 :
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}
#footer a, .mw-footer a { color: #c9b99a !important; }
#footer a, .mw-footer a { color: #c9b99a !important; }
#footer a:hover, .mw-footer a:hover { color: #ffffff !important; }
#footer a:hover, .mw-footer a:hover { color: #ffffff !important; }

Version du 19 juin 2026 à 22:24

/* ============================================================
   Thème Ruches v6
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   ============================================================ */

/* ── 1. Corps global — marine ── */
body,
.mw-page-container,
.mw-page-container-inner {
    background-color: #1a2040 !important;
}

/* ── 2. En-tête complet — marine ── */
.vector-header,
.mw-header,
.vector-header-start,
.vector-header-end,
.mw-logo,
#p-logo,
.vector-header-logo {
    background-color: #1a2040 !important;
    border-bottom: 2px solid #cc2020 !important;
    box-shadow: none !important;
}

/* ── 3. Zone Admin/utilisateur — rouge ── */
.vector-user-links,
.vector-user-links-main,
.vector-user-menu,
.vector-user-menu-overflow,
#pt-userpage,
.mw-portlet-personal,
#p-personal {
    background-color: #cc2020 !important;
    border-radius: 4px;
    border-bottom: none !important;
}

.vector-user-links a,
.vector-user-links button,
.vector-user-menu a,
.mw-portlet-personal a,
#p-personal a,
.vector-user-links .mw-ui-icon::before {
    color: #ffffff !important;
}

.vector-user-links a:hover,
.mw-portlet-personal a:hover {
    color: #ffe0e0 !important;
    text-decoration: none !important;
}

/* ── 4. Sidebars — marine (portlets spécifiques, PAS les onglets de page) ── */
#p-navigation,
#p-tb,
#p-lang,
#p-coll-print_export,
.vector-main-menu,
#vector-main-menu,
.vector-main-menu-container,
#vector-main-menu-pinned-container,
.vector-toc,
#vector-toc,
.vector-toc-inner,
.vector-toc-container,
.mw-table-of-contents-container,
#vector-toc-pinned-container,
.vector-page-tools,
#vector-page-tools,
.vector-page-tools-container,
#vector-page-tools-pinned-container,
.vector-column-start,
.vector-column-end,
.vector-sidebar-inner,
#mw-panel {
    background-color: #1a2040 !important;
    border-bottom: none !important;
}

/* ── 5. Onglets de page — fond transparent (héritent du blanc du contenu) ── */
.mw-portlet-namespaces,
.mw-portlet-views,
.mw-portlet-cactions,
.vector-menu-tabs,
.vector-menu-tabs-legacy,
#p-namespaces,
#p-views,
#p-cactions {
    background-color: transparent !important;
    border-bottom: none !important;
}

/* ── 6. Zone de contenu — blanc ── */
.mw-content-container,
.mw-body,
#content,
#mw-content-text,
.mw-parser-output {
    background-color: #ffffff !important;
}

/* ── 7. Texte dans les sidebars — beige ── */
#p-navigation h3, #p-tb h3,
.mw-portlet-heading,
.vector-menu-heading,
.vector-menu-heading-label,
.vector-pinnable-header-label,
.vector-toc-heading {
    color: #c9b99a !important;
    border-bottom: 1px solid rgba(201,185,154,0.3) !important;
    background: transparent !important;
}

/* Liens sidebar */
#p-navigation a, #p-tb a,
.vector-toc a,
.vector-main-menu a,
.vector-column-start a,
.vector-column-end a,
#mw-panel a {
    color: #c9b99a !important;
}

#p-navigation a:hover, #p-tb a:hover,
.vector-toc a:hover,
.vector-column-start a:hover,
.vector-column-end a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.vector-toc .vector-toc-link--active {
    color: #cc2020 !important;
    font-weight: bold;
}

.mw-portlet-hide,
.vector-pinnable-header-toggle-button {
    color: #c9b99a !important;
}

/* ── 8. Liens dans le contenu — marine ── */
#mw-content-text a,
.mw-body-content a,
.mw-parser-output a {
    color: #1a2040;
}

#mw-content-text a:visited,
.mw-body-content a:visited {
    color: #2e3a6e;
}

#mw-content-text a:hover,
.mw-body-content a:hover {
    color: #cc2020;
    text-decoration: underline;
}

/* Pages non créées : rouge */
#mw-content-text a.new,
.mw-body-content a.new {
    color: #cc2020 !important;
}

/* ── 9. Onglets (Lire / Modifier / Historique) ── */
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
    color: #555 !important;
}

.vector-menu-tabs .selected a,
.vector-menu-tabs-legacy .selected a {
    color: #cc2020 !important;
    border-bottom: 2px solid #cc2020 !important;
}

/* ── 10. Liens [modifier] de section ── */
.mw-editsection a {
    color: #1a2040 !important;
    font-size: 0.85em;
}

/* ── 11. Titres ── */
.firstHeading, h1.firstHeading {
    color: #1a2040;
    border-bottom: 2px solid #cc2020;
    padding-bottom: 0.2em;
}

#mw-content-text h2, .mw-body-content h2 {
    border-bottom: 1px solid #cc2020;
    color: #1a2040;
}

#mw-content-text h3, .mw-body-content h3 {
    color: #1a2040;
}

/* ── 12. Boutons ── */
.mw-ui-button.mw-ui-progressive,
.oo-ui-buttonElement-button.oo-ui-flaggedElement-progressive {
    background-color: #cc2020 !important;
    border-color: #cc2020 !important;
    color: #ffffff !important;
}

/* ── 13. Tables ── */
.wikitable > tr > th, .wikitable > * > tr > th {
    background-color: #1a2040;
    color: #ffffff;
    border-color: #cc2020;
}

.wikitable > tr > td, .wikitable > * > tr > td {
    border-color: #c9b99a;
    background-color: #ffffff;
    color: #202122;
}

/* ── 14. Catégories ── */
#catlinks {
    background-color: #f5f0e8 !important;
    border-color: #c9b99a !important;
    color: #1a2040 !important;
}
#catlinks a { color: #1a2040 !important; }

/* ── 15. Footer ── */
#footer, .mw-footer {
    background-color: #1a2040 !important;
    border-top: 2px solid #cc2020 !important;
    color: #c9b99a !important;
}
#footer a, .mw-footer a { color: #c9b99a !important; }
#footer a:hover, .mw-footer a:hover { color: #ffffff !important; }