MediaWiki:Common.css: Difference between revisions
From The Jadnix Codex
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
JADNIX CODEX: COSMOS DARK THEME ( | JADNIX CODEX: COSMOS DARK THEME (ROOT VARIABLE FIX) | ||
============================================================ */ | ============================================================ */ | ||
/* | /* 1. ROOT VARIABLES (THE MAGIC BULLET) */ | ||
/* This redefines the skin's core colors so menus automatically turn dark */ | |||
:root { | :root { | ||
color- | --cosmos-bg-primary: #0a0a0f !important; | ||
--cosmos-bg-secondary: #13131a !important; | |||
--cosmos-bg-paper: #1b1b1b !important; /* This controls the menus */ | |||
--cosmos-text-primary: #d1d1d1 !important; | |||
/* Bootstrap & Internal Overrides */ | |||
--bs-body-bg: #0a0a0f !important; | |||
--bs-dropdown-bg: #1b1b1b !important; | |||
--bs-dropdown-color: #ffffff !important; | |||
--bs-dropdown-border-color: #333333 !important; | |||
} | } | ||
html, body, #mw-wrapper { | |||
/* 2. CORE STYLES */ | |||
html, body, #mw-wrapper, #content, .mw-body { | |||
background-color: #0a0a0f !important; | background-color: #0a0a0f !important; | ||
background-image: none !important; | background-image: none !important; | ||
| Line 13: | Line 25: | ||
} | } | ||
/* | /* 3. HEADER & NAV */ | ||
.cosmos-header, header, #cosmos-banner, nav.cosmos-nav { | .cosmos-header, header, #cosmos-banner, nav.cosmos-nav { | ||
display: block !important; | display: block !important; | ||
| Line 22: | Line 34: | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
.cosmos-header a, header a, .cosmos-nav a { | .cosmos-header a, header a, .cosmos-nav a { color: #ffffff !important; } | ||
} | |||
/* | /* 4. FOOTER & INPUTS */ | ||
.cosmos-footer, footer { | .cosmos-footer, footer { | ||
background-color: #0a0a0f !important; | background-color: #0a0a0f !important; | ||
| Line 75: | Line 78: | ||
/* ============================================================ | /* ============================================================ | ||
COMPONENT: CRDD CALCULATOR (PRESERVED) | COMPONENT: CRDD CALCULATOR (PRESERVED EXACTLY) | ||
============================================================ */ | ============================================================ */ | ||
#crdd-interface { | #crdd-interface { | ||
| Line 131: | Line 134: | ||
/* ============================================================ | /* ============================================================ | ||
!!! DROPDOWN | !!! DROPDOWN / MENU FIXES (V7 - THE NAPALM FIX) !!! | ||
============================================================ */ | ============================================================ */ | ||
/* 1. | /* 1. Target EVERYTHING (Bootstrap + Cosmos + OOUI + Fandom) */ | ||
.dropdown-menu, .popover, .oo-ui-popupWidget-body, .wds-dropdown__content { | .dropdown-menu, | ||
.popover, | |||
.oo-ui-popupWidget-body, | |||
.wds-dropdown__content, | |||
.list-group-item, | |||
div[class^="oo-ui-popup"], | |||
div[class*="popupWidget"] { | |||
background-color: #1b1b1b !important; | background-color: #1b1b1b !important; | ||
background: #1b1b1b !important; | |||
border: 1px solid #333 !important; | border: 1px solid #333 !important; | ||
color: #fff !important; | color: #fff !important; | ||
box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important; | |||
} | } | ||
/* 2. | /* 2. Remove Internal White Boxes & Glows */ | ||
.dropdown-menu *, .popover *, .oo-ui-popupWidget-body * { | .dropdown-menu *, .popover *, .oo-ui-popupWidget-body *, .wds-dropdown__content * { | ||
background-color: transparent !important; | background-color: transparent !important; | ||
color: #fff !important; | color: #fff !important; | ||
text | text-shadow: none !important; | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* 3. | /* 3. Styling the Links (So they are readable) */ | ||
.dropdown-menu a, .dropdown-item, .list-group-item, .oo-ui-menuOptionWidget { | .dropdown-menu a, .dropdown-item, .list-group-item, .oo-ui-menuOptionWidget { | ||
padding: | padding: 8px 15px !important; | ||
display: block !important; | display: block !important; | ||
border-bottom: 1px solid #222 !important; | |||
color: #fff !important; | |||
} | } | ||
/* 4. Hover Effects ( | /* 4. Hover Effects (Blue Highlight) */ | ||
.dropdown-menu a:hover, .dropdown-item:hover, .list-group-item:hover, .oo-ui-menuOptionWidget:hover { | .dropdown-menu a:hover, .dropdown-item:hover, .list-group-item:hover, .oo-ui-menuOptionWidget:hover, .oo-ui-optionWidget-highlighted { | ||
background-color: #333 !important; | background-color: #333 !important; | ||
color: #8ab4f8 !important; | color: #8ab4f8 !important; | ||
| Line 167: | Line 175: | ||
} | } | ||
/* 5. Fix the | /* 5. Fix the Arrows */ | ||
.popover .arrow::after, .popover .arrow::before { | .popover .arrow::after, .popover .arrow::before { | ||
border-bottom-color: #1b1b1b !important; | border-bottom-color: #1b1b1b !important; | ||
} | } | ||
Revision as of 18:10, 9 February 2026
/* ============================================================
JADNIX CODEX: COSMOS DARK THEME (ROOT VARIABLE FIX)
============================================================ */
/* 1. ROOT VARIABLES (THE MAGIC BULLET) */
/* This redefines the skin's core colors so menus automatically turn dark */
:root {
--cosmos-bg-primary: #0a0a0f !important;
--cosmos-bg-secondary: #13131a !important;
--cosmos-bg-paper: #1b1b1b !important; /* This controls the menus */
--cosmos-text-primary: #d1d1d1 !important;
/* Bootstrap & Internal Overrides */
--bs-body-bg: #0a0a0f !important;
--bs-dropdown-bg: #1b1b1b !important;
--bs-dropdown-color: #ffffff !important;
--bs-dropdown-border-color: #333333 !important;
}
/* 2. CORE STYLES */
html, body, #mw-wrapper, #content, .mw-body {
background-color: #0a0a0f !important;
background-image: none !important;
color: #d1d1d1 !important;
}
/* 3. HEADER & NAV */
.cosmos-header, header, #cosmos-banner, nav.cosmos-nav {
display: block !important;
background-image: none !important;
background-color: #1a1a24 !important;
border-bottom: 1px solid #333;
color: #fff !important;
box-shadow: none !important;
}
.cosmos-header a, header a, .cosmos-nav a { color: #ffffff !important; }
/* 4. FOOTER & INPUTS */
.cosmos-footer, footer {
background-color: #0a0a0f !important;
border-top: 1px solid #333;
}
input, textarea, #simpleSearch, .mw-ui-input {
background-color: #000 !important;
color: #fff !important;
border: 1px solid #333 !important;
}
h1, h2, h3, h4, h5, h6 {
color: #fff !important;
border-bottom: 1px solid #333;
font-family: 'Consolas', monospace;
}
/* ============================================================
FACTION THEMES (PRESERVED)
============================================================ */
/* Dealers (Gold) */
body.theme-dealer #content, body.theme-dealer .mw-body { border-left: 5px solid #DAA520; 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; }
body.theme-dealer .mw-ui-button { background-color: #DAA520 !important; color: #000 !important; border: none; }
/* Skippers (Blue) */
body.theme-skipper #content, body.theme-skipper .mw-body { border-left: 5px solid #21b0cd; 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; }
body.theme-skipper .mw-ui-button { background-color: #21b0cd !important; color: #fff !important; border: none; }
/* The Still (Purple) */
body.theme-still #content, body.theme-still .mw-body { border-left: 5px solid #a020f0; 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; }
body.theme-still .mw-ui-button { background-color: #a020f0 !important; color: #fff !important; border: none; }
/* ============================================================
COMPONENT: CRDD CALCULATOR (PRESERVED EXACTLY)
============================================================ */
#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; }
/* MOBILE FIX FOR CALCULATOR */
@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 (PRESERVED)
============================================================ */
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; }
/* ============================================================
!!! DROPDOWN / MENU FIXES (V7 - THE NAPALM FIX) !!!
============================================================ */
/* 1. Target EVERYTHING (Bootstrap + Cosmos + OOUI + Fandom) */
.dropdown-menu,
.popover,
.oo-ui-popupWidget-body,
.wds-dropdown__content,
.list-group-item,
div[class^="oo-ui-popup"],
div[class*="popupWidget"] {
background-color: #1b1b1b !important;
background: #1b1b1b !important;
border: 1px solid #333 !important;
color: #fff !important;
box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
}
/* 2. Remove Internal White Boxes & Glows */
.dropdown-menu *, .popover *, .oo-ui-popupWidget-body *, .wds-dropdown__content * {
background-color: transparent !important;
color: #fff !important;
text-shadow: none !important;
border: none !important;
}
/* 3. Styling the Links (So they are readable) */
.dropdown-menu a, .dropdown-item, .list-group-item, .oo-ui-menuOptionWidget {
padding: 8px 15px !important;
display: block !important;
border-bottom: 1px solid #222 !important;
color: #fff !important;
}
/* 4. Hover Effects (Blue Highlight) */
.dropdown-menu a:hover, .dropdown-item:hover, .list-group-item:hover, .oo-ui-menuOptionWidget:hover, .oo-ui-optionWidget-highlighted {
background-color: #333 !important;
color: #8ab4f8 !important;
text-decoration: none !important;
}
/* 5. Fix the Arrows */
.popover .arrow::after, .popover .arrow::before {
border-bottom-color: #1b1b1b !important;
}