MediaWiki:Common.css: Difference between revisions

From The Jadnix Codex

No edit summary
No edit summary
Line 64: Line 64:


/* ============================================================
/* ============================================================
   SPLASH SCREEN OVERRIDE (Target: "Warning" Page)
   NUCLEAR SPLASH SCREEN (Covers Everything)
   ============================================================ */
   ============================================================ */


/* 1. HIDE THE INTERFACE on the Warning Page */
/* Only apply this on the Warning page */
body.page-Warning .mw-header,
body.page-Warning #mw-site-navigation,
body.page-Warning .mw-footer,
body.page-Warning .mw-page-header,
body.page-Warning #mw-related-navigation {
    display: none !important;
}
 
/* 2. THE VOID (Background) */
body.page-Warning {
body.page-Warning {
    background-color: #0a0a0f !important;
     overflow: hidden; /* Stop scrolling */
     overflow: hidden; /* Prevent scrolling */
}
}


/* 3. CENTER THE CONTENT (The Fix) */
/* Force the Splash Container to cover the WHOLE screen */
/* We force the body content to float in the center of the screen */
body.page-Warning .splash-container {
body.page-Warning .mw-body {
     position: fixed !important;
     position: fixed;
     top: 0;
     top: 50%;
     left: 0;
     left: 50%;
     width: 100vw; /* Full Viewport Width */
    transform: translate(-50%, -50%);
     height: 100vh; /* Full Viewport Height */
     width: 100%;
     background-color: #0a0a0f; /* Void Black Background */
     height: auto;
     z-index: 99999; /* Sit on top of EVERYTHING */
     background: transparent !important;
    border: none !important;
     box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
      
      
     /* Flex alignment to be safe */
     /* Center the content */
     display: flex;
     display: flex;
    flex-direction: column;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
   
    /* Remove borders/margins from the wrapper itself */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
}


/* 4. THE SPLASH BOX ITSELF */
/* Re-style the inner content so it looks like a box again */
.splash-container {
/* We wrap the content in a pseudo-element or just style the children */
    width: 90%;
/* Actually, let's just style the text elements to look nice in the void */
    max-width: 600px;
 
    background: #0a0a0f;
body.page-Warning .splash-title {
    border: 1px solid #333;
     font-size: 3em;
    border-top: 4px solid #a020f0; /* Jadnix Purple */
     margin-bottom: 20px;
    padding: 40px;
     text-align: center;
     box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
}


/* (Keep your existing Text/Button CSS below here...) */
/* Hide the Wiki UI elements just in case they peek through */
.splash-title {
body.page-Warning .mw-header,
    font-family: 'Consolas', monospace;
body.page-Warning #mw-site-navigation,
    font-size: 2.5em;
body.page-Warning footer {
    color: #fff;
     opacity: 0;
    margin-bottom: 10px;
     pointer-events: none;
    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;
}
.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;
}
}

Revision as of 21:30, 8 February 2026

/* ============================================================
   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;
}