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

De WikiRuches
(Thème couleur Ruches (marine #1a2040, rouge #cc2020, beige #c9b99a))
 
(Thème Ruches v3 — fond marine global, contenu blanc, liens marine)
Ligne 1 : Ligne 1 :
/* ============================================================
/* ============================================================
   Thème Ruches — harmonisation avec ruches.org
   Thème Ruches v3
   Palette : Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   ============================================================ */
   ============================================================ */


/* ── Variables progressives Vector 2022 ── */
/* ── Variables progressives Vector 2022 ── */
:root {
:root {
     --color-progressive:         #cc2020;
     --color-progressive:                   #1a2040;
     --color-progressive--hover:   #a01818;
     --color-progressive--hover:             #2e3a6e;
     --color-progressive--active: #8a1414;
     --color-progressive--active:           #0f1428;
     --color-progressive--focus:   #cc2020;
     --color-progressive--focus:             #1a2040;
     --background-color-progressive:        #cc2020;
     --background-color-progressive:        #cc2020;
     --background-color-progressive--hover:  #a01818;
     --background-color-progressive--hover:  #a01818;
    --background-color-progressive--active: #8a1414;
}
 
/* ── Stratégie : fond global marine, contenu blanc ── */
body,
.mw-page-container,
.mw-page-container-inner {
    background-color: #1a2040 !important;
}
 
/* Whitewash la zone de contenu uniquement */
.mw-content-container,
.mw-body,
#content,
#mw-content-text {
    background-color: #ffffff !important;
}
}


Ligne 23 : Ligne 37 :
}
}


/* Logo texte */
/* ── Texte et liens dans les sidebars ── */
.mw-wiki-logo,
.mw-portlet h3,
#p-logo a {
.mw-portlet-heading,
     color: #ffffff !important;
.vector-menu-heading,
.vector-menu-heading-label,
.mw-portlet-nav h3,
#mw-panel .portal h3 {
     color: #c9b99a !important;
    border-bottom: 1px solid rgba(201,185,154,0.3) !important;
    background: transparent !important;
}
}


/* ── Navigation principale (onglets du haut) ── */
/* Liens sidebar (navigation, TOC, outils) */
.vector-menu-tabs-legacy .selected a,
.mw-portlet a,
.vector-menu-tabs .selected a {
.vector-toc a,
    color: #cc2020 !important;
#mw-panel a,
    border-bottom: 2px solid #cc2020 !important;
.mw-table-of-contents-container a,
}
.vector-sidebar a {
 
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}


.vector-menu-tabs a:hover,
.mw-portlet a:hover,
.vector-menu-tabs-legacy a:hover {
.vector-toc a:hover,
#mw-panel a:hover,
.mw-table-of-contents-container a:hover,
.vector-sidebar a:hover {
     color: #ffffff !important;
     color: #ffffff !important;
    text-decoration: none !important;
}
}


/* ── Outils de page (Lire, Modifier, Historique) ── */
/* TOC entrée active */
#p-views .selected a {
.vector-toc .vector-toc-link--active {
     color: #cc2020 !important;
     color: #cc2020 !important;
     border-bottom: 2px solid #cc2020;
     font-weight: bold;
}
 
/* ── Barre de recherche ── */
.vector-search-box-input:focus,
.cdx-text-input__input:focus {
    border-color: #cc2020 !important;
    outline: 1px solid #cc2020 !important;
    box-shadow: inset 0 0 0 1px #cc2020 !important;
}
 
/* ── Sidebar gauche ── */
#mw-panel,
.mw-sidebar,
.vector-sidebar,
.vector-page-sidebar {
    background-color: #1a2040 !important;
}
 
.vector-menu-heading,
#mw-panel .portal h3,
.vector-sidebar-inner h3,
.vector-menu-heading-label {
    color: #c9b99a !important;
    border-bottom: 1px solid rgba(201, 185, 154, 0.3) !important;
}
}


#mw-panel .portal a,
/* Boutons [masquer] et texte utilitaire dans les sidebars */
.vector-sidebar a,
.mw-portlet-hide,
.vector-menu-content-list a,
.mw-portlet-body,
.mw-portlet a {
.vector-pinnable-header-label {
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}


#mw-panel .portal a:hover,
/* ── Liens dans le contenu — MARINE ── */
.vector-sidebar a:hover,
.vector-menu-content-list a:hover,
.mw-portlet a:hover {
    color: #ffffff !important;
    text-decoration: none;
}
 
/* ── Liens dans le contenu ── */
#mw-content-text a,
#mw-content-text a,
.mw-body-content a,
.mw-body-content a,
.mw-parser-output a {
.mw-parser-output a {
     color: #cc2020;
     color: #1a2040;
}
}


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


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


/* Liens de catégorie et spéciaux : rester lisibles */
/* Liens rouges = pages non créées (garder rouge pour les distinguer) */
#catlinks a,
#mw-content-text a.new,
.mw-body-content a.new {
    color: #cc2020 !important;
}
 
#mw-content-text a.new:hover,
.mw-body-content a.new:hover {
    color: #a01818 !important;
}
 
/* ── Onglets de la page (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;
}
 
/* ── Liens [modifier] de section ── */
.mw-editsection a {
.mw-editsection a {
     color: #cc2020 !important;
     color: #1a2040 !important;
    font-size: 0.85em;
}
}


/* ── Titres ── */
/* ── Titres ── */
.firstHeading,
.firstHeading, h1.firstHeading {
h1.firstHeading {
     color: #1a2040;
     color: #1a2040;
     border-bottom: 2px solid #cc2020;
     border-bottom: 2px solid #cc2020;
Ligne 134 : Ligne 145 :
}
}


/* ── Boutons progressifs (Enregistrer, Publier…) ── */
/* ── 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 148 : Ligne 159 :
}
}


/* ── Tables (wikitable) ── */
/* ── Tables ── */
.wikitable > tr > th,
.wikitable > tr > th,
.wikitable > * > tr > th {
.wikitable > * > tr > th {
Ligne 161 : Ligne 172 :
}
}


/* ── Boîtes de catégorie ── */
/* ── Catégories ── */
#catlinks {
#catlinks {
     background-color: #f5f0e8;
     background-color: #f5f0e8;
     border-color: #c9b99a;
     border-color: #c9b99a;
     color: #1a2040;
     color: #1a2040;
}
#catlinks a {
    color: #1a2040 !important;
}
}


/* ── Footer ── */
/* ── Footer ── */
#footer,
#footer, .mw-footer {
.mw-footer {
     background-color: #1a2040 !important;
     background-color: #1a2040 !important;
     border-top: 2px solid #cc2020 !important;
     border-top: 2px solid #cc2020 !important;
Ligne 176 : Ligne 190 :
}
}


#footer a,
#footer a, .mw-footer a {
.mw-footer a {
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}


#footer a:hover,
#footer a:hover, .mw-footer a:hover {
.mw-footer a:hover {
     color: #ffffff !important;
     color: #ffffff !important;
}
#footer li::before,
.mw-footer li::before {
    color: #cc2020;
}
/* ── Bandeau "section à compléter" et notices ── */
.mw-message-box-notice {
    border-left-color: #cc2020;
}
/* ── Tooltips ref (style cohérent) ── */
#ref-tooltip {
    border-color: #cc2020 !important;
    border-left: 3px solid #cc2020 !important;
}
}

Version du 19 juin 2026 à 19:37

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

/* ── Variables progressives Vector 2022 ── */
:root {
    --color-progressive:                    #1a2040;
    --color-progressive--hover:             #2e3a6e;
    --color-progressive--active:            #0f1428;
    --color-progressive--focus:             #1a2040;
    --background-color-progressive:         #cc2020;
    --background-color-progressive--hover:  #a01818;
}

/* ── Stratégie : fond global marine, contenu blanc ── */
body,
.mw-page-container,
.mw-page-container-inner {
    background-color: #1a2040 !important;
}

/* Whitewash la zone de contenu uniquement */
.mw-content-container,
.mw-body,
#content,
#mw-content-text {
    background-color: #ffffff !important;
}

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

/* ── Texte et liens dans les sidebars ── */
.mw-portlet h3,
.mw-portlet-heading,
.vector-menu-heading,
.vector-menu-heading-label,
.mw-portlet-nav h3,
#mw-panel .portal h3 {
    color: #c9b99a !important;
    border-bottom: 1px solid rgba(201,185,154,0.3) !important;
    background: transparent !important;
}

/* Liens sidebar (navigation, TOC, outils) */
.mw-portlet a,
.vector-toc a,
#mw-panel a,
.mw-table-of-contents-container a,
.vector-sidebar a {
    color: #c9b99a !important;
}

.mw-portlet a:hover,
.vector-toc a:hover,
#mw-panel a:hover,
.mw-table-of-contents-container a:hover,
.vector-sidebar a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* TOC entrée active */
.vector-toc .vector-toc-link--active {
    color: #cc2020 !important;
    font-weight: bold;
}

/* Boutons [masquer] et texte utilitaire dans les sidebars */
.mw-portlet-hide,
.mw-portlet-body,
.vector-pinnable-header-label {
    color: #c9b99a !important;
}

/* ── 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;
}

/* Liens rouges = pages non créées (garder rouge pour les distinguer) */
#mw-content-text a.new,
.mw-body-content a.new {
    color: #cc2020 !important;
}

#mw-content-text a.new:hover,
.mw-body-content a.new:hover {
    color: #a01818 !important;
}

/* ── Onglets de la page (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;
}

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

/* ── 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;
}

/* ── 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;
}

.mw-ui-button.mw-ui-progressive:hover,
.oo-ui-buttonElement-button.oo-ui-flaggedElement-progressive:hover {
    background-color: #a01818 !important;
    border-color: #a01818 !important;
}

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

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

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

#catlinks a {
    color: #1a2040 !important;
}

/* ── 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;
}