MediaWiki:Common.css

From The Jadnix Codex

Revision as of 20:55, 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); }

/* ============================================================
   MAIN PAGE OVERRIDE (The Splash Screen)
   ============================================================ */

/* 1. HIDE THE WIKI UI (Only on Main Page) */
body.page-Main_Page .mw-header,         /* Top Bar */
body.page-Main_Page #mw-site-navigation,/* Sidebar */
body.page-Main_Page #mw-related-navigation, /* Table of Contents */
body.page-Main_Page .mw-page-header,    /* The words "Main Page" */
body.page-Main_Page .mw-footer {        /* Footer */
    display: none !important;
}

/* 2. CENTER EVERYTHING */
body.page-Main_Page .mw-body {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    /* Centering Magic */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Takes up full screen height */
}

/* 3. THE SPLASH BOX ITSELF */
.splash-container {
    width: 100%;
    max-width: 600px;
    background: #0a0a0f;
    border: 1px solid #333;
    border-top: 4px solid #a020f0; /* Jadnix Purple */
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 4. THE GLOWING TEXT */
.splash-title {
    font-family: 'Consolas', monospace;
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
}

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

.splash-warning {
    color: #666;
    font-size: 0.8em;
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 30px;
}

/* 5. THE BUTTON */
.splash-btn {
    display: inline-block;
    border: 1px solid #a020f0;
    padding: 15px 30px;
    color: #fff;
    font-family: 'Consolas', monospace;
    transition: all 0.3s ease;
}
.splash-btn:hover {
    background: #a020f0;
    color: #000;
    box-shadow: 0 0 20px #a020f0;
}