MediaWiki:Common.css: Difference between revisions

From The Jadnix Codex

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


/* ============================================================
/* ============================================================
   MAIN PAGE OVERRIDE (The Splash Screen)
   SPLASH SCREEN OVERRIDE (Target: "Warning" Page)
   ============================================================ */
   ============================================================ */


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


/* 2. CENTER EVERYTHING */
/* 2. THE VOID (Background) */
body.page-Main_Page .mw-body {
body.page-Warning {
     background-color: transparent !important;
    background-color: #0a0a0f !important;
    overflow: hidden; /* Prevent scrolling */
}
 
/* 3. CENTER THE CONTENT (The Fix) */
/* We force the body content to float in the center of the screen */
body.page-Warning .mw-body {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
     background: transparent !important;
     border: none !important;
     border: none !important;
     box-shadow: none !important;
     box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
      
      
     /* Centering Magic */
     /* Flex alignment to be safe */
     display: flex;
     display: flex;
    flex-direction: column;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
    min-height: 80vh; /* Takes up full screen height */
}
}


/* 3. THE SPLASH BOX ITSELF */
/* 4. THE SPLASH BOX ITSELF */
.splash-container {
.splash-container {
     width: 100%;
     width: 90%;
     max-width: 600px;
     max-width: 600px;
     background: #0a0a0f;
     background: #0a0a0f;
Line 99: Line 112:
     padding: 40px;
     padding: 40px;
     text-align: center;
     text-align: center;
    position: relative;
     box-shadow: 0 0 50px rgba(0,0,0,0.8);
     box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
}


/* 4. THE GLOWING TEXT */
/* (Keep your existing Text/Button CSS below here...) */
.splash-title {
.splash-title {
     font-family: 'Consolas', monospace;
     font-family: 'Consolas', monospace;
Line 111: Line 123:
     text-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
     text-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
}
}
.splash-subtitle {
.splash-subtitle {
     color: #a020f0;
     color: #a020f0;
Line 119: Line 130:
     text-transform: uppercase;
     text-transform: uppercase;
}
}
.splash-warning {
.splash-warning {
     color: #666;
     color: #666;
Line 127: Line 137:
     margin-top: 30px;
     margin-top: 30px;
}
}
/* 5. THE BUTTON */
.splash-btn {
.splash-btn {
     display: inline-block;
     display: inline-block;

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

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

/* 1. HIDE THE INTERFACE 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 {
    background-color: #0a0a0f !important;
    overflow: hidden; /* Prevent scrolling */
}

/* 3. CENTER THE CONTENT (The Fix) */
/* We force the body content to float in the center of the screen */
body.page-Warning .mw-body {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Flex alignment to be safe */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* (Keep your existing Text/Button CSS below here...) */
.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;
}
.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;
}