MediaWiki:Common.css
From The Jadnix Codex
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
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;
}