MediaWiki:Common.css: Difference between revisions

From The Jadnix Codex

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   JADNIX CODEX: MASTER STYLESHEET
   JADNIX CODEX: COSMOS EDITION
   ============================================================ */
   ============================================================ */


/* 1. FORCE DARK MODE (Cosmos defaults to light sometimes) */
:root {
:root {
    /* DEFAULT THEME (The Void) */
     --background-color: #0a0a0f;
     --background-color-base: #0a0a0f;
     --text-color: #d1d1d1;
     --background-color-surface: #13131a;
     --content-background: #13131a;
     --background-color-overlay: #1a1a24;
     --border-color: #333;
     --color-base: #d1d1d1;
}
   
 
    /* DEFAULT COLORS (The Still - Purple) */
body {
    --color-primary: #a020f0;
     background-color: #0a0a0f;
     --color-primary--hover: #b040ff;
     color: #d1d1d1;
     --color-primary--active: #9010e0;
     font-family: 'Consolas', monospace; /* Default Terminal Font */
     --color-secondary: #00ff9f; /* Global Green Highlight */
}


    /* FONTS */
/* 2. THE MAIN CONTENT BOX */
    --font-family-system: 'Consolas', 'Monaco', 'Courier New', monospace;
#content, .mw-body {
     --font-family-header: 'Consolas', 'Monaco', 'Courier New', monospace;
     background-color: #13131a;
      
     border: 1px solid #333;
    /* LAYOUT: KILL RIGHT SIDEBAR (Global) */
     color: #d1d1d1;
     --width-layout-sidebar-secondary: 0px !important;
}
}


/* ============================================================
/* 3. HEADERS */
  GLOBAL VISUALS
h1, h2, h3, h4, h5, h6 {
  ============================================================ */
    color: #fff;
    border-bottom: 1px solid #333;
    font-family: 'Consolas', monospace;
}


/* SCANLINES OVERLAY */
/* 4. SCANLINES OVERLAY (Keep this, it's cool) */
body::before {
body::before {
     content: " ";
     content: " ";
Line 42: Line 45:
     z-index: 9999;
     z-index: 9999;
     pointer-events: none;  
     pointer-events: none;  
}
/* LINK BEHAVIOR (Default Green Glow) */
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;
}
/* HEADERS & LOGO */
.mw-header { border-bottom: 3px solid var(--color-primary); }
.mw-logo-icon { filter: hue-rotate(260deg); }
/* KILL RIGHT SIDEBAR (The Heavy Fix) */
#mw-related-navigation,
.citizen-section-heading--toc {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
}
.citizen-body,
.citizen-body.citizen-body--toc-open {
    grid-template-columns: var(--width-layout-sidebar-primary) 1fr 0px !important;
    grid-template-areas: "sidebar-primary content ." !important;
}
.toc {
    display: table !important;
    float: none !important;
    margin-bottom: 1em !important;
}
}


/* ============================================================
/* ============================================================
   FACTION THEMES (Direct Target Method)
   FACTION THEMES (COSMOS VERSION)
   ============================================================ */
   ============================================================ */


/* --- 1. DEALERS (Gold) --- */
/* --- 1. DEALERS (Gold) --- */
body.theme-dealer {
body.theme-dealer #content,
     /* Page Bar */
body.theme-dealer .mw-body {
    --color-primary: #DAA520;
     border-left: 5px solid #DAA520; /* Gold Sidebar */
   
     box-shadow: -10px 0 20px -10px rgba(218, 165, 32, 0.2);
    /* Fonts */
     --font-family-system: 'Georgia', 'Times New Roman', serif;
    --font-family-header: 'Georgia', 'Times New Roman', serif;
}
}


/* BUTTONS: Force Background Color */
body.theme-dealer h1, body.theme-dealer h2, body.theme-dealer h3 {
body.theme-dealer #ca-edit a,
     color: #DAA520 !important;
body.theme-dealer #ca-view a,
     font-family: 'Georgia', serif;
body.theme-dealer #ca-history a,
     text-transform: uppercase;
body.theme-dealer #p-views li a,
body.theme-dealer .mw-ui-button.mw-ui-progressive,
body.theme-dealer .citizen-page-actions__item > a {
     background: #DAA520 !important;
     border-color: #DAA520 !important;
    color: #000000 !important;
     text-shadow: none !important;
}
}


/* LINKS */
body.theme-dealer a { color: #DAA520; }
body.theme-dealer a { color: #DAA520; }
body.theme-dealer a:hover {
body.theme-dealer a:hover { color: #FFD700; text-shadow: 0 0 5px #DAA520; }
    color: #FFD700 !important;
    text-shadow: 0 0 8px #FFD700 !important;
}


/* SIDE BAR */
/* Force Cosmos Buttons to Gold */
body.theme-dealer #mw-content-text {
body.theme-dealer .mw-ui-button {
     border-left: 6px solid #DAA520;
     background-color: #DAA520 !important;
     padding-left: 25px;
     color: #000 !important;
     background: linear-gradient(to right, rgba(218, 165, 32, 0.05), transparent 10%);
     border: none;
}
}




/* --- 2. SKIPPERS (Blue) --- */
/* --- 2. SKIPPERS (Blue) --- */
body.theme-skipper {
body.theme-skipper #content,
     --color-primary: #21b0cd;
body.theme-skipper .mw-body {
     --font-family-system: 'Consolas', 'Monaco', monospace;
     border-left: 5px solid #21b0cd; /* Blue Sidebar */
     box-shadow: -10px 0 20px -10px rgba(33, 176, 205, 0.2);
}
}


/* BUTTONS */
body.theme-skipper h1, body.theme-skipper h2, body.theme-skipper h3 {
body.theme-skipper #ca-edit a,
     color: #21b0cd !important;
body.theme-skipper #ca-view a,
     font-family: 'Consolas', monospace;
body.theme-skipper #ca-history a,
body.theme-skipper #p-views li a,
body.theme-skipper .mw-ui-button.mw-ui-progressive,
body.theme-skipper .citizen-page-actions__item > a {
     background: #21b0cd !important;
    border-color: #21b0cd !important;
     color: #ffffff !important;
    text-shadow: none !important;
}
}


/* LINKS */
body.theme-skipper a { color: #21b0cd; }
body.theme-skipper a { color: #21b0cd; }
body.theme-skipper a:hover {
body.theme-skipper a:hover { color: #00e5ff; text-shadow: 0 0 5px #21b0cd; }
    color: #00e5ff !important;
    text-shadow: 0 0 8px #00e5ff !important;
}


/* SIDE BAR */
/* Force Cosmos Buttons to Blue */
body.theme-skipper #mw-content-text {
body.theme-skipper .mw-ui-button {
     border-left: 6px solid #21b0cd;
     background-color: #21b0cd !important;
     padding-left: 25px;
    color: #fff !important;
     border: none;
}
}




/* --- 3. THE STILL (Purple) --- */
/* --- 3. THE STILL (Purple) --- */
body.theme-still {
body.theme-still #content,
     --color-primary: #a020f0;
body.theme-still .mw-body {
     --font-family-system: 'Consolas', 'Monaco', monospace;
     border-left: 5px solid #a020f0; /* Purple Sidebar */
     box-shadow: -10px 0 20px -10px rgba(160, 32, 240, 0.2);
}
}


/* BUTTONS */
body.theme-still h1, body.theme-still h2, body.theme-still h3 {
body.theme-still #ca-edit a,
     color: #a020f0 !important;
body.theme-still #ca-view a,
     font-family: 'Consolas', monospace;
body.theme-still #ca-history a,
body.theme-still #p-views li a,
body.theme-still .mw-ui-button.mw-ui-progressive,
body.theme-still .citizen-page-actions__item > a {
     background: #a020f0 !important;
    border-color: #a020f0 !important;
     color: #ffffff !important;
    text-shadow: none !important;
}
}


/* LINKS */
body.theme-still a { color: #b040ff; }
body.theme-still a { color: #a020f0; }
body.theme-still a:hover { color: #d080ff; text-shadow: 0 0 5px #a020f0; }
body.theme-still a:hover {
    color: #b040ff !important;
    text-shadow: 0 0 8px #b040ff !important;
}


/* SIDE BAR */
/* Force Cosmos Buttons to Purple */
body.theme-still #mw-content-text {
body.theme-still .mw-ui-button {
     border-left: 6px solid #a020f0;
     background-color: #a020f0 !important;
     padding-left: 25px;
    color: #fff !important;
     border: none;
}
}


Line 184: Line 123:
   COMPONENT: CRDD CALCULATOR
   COMPONENT: CRDD CALCULATOR
   ============================================================ */
   ============================================================ */
/* (Keep the exact same Calculator CSS as before, it works universally) */
#crdd-interface {
#crdd-interface {
     background-color: #0a0a0f;
     background-color: #0a0a0f;
Line 242: Line 182:
.crdd-rating-text { font-size: 2em; text-shadow: 0 0 10px currentColor; margin-top: 10px; }
.crdd-rating-text { font-size: 2em; text-shadow: 0 0 10px currentColor; margin-top: 10px; }


/* MOBILE RESPONSIVENESS FOR CRDD */
@media only screen and (max-width: 768px) {
@media only screen and (max-width: 768px) {
     .crdd-input-group {
     .crdd-input-group {
Line 258: Line 197:


/* ============================================================
/* ============================================================
   COMPONENT: SPLASH SCREEN (Warning Page)
   COMPONENT: SPLASH SCREEN (Warning Page - Cosmos Fix)
   ============================================================ */
   ============================================================ */
body.page-Warning header,
/* Cosmos uses 'nav' and '#cosmos-header' so we need to hide those */
body.page-Warning footer,
body.page-Warning nav,
body.page-Warning #mw-header-container,
body.page-Warning #cosmos-header,
body.page-Warning #mw-site-navigation,
body.page-Warning .cosmos-footer,
body.page-Warning .mw-page-header,
body.page-Warning #mw-head,
body.page-Warning .citizen-header,
body.page-Warning #mw-panel {
body.page-Warning .citizen-footer,
body.page-Warning #mw-related-navigation,
body.page-Warning .citizen-drawer {
     display: none !important;
     display: none !important;
     opacity: 0 !important;
     opacity: 0 !important;
     pointer-events: none !important;
     pointer-events: none !important;
}
}
body.page-Warning .splash-container {
body.page-Warning .splash-container {
     position: fixed !important;
     position: fixed !important;

Revision as of 16:30, 9 February 2026

/* ============================================================
   JADNIX CODEX: COSMOS EDITION
   ============================================================ */

/* 1. FORCE DARK MODE (Cosmos defaults to light sometimes) */
:root {
    --background-color: #0a0a0f;
    --text-color: #d1d1d1;
    --content-background: #13131a;
    --border-color: #333;
}

body {
    background-color: #0a0a0f;
    color: #d1d1d1;
    font-family: 'Consolas', monospace; /* Default Terminal Font */
}

/* 2. THE MAIN CONTENT BOX */
#content, .mw-body {
    background-color: #13131a;
    border: 1px solid #333;
    color: #d1d1d1;
}

/* 3. HEADERS */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    border-bottom: 1px solid #333;
    font-family: 'Consolas', monospace;
}

/* 4. SCANLINES OVERLAY (Keep this, it's cool) */
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; 
}

/* ============================================================
   FACTION THEMES (COSMOS VERSION)
   ============================================================ */

/* --- 1. DEALERS (Gold) --- */
body.theme-dealer #content,
body.theme-dealer .mw-body {
    border-left: 5px solid #DAA520; /* Gold Sidebar */
    box-shadow: -10px 0 20px -10px rgba(218, 165, 32, 0.2);
}

body.theme-dealer h1, body.theme-dealer h2, body.theme-dealer h3 {
    color: #DAA520 !important;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
}

body.theme-dealer a { color: #DAA520; }
body.theme-dealer a:hover { color: #FFD700; text-shadow: 0 0 5px #DAA520; }

/* Force Cosmos Buttons to Gold */
body.theme-dealer .mw-ui-button {
    background-color: #DAA520 !important;
    color: #000 !important;
    border: none;
}


/* --- 2. SKIPPERS (Blue) --- */
body.theme-skipper #content,
body.theme-skipper .mw-body {
    border-left: 5px solid #21b0cd; /* Blue Sidebar */
    box-shadow: -10px 0 20px -10px rgba(33, 176, 205, 0.2);
}

body.theme-skipper h1, body.theme-skipper h2, body.theme-skipper h3 {
    color: #21b0cd !important;
    font-family: 'Consolas', monospace;
}

body.theme-skipper a { color: #21b0cd; }
body.theme-skipper a:hover { color: #00e5ff; text-shadow: 0 0 5px #21b0cd; }

/* Force Cosmos Buttons to Blue */
body.theme-skipper .mw-ui-button {
    background-color: #21b0cd !important;
    color: #fff !important;
    border: none;
}


/* --- 3. THE STILL (Purple) --- */
body.theme-still #content,
body.theme-still .mw-body {
    border-left: 5px solid #a020f0; /* Purple Sidebar */
    box-shadow: -10px 0 20px -10px rgba(160, 32, 240, 0.2);
}

body.theme-still h1, body.theme-still h2, body.theme-still h3 {
    color: #a020f0 !important;
    font-family: 'Consolas', monospace;
}

body.theme-still a { color: #b040ff; }
body.theme-still a:hover { color: #d080ff; text-shadow: 0 0 5px #a020f0; }

/* Force Cosmos Buttons to Purple */
body.theme-still .mw-ui-button {
    background-color: #a020f0 !important;
    color: #fff !important;
    border: none;
}

/* ============================================================
   COMPONENT: CRDD CALCULATOR
   ============================================================ */
/* (Keep the exact same Calculator CSS as before, it works universally) */
#crdd-interface {
    background-color: #0a0a0f;
    border: 2px solid #21b0cd;
    padding: 20px;
    font-family: 'Consolas', monospace;
    color: #21b0cd;
    box-shadow: 0 0 20px rgba(33, 176, 205, 0.2);
    margin-top: 20px;
    max-width: 800px;
}
.crdd-header {
    border-bottom: 1px dashed #21b0cd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: right;
    font-size: 0.8em;
    opacity: 0.8;
}
.crdd-section {
    margin-bottom: 30px;
    border: 1px solid #333;
    padding: 15px;
    background: #0f0f14;
}
.crdd-section-title {
    background: #21b0cd;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}
.crdd-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.crdd-input-group label { flex: 1; font-size: 0.9em; }
.crdd-range { flex: 2; margin: 0 15px; accent-color: #21b0cd; }
.crdd-value-display { width: 30px; text-align: right; font-weight: bold; }
.crdd-skip-label { display: block; margin-bottom: 15px; color: #666; font-size: 0.8em; cursor: pointer; }
#crdd-final-result {
    border-top: 2px solid #21b0cd;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0d1a1d;
}
.crdd-rating-text { font-size: 2em; text-shadow: 0 0 10px currentColor; margin-top: 10px; }

@media only screen and (max-width: 768px) {
    .crdd-input-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 25px !important;
        width: 100% !important;
    }
    .crdd-input-group label { width: 100% !important; margin-bottom: 10px !important; font-size: 1.2em !important; }
    .crdd-range { width: 100% !important; margin: 10px 0 !important; height: 40px !important; }
    .crdd-value-display { width: 100% !important; text-align: right !important; font-size: 1.2em !important; color: #fff !important; }
    #crdd-interface { padding: 10px !important; width: 100% !important; box-sizing: border-box !important; }
}

/* ============================================================
   COMPONENT: SPLASH SCREEN (Warning Page - Cosmos Fix)
   ============================================================ */
/* Cosmos uses 'nav' and '#cosmos-header' so we need to hide those */
body.page-Warning nav,
body.page-Warning #cosmos-header,
body.page-Warning .cosmos-footer,
body.page-Warning #mw-head,
body.page-Warning #mw-panel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.page-Warning .splash-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0a0a0f !important;
    z-index: 2147483647 !important; 
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
.splash-inner-wrapper {
    width: 100%;
    max-width: 500px;
    border: 1px solid #333;
    border-top: 4px solid #a020f0;
    background: #13131a;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
}
.splash-title {
    font-family: 'Consolas', monospace;
    font-size: 2em;
    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;
    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;
}