MediaWiki:Common.css

From The Jadnix Codex

Revision as of 21:30, 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 (Covers Everything)
   ============================================================ */

/* Only apply this on the Warning page */
body.page-Warning {
    overflow: hidden; /* Stop scrolling */
}

/* Force the Splash Container to cover the WHOLE screen */
body.page-Warning .splash-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw; /* Full Viewport Width */
    height: 100vh; /* Full Viewport Height */
    background-color: #0a0a0f; /* Void Black Background */
    z-index: 99999; /* Sit on top of EVERYTHING */
    
    /* Center the content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Remove borders/margins from the wrapper itself */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Re-style the inner content so it looks like a box again */
/* We wrap the content in a pseudo-element or just style the children */
/* Actually, let's just style the text elements to look nice in the void */

body.page-Warning .splash-title {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Hide the Wiki UI elements just in case they peek through */
body.page-Warning .mw-header,
body.page-Warning #mw-site-navigation,
body.page-Warning footer {
    opacity: 0;
    pointer-events: none;
}