MediaWiki:Common.css: Difference between revisions
From The Jadnix Codex
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
JADNIX CODEX: MEDIK VOID ( | JADNIX CODEX: MEDIK VOID (SMART VARIABLES EDITION) | ||
============================================================ */ | ============================================================ */ | ||
/* 1. NUCLEAR BACKGROUND FIX */ | /* 1. ROOT VARIABLES (The Source of Truth) */ | ||
:root { | |||
--void-accent: #a020f0; /* Default Still Purple */ | |||
--void-bg: #0a0a0f; | |||
--void-card: #13131a; | |||
--void-text: #d1d1d1; | |||
} | |||
/* 2. NUCLEAR BACKGROUND FIX */ | |||
html, body, .medik-wrap, .container, .container-fluid, .row, #mw-wrapper { | html, body, .medik-wrap, .container, .container-fluid, .row, #mw-wrapper { | ||
background-color: | background-color: var(--void-bg) !important; | ||
background-image: none !important; | background-image: none !important; | ||
color: | color: var(--void-text) !important; | ||
} | } | ||
| Line 23: | Line 31: | ||
} | } | ||
/* | /* 3. HEADER LAYOUT & NAVIGATION */ | ||
.navbar-collapse { display: flex !important; flex-basis: auto !important; } | .navbar-collapse { display: flex !important; flex-basis: auto !important; } | ||
.navbar-nav { flex-direction: row !important; align-items: center; } | .navbar-nav { flex-direction: row !important; align-items: center; } | ||
| Line 30: | Line 38: | ||
/* Header Text Colors */ | /* Header Text Colors */ | ||
.navbar-nav .nav-link, .dropdown-toggle { | .navbar-nav .nav-link, .dropdown-toggle { | ||
color: | color: var(--void-text) !important; | ||
font-family: 'Consolas', monospace; | font-family: 'Consolas', monospace; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
| Line 37: | Line 45: | ||
.navbar-nav .nav-link:hover, .dropdown-toggle:hover { | .navbar-nav .nav-link:hover, .dropdown-toggle:hover { | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-shadow: 0 0 5px | text-shadow: 0 0 5px var(--void-accent); /* Smart Glow */ | ||
} | } | ||
.nav-item.active .nav-link { | .nav-item.active .nav-link { | ||
font-weight: bold; | font-weight: bold; | ||
color: #fff !important; | color: #fff !important; | ||
border-bottom: 3px solid | border-bottom: 3px solid var(--void-accent); /* Smart Border */ | ||
/* | |||
} | } | ||
/* 4. CONTENT CARD */ | /* 4. CONTENT CARD */ | ||
#content, .mw-body { | #content, .mw-body { | ||
background-color: | background-color: var(--void-card) !important; | ||
border: 1px solid #333 !important; | border: 1px solid #333 !important; | ||
border-left: 5px solid | border-left: 5px solid var(--void-accent) !important; /* Smart Left Border */ | ||
box-shadow: 0 0 30px rgba(0,0,0,0.8) !important; | box-shadow: 0 0 30px rgba(0,0,0,0.8) !important; | ||
margin-top: 20px !important; | margin-top: 20px !important; | ||
padding: 30px !important; | padding: 30px !important; | ||
color: | color: var(--void-text) !important; | ||
} | } | ||
.col-12, .col-md-9, .col-xl-9, .py-md-3 { background: transparent !important; } | .col-12, .col-md-9, .col-xl-9, .py-md-3 { background: transparent !important; } | ||
/* 5. TABLE OF CONTENTS (TOC) | /* 5. TABLE OF CONTENTS (TOC) */ | ||
#toc, .toc { | #toc, .toc { | ||
background-color: #0f0f14 !important; | background-color: #0f0f14 !important; | ||
border: 1px solid #333 !important; | border: 1px solid #333 !important; | ||
border-left: 4px solid var(--void-accent) !important; /* Smart TOC Border */ | |||
padding: 15px; | padding: 15px; | ||
display: inline-block; | display: inline-block; | ||
min-width: 200px; | min-width: 200px; | ||
color: | color: var(--void-text) !important; | ||
} | } | ||
.toctitle h2 { | .toctitle h2 { | ||
| Line 109: | Line 90: | ||
} | } | ||
#toc ul li a:hover, .toc ul li a:hover { | #toc ul li a:hover, .toc ul li a:hover { | ||
color: | color: var(--void-accent) !important; /* Smart Hover */ | ||
} | |||
/* 6. GLOBAL TYPOGRAPHY & LINKS */ | |||
h1, h2, h3, h4, h5, h6 { | |||
color: #fff !important; | |||
font-family: 'Consolas', monospace; | |||
border-bottom: 1px solid #333; | |||
} | } | ||
/* | /* Smart Links */ | ||
a { | |||
color: var(--void-accent); | |||
transition: 0.2s; | |||
} | |||
a:hover { | |||
a:hover { color: # | color: #fff; | ||
text-shadow: 0 0 5px var(--void-accent); | |||
text-decoration: none; | |||
} | |||
/* 7. DROPDOWNS */ | /* 7. DROPDOWNS (Content Area) */ | ||
.dropdown-menu { background-color: | .dropdown-menu { | ||
.dropdown-item { color: | background-color: var(--void-card) !important; | ||
.dropdown-item:hover { background-color: | border: 1px solid var(--void-accent) !important; | ||
} | |||
.dropdown-item { color: var(--void-text) !important; } | |||
.dropdown-item:hover { | |||
background-color: var(--void-accent) !important; | |||
color: #fff !important; | |||
} | |||
/* ============================================================ | /* ============================================================ | ||
FACTION THEMES ( | FACTION THEMES (THE SMART LOGIC) | ||
============================================================ */ | ============================================================ */ | ||
/* | |||
We no longer need to manually override borders or links here. | |||
We simply change the variable, and the CSS above updates automatically. | |||
*/ | |||
/* | /* DEALERS (Gold) */ | ||
body.theme-dealer { | body.theme-dealer { | ||
--void-accent: #DAA520 !important; | --void-accent: #DAA520 !important; | ||
--font-family-system: 'Georgia', serif; | --font-family-system: 'Georgia', serif; | ||
} | } | ||
body.theme-dealer h1, body.theme-dealer h2 { | |||
body.theme-dealer | font-family: 'Georgia', serif; | ||
body.theme-dealer | color: #DAA520 !important; | ||
} | |||
/* | /* SKIPPERS (Blue) */ | ||
body.theme-skipper { | body.theme-skipper { | ||
--void-accent: #21b0cd !important; | --void-accent: #21b0cd !important; | ||
--font-family-system: 'Consolas', monospace; | --font-family-system: 'Consolas', monospace; | ||
} | } | ||
body.theme-skipper h1, body.theme-skipper h2 { | |||
body.theme-skipper | color: #21b0cd !important; | ||
body.theme-skipper | } | ||
/* | /* STILL (Purple) */ | ||
body.theme-still { | body.theme-still { | ||
--void-accent: #a020f0 !important; | --void-accent: #a020f0 !important; | ||
| Line 160: | Line 157: | ||
CRDD CALCULATOR | CRDD CALCULATOR | ||
============================================================ */ | ============================================================ */ | ||
#crdd-interface { background-color: | #crdd-interface { background-color: var(--void-bg); 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-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 { margin-bottom: 30px; border: 1px solid #333; padding: 15px; background: #0f0f14; } | ||
| Line 183: | Line 180: | ||
============================================================ */ | ============================================================ */ | ||
body.page-Warning nav.navbar, body.page-Warning footer, body.page-Warning .sidebar, body.page-Warning aside { display: none !important; } | body.page-Warning nav.navbar, body.page-Warning footer, body.page-Warning .sidebar, body.page-Warning aside { display: none !important; } | ||
body.page-Warning .splash-container { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: | body.page-Warning .splash-container { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: var(--void-bg) !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 | .splash-inner-wrapper { width: 100%; max-width: 500px; border: 1px solid #333; border-top: 4px solid var(--void-accent); background: var(--void-card); 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 | .splash-title { font-family: 'Consolas', monospace; font-size: 2em; color: #fff; margin-bottom: 5px; text-shadow: 0 0 10px var(--void-accent); } | ||
.splash-subtitle { color: | .splash-subtitle { color: var(--void-accent); font-size: 0.8em; letter-spacing: 2px; margin-bottom: 30px; text-transform: uppercase; } | ||
.splash-btn { display: inline-block; border: 1px solid | .splash-btn { display: inline-block; border: 1px solid var(--void-accent); padding: 12px 24px; color: #fff !important; text-decoration: none; font-family: 'Consolas', monospace; margin: 20px 0; transition: all 0.3s; } | ||
.splash-btn:hover { background: | .splash-btn:hover { background: var(--void-accent); color: #000 !important; box-shadow: 0 0 15px var(--void-accent); } | ||
} | |||
/* ============================================================ | /* ============================================================ | ||
| Line 229: | Line 196: | ||
.nav-title { font-family: 'Consolas', monospace; font-size: 1.2em; font-weight: bold; color: #fff; display: block; background: rgba(0,0,0,0.6); padding: 5px 10px; } | .nav-title { font-family: 'Consolas', monospace; font-size: 1.2em; font-weight: bold; color: #fff; display: block; background: rgba(0,0,0,0.6); padding: 5px 10px; } | ||
.nav-sub { font-family: 'Arial', sans-serif; font-size: 0.7em; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; display: block; } | .nav-sub { font-family: 'Arial', sans-serif; font-size: 0.7em; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; display: block; } | ||
.nav-card:hover { border-color: | |||
/* Smart Hover for Cards */ | |||
.nav-card:hover { | |||
border-color: var(--void-accent); | |||
box-shadow: 0 0 15px var(--void-accent); | |||
transform: translateY(-2px); | |||
} | |||
.nav-card:hover .nav-bg { opacity: 0.5; transform: scale(1.1); filter: grayscale(0%); } | .nav-card:hover .nav-bg { opacity: 0.5; transform: scale(1.1); filter: grayscale(0%); } | ||
.nav-card:hover .nav-title { color: | .nav-card:hover .nav-title { color: var(--void-accent); background: #000; } | ||
/* ============================================================ | /* ============================================================ | ||
| Line 239: | Line 212: | ||
background-color: #0f0f14; | background-color: #0f0f14; | ||
border: 1px solid #333; | border: 1px solid #333; | ||
border-top: 4px solid | border-top: 4px solid var(--void-accent); /* Smart Border */ | ||
max-width: 600px; | max-width: 600px; | ||
margin: 0 auto; | margin: 0 auto; | ||
| Line 256: | Line 229: | ||
} | } | ||
.id-clearance { | .id-clearance { | ||
color: | color: var(--void-accent); | ||
font-weight: bold; | font-weight: bold; | ||
border: 1px solid | border: 1px solid var(--void-accent); | ||
padding: 0 5px; | padding: 0 5px; | ||
border-radius: 3px; | border-radius: 3px; | ||
| Line 284: | Line 257: | ||
color: #fff !important; | color: #fff !important; | ||
border: none; | border: none; | ||
text-shadow: 0 0 10px | text-shadow: 0 0 10px var(--void-accent); | ||
} | } | ||
.id-details ul { | .id-details ul { | ||
| Line 293: | Line 266: | ||
color: #ccc; | color: #ccc; | ||
} | } | ||
.id-details li { | .id-details li { margin-bottom: 5px; } | ||
} | |||
.id-details strong { | .id-details strong { | ||
color: | color: var(--void-accent); | ||
margin-right: 5px; | margin-right: 5px; | ||
} | } | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.id-body { flex-direction: column; text-align: center; } | .id-body { flex-direction: column; text-align: center; } | ||
} | } | ||
Revision as of 00:52, 11 February 2026
/* ============================================================
JADNIX CODEX: MEDIK VOID (SMART VARIABLES EDITION)
============================================================ */
/* 1. ROOT VARIABLES (The Source of Truth) */
:root {
--void-accent: #a020f0; /* Default Still Purple */
--void-bg: #0a0a0f;
--void-card: #13131a;
--void-text: #d1d1d1;
}
/* 2. NUCLEAR BACKGROUND FIX */
html, body, .medik-wrap, .container, .container-fluid, .row, #mw-wrapper {
background-color: var(--void-bg) !important;
background-image: none !important;
color: var(--void-text) !important;
}
/* SCANLINES */
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;
}
/* 3. HEADER LAYOUT & NAVIGATION */
.navbar-collapse { display: flex !important; flex-basis: auto !important; }
.navbar-nav { flex-direction: row !important; align-items: center; }
.nav-item { margin-right: 15px !important; margin-left: 15px !important; }
/* Header Text Colors */
.navbar-nav .nav-link, .dropdown-toggle {
color: var(--void-text) !important;
font-family: 'Consolas', monospace;
font-size: 1.1em;
padding-bottom: 5px;
}
.navbar-nav .nav-link:hover, .dropdown-toggle:hover {
color: #ffffff !important;
text-shadow: 0 0 5px var(--void-accent); /* Smart Glow */
}
.nav-item.active .nav-link {
font-weight: bold;
color: #fff !important;
border-bottom: 3px solid var(--void-accent); /* Smart Border */
}
/* 4. CONTENT CARD */
#content, .mw-body {
background-color: var(--void-card) !important;
border: 1px solid #333 !important;
border-left: 5px solid var(--void-accent) !important; /* Smart Left Border */
box-shadow: 0 0 30px rgba(0,0,0,0.8) !important;
margin-top: 20px !important;
padding: 30px !important;
color: var(--void-text) !important;
}
.col-12, .col-md-9, .col-xl-9, .py-md-3 { background: transparent !important; }
/* 5. TABLE OF CONTENTS (TOC) */
#toc, .toc {
background-color: #0f0f14 !important;
border: 1px solid #333 !important;
border-left: 4px solid var(--void-accent) !important; /* Smart TOC Border */
padding: 15px;
display: inline-block;
min-width: 200px;
color: var(--void-text) !important;
}
.toctitle h2 {
color: #fff !important;
font-family: 'Consolas', monospace;
border-bottom: 1px dashed #555;
font-size: 1.2em;
margin-bottom: 10px;
}
#toc ul li a, .toc ul li a {
color: #888 !important;
font-family: sans-serif;
font-size: 0.95em;
text-decoration: none;
transition: 0.2s;
}
#toc ul li a:hover, .toc ul li a:hover {
color: var(--void-accent) !important; /* Smart Hover */
}
/* 6. GLOBAL TYPOGRAPHY & LINKS */
h1, h2, h3, h4, h5, h6 {
color: #fff !important;
font-family: 'Consolas', monospace;
border-bottom: 1px solid #333;
}
/* Smart Links */
a {
color: var(--void-accent);
transition: 0.2s;
}
a:hover {
color: #fff;
text-shadow: 0 0 5px var(--void-accent);
text-decoration: none;
}
/* 7. DROPDOWNS (Content Area) */
.dropdown-menu {
background-color: var(--void-card) !important;
border: 1px solid var(--void-accent) !important;
}
.dropdown-item { color: var(--void-text) !important; }
.dropdown-item:hover {
background-color: var(--void-accent) !important;
color: #fff !important;
}
/* ============================================================
FACTION THEMES (THE SMART LOGIC)
============================================================ */
/*
We no longer need to manually override borders or links here.
We simply change the variable, and the CSS above updates automatically.
*/
/* DEALERS (Gold) */
body.theme-dealer {
--void-accent: #DAA520 !important;
--font-family-system: 'Georgia', serif;
}
body.theme-dealer h1, body.theme-dealer h2 {
font-family: 'Georgia', serif;
color: #DAA520 !important;
}
/* SKIPPERS (Blue) */
body.theme-skipper {
--void-accent: #21b0cd !important;
--font-family-system: 'Consolas', monospace;
}
body.theme-skipper h1, body.theme-skipper h2 {
color: #21b0cd !important;
}
/* STILL (Purple) */
body.theme-still {
--void-accent: #a020f0 !important;
}
/* ============================================================
CRDD CALCULATOR
============================================================ */
#crdd-interface { background-color: var(--void-bg); 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; }
}
/* ============================================================
SPLASH SCREEN
============================================================ */
body.page-Warning nav.navbar, body.page-Warning footer, body.page-Warning .sidebar, body.page-Warning aside { display: none !important; }
body.page-Warning .splash-container { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: var(--void-bg) !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 var(--void-accent); background: var(--void-card); 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 var(--void-accent); }
.splash-subtitle { color: var(--void-accent); font-size: 0.8em; letter-spacing: 2px; margin-bottom: 30px; text-transform: uppercase; }
.splash-btn { display: inline-block; border: 1px solid var(--void-accent); padding: 12px 24px; color: #fff !important; text-decoration: none; font-family: 'Consolas', monospace; margin: 20px 0; transition: all 0.3s; }
.splash-btn:hover { background: var(--void-accent); color: #000 !important; box-shadow: 0 0 15px var(--void-accent); }
/* ============================================================
HOME PAGE NAVIGATION (Holographic Cards)
============================================================ */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.nav-card { position: relative; background-color: #0f0f14; border: 1px solid #333; height: 120px; overflow: hidden; text-decoration: none !important; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: all 0.3s ease; }
.nav-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; transition: opacity 0.3s ease, transform 0.5s ease; z-index: 1; filter: grayscale(100%); }
.nav-content { z-index: 2; text-align: center; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.nav-title { font-family: 'Consolas', monospace; font-size: 1.2em; font-weight: bold; color: #fff; display: block; background: rgba(0,0,0,0.6); padding: 5px 10px; }
.nav-sub { font-family: 'Arial', sans-serif; font-size: 0.7em; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; display: block; }
/* Smart Hover for Cards */
.nav-card:hover {
border-color: var(--void-accent);
box-shadow: 0 0 15px var(--void-accent);
transform: translateY(-2px);
}
.nav-card:hover .nav-bg { opacity: 0.5; transform: scale(1.1); filter: grayscale(0%); }
.nav-card:hover .nav-title { color: var(--void-accent); background: #000; }
/* ============================================================
PERSONNEL FILE (USER PAGE)
============================================================ */
.personnel-file {
background-color: #0f0f14;
border: 1px solid #333;
border-top: 4px solid var(--void-accent); /* Smart Border */
max-width: 600px;
margin: 0 auto;
font-family: 'Consolas', monospace;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.id-header {
background-color: #1a1a24;
padding: 10px 15px;
border-bottom: 1px solid #333;
display: flex;
justify-content: space-between;
font-size: 0.9em;
color: #888;
letter-spacing: 1px;
}
.id-clearance {
color: var(--void-accent);
font-weight: bold;
border: 1px solid var(--void-accent);
padding: 0 5px;
border-radius: 3px;
}
.id-body {
padding: 20px;
display: flex;
align-items: center;
gap: 20px;
}
.void-avatar {
width: 100px;
height: 100px;
background-color: #000;
border: 1px solid #333;
display: flex;
align-items: center;
justify-content: center;
color: #333;
font-size: 2em;
}
.id-details h2 {
margin: 0 0 10px 0;
font-size: 1.5em;
color: #fff !important;
border: none;
text-shadow: 0 0 10px var(--void-accent);
}
.id-details ul {
list-style: none;
margin: 0;
padding: 0;
font-size: 0.9em;
color: #ccc;
}
.id-details li { margin-bottom: 5px; }
.id-details strong {
color: var(--void-accent);
margin-right: 5px;
}
@media (max-width: 600px) {
.id-body { flex-direction: column; text-align: center; }
}