MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   ANISA SKIN - DARK MODE NUCLEAR OPTION
   ANISA SKIN - VARIABLE HIJACK & EDIT PAGE FIX
   ============================================================ */
   ============================================================ */


/* 1. UNIVERSAL TEXT & BG OVERRIDE */
/* 1. OVERWRITING ANISA'S INTERNAL VARIABLES */
/* This forces EVERY element inside dark-mode to use light text */
body.dark-mode {
body.dark-mode,
    --anisa-bg: #121212 !important;
body.dark-mode * {
    --anisa-content-bg: #1a1a1a !important;
     color: #e0e0e0; /* Default light grey text */
     --anisa-border: #3399ff !important; /* The Blue Glow */
    --anisa-text: #e0e0e0 !important;
    --anisa-link: #3399ff !important;
}
}


/* 2. THE BACKGROUNDS & BOXES */
/* 2. THE EDIT PAGE & SEARCH BAR (The "Nuclear" Text Fix) */
body.dark-mode,
/* Targets the search box, the big edit box, and all inputs */
body.dark-mode #mw-wrapper,
body.dark-mode #mw-content-block,
body.dark-mode .anisa-main-container,
body.dark-mode .card,
body.dark-mode .anisa-post {
    background-color: #121212 !important;
    background-image: none !important;
}
 
/* 3. THE "BLUE GLOW" BORDERS */
/* This forces the blue lines around ALL page content containers */
body.dark-mode #content,
body.dark-mode .mw-body,
body.dark-mode .anisa-post,
body.dark-mode .anisa-page-content,
body.dark-mode #mw-panel,
body.dark-mode #mw-head {
    border: 1px solid #3399ff !important;
    box-shadow: 0 0 5px rgba(51, 153, 255, 0.2) !important;
}
 
/* 4. SEARCH BAR & EDIT BOX (The "White Text" Fix) */
body.dark-mode input,  
body.dark-mode input,  
body.dark-mode textarea,  
body.dark-mode textarea,  
body.dark-mode #wpTextbox1,  
body.dark-mode #wpTextbox1,
body.dark-mode .mw-editfont-monospace {
body.dark-mode .ace_editor, /* If you use the CodeEditor extension */
body.dark-mode #searchInput {
     background-color: #222222 !important;
     background-color: #222222 !important;
     color: #ffffff !important;
     color: #ffffff !important;
     border: 1px solid #3399ff !important;
     border: 1px solid #3399ff !important;
     -webkit-text-fill-color: #ffffff !important;
     -webkit-text-fill-color: #ffffff !important; /* Force search text visibility */
}
}


/* 5. ALERTS, NOTICES & ICONS */
/* 3. ALERTS & NOTICES (Specific Selectors) */
body.dark-mode .mw-echo-notifications-badge,
body.dark-mode .mw-echo-notifications-badge,
body.dark-mode .mw-ui-icon,
body.dark-mode #pt-notifications-notice a,
body.dark-mode .vector-icon {
body.dark-mode #pt-notifications-alert a {
     filter: invert(1) brightness(2) !important;
     filter: invert(1) brightness(2) !important;
}
}


/* 6. LINKS & HEADERS */
/* 4. THE BLUE LINES (Page Structure) */
body.dark-mode a { color: #3399ff !important; }
/* We target the specific 'card' and 'post' classes Anisa uses for content */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
body.dark-mode .anisa-post,
    color: #3399ff !important;
body.dark-mode .anisa-page-content,
    border-bottom: 2px solid #3399ff !important;
body.dark-mode .card,
}
body.dark-mode #content,
 
body.dark-mode .mw-body {
/* ============================================================
     background-color: #1a1a1a !important;
  PORTABLE INFOBOX - KH STYLE
     border: 2px solid #3399ff !important; /* Thicker blue lines for visibility */
  ============================================================ */
     box-shadow: 0 0 10px rgba(51, 153, 255, 0.3) !important;
 
body.mediawiki .portable-infobox {
     background-color: #ffffff !important;
     border: 2px solid #003366 !important;
     width: 320px !important;
    float: right;
    margin: 0 0 1em 1em;
}
}


/* 5. KH INFOBOX - SYNCED WITH DARK MODE */
body.dark-mode .portable-infobox {
body.dark-mode .portable-infobox {
     background-color: #1a1a1a !important;
     background-color: #1a1a1a !important;
     border-color: #3399ff !important;
     border: 2px solid #3399ff !important;
}
}


Line 82: Line 57:
body.dark-mode .pi-header {
body.dark-mode .pi-header {
     background-color: #000000 !important;
     background-color: #000000 !important;
}
     color: #3399ff !important;
 
body.dark-mode .pi-data-label {
     background-color: #333333 !important;
}
 
body.dark-mode .pi-data-value {
    background-color: #1a1a1a !important;
}
}

Revision as of 00:50, 12 March 2026

/* ============================================================
   ANISA SKIN - VARIABLE HIJACK & EDIT PAGE FIX
   ============================================================ */

/* 1. OVERWRITING ANISA'S INTERNAL VARIABLES */
body.dark-mode {
    --anisa-bg: #121212 !important;
    --anisa-content-bg: #1a1a1a !important;
    --anisa-border: #3399ff !important; /* The Blue Glow */
    --anisa-text: #e0e0e0 !important;
    --anisa-link: #3399ff !important;
}

/* 2. THE EDIT PAGE & SEARCH BAR (The "Nuclear" Text Fix) */
/* Targets the search box, the big edit box, and all inputs */
body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode #wpTextbox1,
body.dark-mode .ace_editor, /* If you use the CodeEditor extension */
body.dark-mode #searchInput {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #3399ff !important;
    -webkit-text-fill-color: #ffffff !important; /* Force search text visibility */
}

/* 3. ALERTS & NOTICES (Specific Selectors) */
body.dark-mode .mw-echo-notifications-badge,
body.dark-mode #pt-notifications-notice a,
body.dark-mode #pt-notifications-alert a {
    filter: invert(1) brightness(2) !important;
}

/* 4. THE BLUE LINES (Page Structure) */
/* We target the specific 'card' and 'post' classes Anisa uses for content */
body.dark-mode .anisa-post,
body.dark-mode .anisa-page-content,
body.dark-mode .card,
body.dark-mode #content,
body.dark-mode .mw-body {
    background-color: #1a1a1a !important;
    border: 2px solid #3399ff !important; /* Thicker blue lines for visibility */
    box-shadow: 0 0 10px rgba(51, 153, 255, 0.3) !important;
}

/* 5. KH INFOBOX - SYNCED WITH DARK MODE */
body.dark-mode .portable-infobox {
    background-color: #1a1a1a !important;
    border: 2px solid #3399ff !important;
}

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

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