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

De WikiRuches
(Thème Ruches v3 — fond marine global, contenu blanc, liens marine)
(Thème Ruches v4 — variables CSS, sidebars marine, Admin rouge)
Ligne 1 : Ligne 1 :
/* ============================================================
/* ============================================================
   Thème Ruches v3
   Thème Ruches v4
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   Marine #1a2040 | Rouge #cc2020 | Beige #c9b99a
   ============================================================ */
   ============================================================ */


/* ── Variables progressives Vector 2022 ── */
/* ── Variables Vector 2022 — marine pour le chrome ── */
:root {
:root {
    --background-color-base:                #1a2040;
    --background-color-neutral:            #1e2850;
    --background-color-interactive:        rgba(255,255,255,0.07);
    --background-color-interactive-subtle:  rgba(255,255,255,0.04);
    --color-base:                          #c9b99a;
    --color-subtle:                        #a09882;
    --border-color-base:                    rgba(201,185,154,0.25);
     --color-progressive:                    #1a2040;
     --color-progressive:                    #1a2040;
     --color-progressive--hover:            #2e3a6e;
     --color-progressive--hover:            #2e3a6e;
    --color-progressive--active:            #0f1428;
    --color-progressive--focus:            #1a2040;
     --background-color-progressive:        #cc2020;
     --background-color-progressive:        #cc2020;
     --background-color-progressive--hover:  #a01818;
     --background-color-progressive--hover:  #a01818;
}
}


/* ── Stratégie : fond global marine, contenu blanc ── */
/* ── Restaurer blanc + texte normal pour la zone de contenu ── */
body,
.mw-page-container,
.mw-page-container-inner {
    background-color: #1a2040 !important;
}
 
/* Whitewash la zone de contenu uniquement */
.mw-content-container,
.mw-content-container,
.mw-body,
.mw-body,
Ligne 27 : Ligne 25 :
#mw-content-text {
#mw-content-text {
     background-color: #ffffff !important;
     background-color: #ffffff !important;
    --background-color-base:    #ffffff !important;
    --background-color-neutral: #f8f9fa !important;
    --color-base:              #202122 !important;
    --color-subtle:            #54595d !important;
    --border-color-base:        #a2a9b1 !important;
}
}


Ligne 37 : Ligne 40 :
}
}


/* ── Texte et liens dans les sidebars ── */
/* ── Zone Admin (en haut à droite) — 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,
.vector-user-links .mw-userpage-usertoollinks {
    color: #ffffff !important;
}
 
.vector-user-links a:hover,
.mw-portlet-personal a:hover {
    color: #ffe0e0 !important;
    text-decoration: none !important;
}
 
/* ── Texte sidebar ── */
.mw-portlet h3,
.mw-portlet h3,
.mw-portlet-heading,
.mw-portlet-heading,
.vector-menu-heading,
.vector-menu-heading,
.vector-menu-heading-label,
.vector-menu-heading-label,
.mw-portlet-nav h3,
#mw-panel .portal h3,
#mw-panel .portal h3 {
.vector-pinnable-header-label {
     color: #c9b99a !important;
     color: #c9b99a !important;
     border-bottom: 1px solid rgba(201,185,154,0.3) !important;
     border-bottom: 1px solid rgba(201,185,154,0.3) !important;
Ligne 49 : Ligne 76 :
}
}


/* Liens sidebar (navigation, TOC, outils) */
/* Liens sidebar */
.mw-portlet a,
.mw-portlet a,
.vector-toc a,
.vector-toc a,
#mw-panel a,
#mw-panel a,
.mw-table-of-contents-container a,
.mw-table-of-contents-container a,
.vector-sidebar a {
.vector-sidebar a,
.vector-pinnable-header a {
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}
Ligne 60 : Ligne 88 :
.mw-portlet a:hover,
.mw-portlet a:hover,
.vector-toc a:hover,
.vector-toc a:hover,
#mw-panel 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;
     text-decoration: none !important;
}
}


/* TOC entrée active */
.vector-toc .vector-toc-link--active {
.vector-toc .vector-toc-link--active {
     color: #cc2020 !important;
     color: #cc2020 !important;
     font-weight: bold;
     font-weight: bold;
}
/* Boutons [masquer] et texte utilitaire dans les sidebars */
.mw-portlet-hide,
.mw-portlet-body,
.vector-pinnable-header-label {
    color: #c9b99a !important;
}
}


Ligne 98 : Ligne 116 :
}
}


/* Liens rouges = pages non créées (garder rouge pour les distinguer) */
/* Liens rouges = pages non créées */
#mw-content-text a.new,
#mw-content-text a.new,
.mw-body-content a.new {
.mw-body-content a.new {
Ligne 104 : Ligne 122 :
}
}


#mw-content-text a.new:hover,
/* ── Onglets (Lire / Modifier / Historique) ── */
.mw-body-content a.new:hover {
    color: #a01818 !important;
}
 
/* ── Onglets de la page (Lire / Modifier / Historique) ── */
.vector-menu-tabs a,
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
.vector-menu-tabs-legacy a {
Ligne 119 : Ligne 132 :
     color: #cc2020 !important;
     color: #cc2020 !important;
     border-bottom: 2px solid #cc2020 !important;
     border-bottom: 2px solid #cc2020 !important;
}
/* ── Liens [modifier] de section ── */
.mw-editsection a {
    color: #1a2040 !important;
    font-size: 0.85em;
}
}


Ligne 134 : Ligne 141 :
}
}


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


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


/* ── Boutons ── */
/* ── Boutons ── */
Ligne 160 : Ligne 168 :


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


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


/* ── Footer ── */
/* ── Footer ── */
Ligne 189 : Ligne 193 :
     color: #c9b99a !important;
     color: #c9b99a !important;
}
}
 
#footer a, .mw-footer a { color: #c9b99a !important; }
#footer a, .mw-footer a {
#footer a:hover, .mw-footer a:hover { color: #ffffff !important; }
    color: #c9b99a !important;
}
 
#footer a:hover, .mw-footer a:hover {
    color: #ffffff !important;
}

Version du 19 juin 2026 à 20:40

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

/* ── Variables Vector 2022 — marine pour le chrome ── */
:root {
    --background-color-base:                #1a2040;
    --background-color-neutral:             #1e2850;
    --background-color-interactive:         rgba(255,255,255,0.07);
    --background-color-interactive-subtle:  rgba(255,255,255,0.04);
    --color-base:                           #c9b99a;
    --color-subtle:                         #a09882;
    --border-color-base:                    rgba(201,185,154,0.25);
    --color-progressive:                    #1a2040;
    --color-progressive--hover:             #2e3a6e;
    --background-color-progressive:         #cc2020;
    --background-color-progressive--hover:  #a01818;
}

/* ── Restaurer blanc + texte normal pour la zone de contenu ── */
.mw-content-container,
.mw-body,
#content,
#mw-content-text {
    background-color: #ffffff !important;
    --background-color-base:    #ffffff !important;
    --background-color-neutral: #f8f9fa !important;
    --color-base:               #202122 !important;
    --color-subtle:             #54595d !important;
    --border-color-base:        #a2a9b1 !important;
}

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

/* ── Zone Admin (en haut à droite) — 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,
.vector-user-links .mw-userpage-usertoollinks {
    color: #ffffff !important;
}

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

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

/* Liens sidebar */
.mw-portlet a,
.vector-toc a,
#mw-panel a,
.mw-table-of-contents-container a,
.vector-sidebar a,
.vector-pinnable-header a {
    color: #c9b99a !important;
}

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

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

/* ── 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 */
#mw-content-text a.new,
.mw-body-content a.new {
    color: #cc2020 !important;
}

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

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

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

/* ── 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;
    background-color: #ffffff;
    color: #202122;
}

/* ── Catégories ── */
#catlinks {
    background-color: #f5f0e8 !important;
    border-color: #c9b99a !important;
    color: #1a2040 !important;
}
#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; }