MediaWiki:Common.css

From The Jadnix Codex

Revision as of 21:34, 8 February 2026 by Sinvrh (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.
/* ============================================================
   JADNIX CODEX: CITIZEN OVERRIDE
   ============================================================ */

:root {
    /* 1. THE VOID (Backgrounds) */
    --background-color-base: #0a0a0f;       /* Deep Void Black */
    --background-color-surface: #13131a;    /* Slightly lighter for cards */
    --background-color-overlay: #1a1a24;    /* Headers */

    /* 2. THE TEXT */
    --color-base: #d1d1d1;                  /* Light Gray text */
    
    /* 3. THE FACTIONS (Colors) */
    --color-primary: #a020f0;               /* JADNIX PURPLE */
    --color-primary--hover: #b040ff;        
    --color-primary--active: #9010e0;       

    --color-secondary: #00ff9f;             /* JADNIX GREEN */

    /* 4. THE FONT (Monospace/Terminal Style) */
    --font-family-system: 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-family-header: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ============================================================
   CUSTOM VISUALS
   ============================================================ */

/* 5. THE SCANLINES (Your original code!) */
body::before {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg, 
        rgba(0, 0, 0, 0.15) 0px, 
        rgba(0, 0, 0, 0.15) 1px, 
        transparent 1px, 
        transparent 2px
    );
    z-index: 9999;
    pointer-events: none; 
}

/* 6. LINK BEHAVIOR (Green Glow on Hover) */
a { transition: all 0.2s ease-in-out; }
a:hover {
    color: var(--color-secondary) !important;
    text-shadow: 0 0 8px var(--color-secondary);
    text-decoration: none;
}

/* 7. HEADER BORDER */
.mw-header {
    border-bottom: 3px solid var(--color-primary);
}

/* 8. LOGO TINT (Makes the default logo purple-ish until you replace it) */
.mw-logo-icon { filter: hue-rotate(260deg); }

/* ============================================================
   NUCLEAR SPLASH SCREEN V2 (Citizen Skin Fix)
   ============================================================ */

/* 1. HIDE ALL CITIZEN UI ELEMENTS ON WARNING PAGE */
/* We list every possible name Citizen uses for headers/footers */
body.page-Warning header,
body.page-Warning footer,
body.page-Warning #mw-header-container,
body.page-Warning #mw-site-navigation,
body.page-Warning .mw-page-header,       /* The Edit Button area */
body.page-Warning .citizen-header,
body.page-Warning .citizen-footer,
body.page-Warning #mw-related-navigation,
body.page-Warning .citizen-drawer {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. THE FULL SCREEN OVERLAY */
body.page-Warning .splash-container {
    /* Force it to be fixed to the screen */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    
    /* Ensure the background is SOLID black so nothing peeks through */
    background-color: #0a0a0f !important;
    
    /* Maximum Z-Index possible in a browser */
    z-index: 2147483647 !important; 
    
    /* Centering Magic (Flexbox) */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Reset margins so it touches the edges */
    margin: 0 !important;
    padding: 20px !important; /* Padding for mobile screens */
    box-sizing: border-box !important;
}

/* 3. THE INNER BOX (Visual Style) */
/* We wrap the text in a visual box so it looks good on mobile */
.splash-inner-wrapper {
    width: 100%;
    max-width: 500px;
    border: 1px solid #333;
    border-top: 4px solid #a020f0;
    background: #13131a; /* Slightly lighter than void */
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
}

/* 4. TEXT STYLING */
.splash-title {
    font-family: 'Consolas', monospace;
    font-size: 2em; /* Smaller for mobile safety */
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
}

.splash-subtitle {
    color: #a020f0;
    font-size: 0.8em;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.splash-btn {
    display: inline-block;
    border: 1px solid #a020f0;
    padding: 12px 24px;
    color: #fff !important; /* Force white text */
    text-decoration: none;
    font-family: 'Consolas', monospace;
    margin: 20px 0;
    transition: all 0.3s;
}

.splash-btn:hover {
    background: #a020f0;
    color: #000 !important;
    box-shadow: 0 0 15px #a020f0;
}