MediaWiki:Common.css

Revision as of 00:22, 12 March 2026 by LennLeaf (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
   ANISA SKIN - DARK MODE OVERRIDES (HIGH PRIORITY)
   ============================================================ */

/* 1. FORCE SEARCH BAR VISIBILITY */
/* This targets the input field specifically to ensure text is white */
body.dark-mode input#searchInput,
body.dark-mode #searchform input,
body.dark-mode .mw-searchInput {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #3399ff !important;
}

/* Fix for the text you type in the search box */
body.dark-mode #searchInput::placeholder {
    color: #aaaaaa !important;
}

/* 2. FORCE ALERTS & NOTICES VISIBILITY */
/* This targets the Echo notification badges directly */
body.dark-mode .mw-echo-notifications-badge,
body.dark-mode #pt-notifications-notice .mw-echo-notifications-badge,
body.dark-mode #pt-notifications-alert .mw-echo-notifications-badge {
    filter: invert(1) brightness(1.8) !important;
    background-color: transparent !important;
}

/* 3. FORCE VISIBLE CONTENT BORDERS */
/* This targets the main content wrapper lines that surround your pages */
body.dark-mode #mw-content-block,
body.dark-mode #content,
body.dark-mode .mw-body,
body.dark-mode .anisa-post,
body.dark-mode .anisa-main-container {
    border: 1px solid #555555 !important;
}

/* 4. REPAIRING ICONS */
/* Ensures all navigation icons are visible */
body.dark-mode .mw-ui-icon,
body.dark-mode .vector-icon,
body.dark-mode span.mw-ui-icon {
    filter: invert(1) !important;
}

/* ============================================================
   PORTABLE INFOBOX - KH STYLE (UNCHANGED)
   ============================================================ */

body.mediawiki .portable-infobox {
    background-color: #ffffff !important;
    border: 2px solid #003366 !important; 
    width: 320px !important;
    float: right !important;
    margin: 0 0 1em 1em !important;
    font-family: "Georgia", serif !important;
}

body.dark-mode .portable-infobox {
    background-color: #2d2d2d !important;
    border-color: #3399ff !important;
}

body.mediawiki .pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px !important;
}

body.dark-mode .pi-title {
    background-color: #3399ff !important;
    color: #000000 !important;
}

body.mediawiki .pi-header {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 8px 0 !important;
    border-top: 1px solid #333 !important;
}

body.dark-mode .pi-header {
    background-color: #000000 !important;
    border-top-color: #3399ff !important;
}

body.mediawiki .pi-data-label {
    background-color: #f2f2f2 !important;
    color: #333333 !important;
}

body.dark-mode .pi-data-label {
    background-color: #3d3d3d !important;
    color: #e0e0e0 !important;
}

body.mediawiki .pi-data-value {
    background-color: #ffffff !important;
    color: #333333 !important;
}

body.dark-mode .pi-data-value {
    background-color: #262626 !important;
    color: #e0e0e0 !important;
}