MediaWiki:Common.css: Difference between revisions

From The Jadnix Codex

No edit summary
No edit summary
Line 298: Line 298:


/* ============================================================
/* ============================================================
   UNIVERSAL FACTION THEMES (Button Fix Edition)
   UNIVERSAL FACTION THEMES (ID Override Edition)
   ============================================================ */
   ============================================================ */


/* --- THEME: DEALERS (Gold) --- */
/* --- THEME: DEALERS (Gold) --- */
body.theme-dealer {
body.theme-dealer {
    /* Override Variables */
     --color-primary: #DAA520;
     --color-primary: #DAA520;
     --color-primary--hover: #FFD700;
     --color-primary--hover: #FFD700;
     --color-progressive: #DAA520;
     --color-progressive: #DAA520;
     --citizen-theme-color: #DAA520;
     --citizen-theme-color: #DAA520;
   
    /* Font */
     --font-family-system: 'Georgia', 'Times New Roman', serif;
     --font-family-system: 'Georgia', 'Times New Roman', serif;
}
}


/* 1. FORCE THE EDIT BUTTON (The Sniper Shot) */
/* THE SNIPER SHOT: Target the IDs directly */
body.theme-dealer .citizen-page-actions__item > a,
body.theme-dealer #ca-edit > a,
body.theme-dealer .citizen-page-actions__item .mw-ui-button {
body.theme-dealer #ca-history > a,
body.theme-dealer #ca-view > a,
body.theme-dealer #p-views li a,
body.theme-dealer .mw-ui-button.mw-ui-progressive {
     background-color: #DAA520 !important;
     background-color: #DAA520 !important;
     border-color: #DAA520 !important;
     border-color: #DAA520 !important;
     color: #000 !important; /* Black text for contrast */
     color: #000000 !important; /* Black text on Gold */
    text-shadow: none !important;
}
}


/* 2. Fix Hover State for the Button */
/* Hover State */
body.theme-dealer .citizen-page-actions__item > a:hover,
body.theme-dealer #ca-edit > a:hover,
body.theme-dealer .citizen-page-actions__item .mw-ui-button:hover {
body.theme-dealer #ca-history > a:hover {
     background-color: #FFD700 !important;
     background-color: #FFD700 !important;
     box-shadow: 0 0 10px #DAA520;
     box-shadow: 0 0 10px #DAA520;
}
}


/* 3. Gold Links & Text Highlight */
/* Gold Links */
body.theme-dealer a:hover {
body.theme-dealer a:hover {
     color: #FFD700 !important;
     color: #FFD700 !important;
Line 334: Line 335:
}
}


/* 4. The Gold Bar */
/* The Gold Bar */
body.theme-dealer #mw-content-text {
body.theme-dealer #mw-content-text {
     border-left: 6px solid #DAA520;
     border-left: 6px solid #DAA520;
Line 350: Line 351:
}
}


/* 1. Force Blue Buttons */
/* THE SNIPER SHOT: Target the IDs */
body.theme-skipper .citizen-page-actions__item > a,
body.theme-skipper #ca-edit > a,
body.theme-skipper .citizen-page-actions__item .mw-ui-button {
body.theme-skipper #ca-history > a,
body.theme-skipper #ca-view > a,
body.theme-skipper #p-views li a,
body.theme-skipper .mw-ui-button.mw-ui-progressive {
     background-color: #21b0cd !important;
     background-color: #21b0cd !important;
     border-color: #21b0cd !important;
     border-color: #21b0cd !important;
     color: #fff !important;
     color: #ffffff !important; /* White text on Blue */
    text-shadow: none !important;
}
}


/* 2. Fix Hover State */
/* Hover State */
body.theme-skipper .citizen-page-actions__item > a:hover {
body.theme-skipper #ca-edit > a:hover,
body.theme-skipper #ca-history > a:hover {
     background-color: #00e5ff !important;
     background-color: #00e5ff !important;
     box-shadow: 0 0 10px #21b0cd;
     box-shadow: 0 0 10px #21b0cd;
}
}


/* 3. Blue Links */
/* Blue Links */
body.theme-skipper a:hover {
body.theme-skipper a:hover {
     color: #00e5ff !important;
     color: #00e5ff !important;
Line 370: Line 376:
}
}


/* 4. The Blue Bar */
/* The Blue Bar */
body.theme-skipper #mw-content-text {
body.theme-skipper #mw-content-text {
     border-left: 6px solid #21b0cd;
     border-left: 6px solid #21b0cd;
     padding-left: 25px;
     padding-left: 25px;
}
}

Revision as of 14:45, 9 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 V2 (Citizen Skin Fix)
   ============================================================ */

/* 1. HIDE ALL CITIZEN UI ELEMENTS ON WARNING PAGE */
/* We list every possible name Citizen uses for headers/footers */
body.page-Warning header,
body.page-Warning footer,
body.page-Warning #mw-header-container,
body.page-Warning #mw-site-navigation,
body.page-Warning .mw-page-header,       /* The Edit Button area */
body.page-Warning .citizen-header,
body.page-Warning .citizen-footer,
body.page-Warning #mw-related-navigation,
body.page-Warning .citizen-drawer {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. THE FULL SCREEN OVERLAY */
body.page-Warning .splash-container {
    /* Force it to be fixed to the screen */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    
    /* Ensure the background is SOLID black so nothing peeks through */
    background-color: #0a0a0f !important;
    
    /* Maximum Z-Index possible in a browser */
    z-index: 2147483647 !important; 
    
    /* Centering Magic (Flexbox) */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Reset margins so it touches the edges */
    margin: 0 !important;
    padding: 20px !important; /* Padding for mobile screens */
    box-sizing: border-box !important;
}

/* 3. THE INNER BOX (Visual Style) */
/* We wrap the text in a visual box so it looks good on mobile */
.splash-inner-wrapper {
    width: 100%;
    max-width: 500px;
    border: 1px solid #333;
    border-top: 4px solid #a020f0;
    background: #13131a; /* Slightly lighter than void */
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
}

/* 4. TEXT STYLING */
.splash-title {
    font-family: 'Consolas', monospace;
    font-size: 2em; /* Smaller for mobile safety */
    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; /* Force white text */
    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;
}

/* ============================================================
   THE CRDD CALCULATOR (The Device)
   ============================================================ */
#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;
}

/* The Header of the Device */
.crdd-header {
    border-bottom: 1px dashed #21b0cd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: right;
    font-size: 0.8em;
    opacity: 0.8;
}

/* The Sections (1/3, 2/3, 3/3) */
.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;
}

/* The Sliders */
.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; /* Makes the slider blue */
}

.crdd-value-display {
    width: 30px;
    text-align: right;
    font-weight: bold;
}

/* The "Skip" Checkbox */
.crdd-skip-label {
    display: block;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.8em;
    cursor: pointer;
}

/* The Result Box */
#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;
}

/* ============================================================
   MOBILE RESPONSIVENESS (V2 - Forced Stacking)
   ============================================================ */
@media only screen and (max-width: 768px) {
    /* FORCE VERTICAL STACK */
    .crdd-input-group {
        display: flex !important;
        flex-direction: column !important; /* Stack top-to-bottom */
        align-items: flex-start !important;
        margin-bottom: 25px !important;
        width: 100% !important;
    }

    /* LABEL ON TOP */
    .crdd-input-group label {
        width: 100% !important;
        margin-bottom: 10px !important;
        font-size: 1.2em !important;
    }

    /* SLIDER IN MIDDLE */
    .crdd-range {
        width: 100% !important;
        margin: 10px 0 !important;
        height: 40px !important; /* Easy to touch */
    }

    /* NUMBER ON BOTTOM (or Right) */
    .crdd-value-display {
        width: 100% !important;
        text-align: right !important;
        font-size: 1.2em !important;
        color: #fff !important;
    }

    /* FIX PADDING */
    #crdd-interface {
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   UNIVERSAL FACTION THEMES (ID Override Edition)
   ============================================================ */

/* --- THEME: DEALERS (Gold) --- */
body.theme-dealer {
    --color-primary: #DAA520;
    --color-primary--hover: #FFD700;
    --color-progressive: #DAA520;
    --citizen-theme-color: #DAA520;
    --font-family-system: 'Georgia', 'Times New Roman', serif;
}

/* THE SNIPER SHOT: Target the IDs directly */
body.theme-dealer #ca-edit > a,
body.theme-dealer #ca-history > a,
body.theme-dealer #ca-view > a,
body.theme-dealer #p-views li a,
body.theme-dealer .mw-ui-button.mw-ui-progressive {
    background-color: #DAA520 !important;
    border-color: #DAA520 !important;
    color: #000000 !important; /* Black text on Gold */
    text-shadow: none !important;
}

/* Hover State */
body.theme-dealer #ca-edit > a:hover,
body.theme-dealer #ca-history > a:hover {
    background-color: #FFD700 !important;
    box-shadow: 0 0 10px #DAA520;
}

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

/* The Gold Bar */
body.theme-dealer #mw-content-text {
    border-left: 6px solid #DAA520;
    padding-left: 25px;
    background: linear-gradient(to right, rgba(218, 165, 32, 0.05), transparent 10%);
}


/* --- THEME: SKIPPERS (Blue) --- */
body.theme-skipper {
    --color-primary: #21b0cd;
    --color-progressive: #21b0cd;
    --citizen-theme-color: #21b0cd;
    --font-family-system: 'Consolas', 'Monaco', monospace;
}

/* THE SNIPER SHOT: Target the IDs */
body.theme-skipper #ca-edit > a,
body.theme-skipper #ca-history > a,
body.theme-skipper #ca-view > a,
body.theme-skipper #p-views li a,
body.theme-skipper .mw-ui-button.mw-ui-progressive {
    background-color: #21b0cd !important;
    border-color: #21b0cd !important;
    color: #ffffff !important; /* White text on Blue */
    text-shadow: none !important;
}

/* Hover State */
body.theme-skipper #ca-edit > a:hover,
body.theme-skipper #ca-history > a:hover {
    background-color: #00e5ff !important;
    box-shadow: 0 0 10px #21b0cd;
}

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

/* The Blue Bar */
body.theme-skipper #mw-content-text {
    border-left: 6px solid #21b0cd;
    padding-left: 25px;
}