MediaWiki:Common.css

De WikiRuches
Version datée du 19 juin 2026 à 20:40 par Admin (discussion | contributions) (Thème Ruches v4 — variables CSS, sidebars marine, Admin rouge)

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
  • Opera : appuyez sur Ctrl + F5.
/* ============================================================
   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; }