Difference between revisions of "MediaWiki:Common.css"
| Line 1: | Line 1: | ||
/* ========================================================================== | /* ========================================================================== | ||
| − | InfinityMU Modern Wiki UI - MediaWiki 1.31.1 Compatible | + | InfinityMU Modern Dark Wiki UI - MediaWiki 1.31.1 Compatible |
========================================================================== */ | ========================================================================== */ | ||
| − | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@ | + | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Outfit:wght@300;400;600;700&display=swap'); |
:root { | :root { | ||
| − | /* | + | /* Core Dark Theme Palette */ |
| − | --imu-bg- | + | --imu-bg-body: #0a0a0c; /* Deep void background */ |
| − | --imu-bg-card: # | + | --imu-bg-content: #121215; /* Main content area */ |
| − | --imu-text-main: # | + | --imu-bg-card: linear-gradient(145deg, #1a1a1f 0%, #131316 100%); |
| − | --imu-text-muted: # | + | --imu-bg-hover: #1f1f25; |
| − | --imu-accent-primary: #0ea5e9; | + | |
| − | --imu-accent-hover: # | + | /* High-Contrast Text */ |
| − | --imu-accent-gold: # | + | --imu-text-main: #e2e8f0; /* Crisp white/grey */ |
| − | --imu-border-soft: # | + | --imu-text-muted: #94a3b8; |
| + | --imu-text-heading: #FFD28C; /* Classic MU Gold */ | ||
| + | |||
| + | /* Magical Accents */ | ||
| + | --imu-accent-primary: #0ea5e9; /* Infinity Blue */ | ||
| + | --imu-accent-hover: #38bdf8; | ||
| + | --imu-accent-gold: #e69100; | ||
| + | --imu-accent-glow: rgba(14, 165, 233, 0.15); | ||
| + | |||
| + | /* Structural & Depth */ | ||
| + | --imu-border-soft: #2a2a35; | ||
| + | --imu-border-glow: #3a3a4a; | ||
| + | --imu-radius: 12px; | ||
| + | |||
| + | /* Shadows */ | ||
| + | --imu-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5); | ||
| + | --imu-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05); | ||
| + | --imu-shadow-hover: 0 12px 28px var(--imu-accent-glow); | ||
/* Typography */ | /* Typography */ | ||
--imu-font-heading: 'Cinzel', serif; | --imu-font-heading: 'Cinzel', serif; | ||
| − | --imu-font-body: ' | + | --imu-font-body: 'Outfit', sans-serif; |
| − | /* | + | /* Motion */ |
| − | --imu- | + | --imu-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); |
| − | + | } | |
| − | + | ||
| − | + | /* ========================================================= | |
| + | 1. MediaWiki Native Overrides (The Dark Foundation) | ||
| + | ========================================================= */ | ||
| + | |||
| + | body { | ||
| + | background-color: var(--imu-bg-body); | ||
| + | color: var(--imu-text-main); | ||
| + | font-family: var(--imu-font-body); | ||
| + | } | ||
| + | |||
| + | #content { | ||
| + | background-color: var(--imu-bg-content); | ||
| + | color: var(--imu-text-main); | ||
| + | border: 1px solid var(--imu-border-soft); | ||
| + | border-radius: var(--imu-radius); | ||
| + | box-shadow: var(--imu-shadow-md); | ||
| + | margin-top: 1em; | ||
| + | padding: 2.5em; | ||
| + | background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.03) 0%, transparent 50%); | ||
| + | } | ||
| + | |||
| + | /* Headings */ | ||
| + | h1, h2, h3, h4, h5, h6 { | ||
| + | color: var(--imu-text-heading) !important; | ||
| + | font-family: var(--imu-font-heading); | ||
| + | border-bottom: 1px solid var(--imu-border-soft); | ||
| + | padding-bottom: 0.3em; | ||
| + | } | ||
| + | |||
| + | /* Links */ | ||
| + | a { color: var(--imu-accent-primary); transition: var(--imu-transition); } | ||
| + | a:visited { color: #0284c7; } | ||
| + | a:hover { color: var(--imu-accent-hover); text-decoration: none; text-shadow: 0 0 8px var(--imu-accent-glow); } | ||
| + | |||
| + | /* Tables */ | ||
| + | .wikitable { | ||
| + | background-color: #16161a !important; | ||
| + | color: var(--imu-text-main) !important; | ||
| + | border: 1px solid var(--imu-border-soft) !important; | ||
| + | border-collapse: collapse; | ||
| + | box-shadow: var(--imu-shadow-sm); | ||
| + | } | ||
| + | |||
| + | .wikitable th { | ||
| + | background-color: #1f1f25 !important; | ||
| + | color: var(--imu-accent-gold) !important; | ||
| + | font-family: var(--imu-font-heading); | ||
| + | border: 1px solid var(--imu-border-soft) !important; | ||
| + | } | ||
| + | |||
| + | .wikitable td { | ||
| + | border: 1px solid var(--imu-border-soft) !important; | ||
| + | } | ||
| − | + | /* Table of Contents */ | |
| − | + | .toc, .toccolours { | |
| − | + | background: var(--imu-bg-card); | |
| − | + | border: 1px solid var(--imu-border-soft); | |
| − | + | border-radius: 8px; | |
| − | + | box-shadow: var(--imu-shadow-sm); | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| + | .toc h2 { border: none; } | ||
| + | |||
| + | /* ========================================================= | ||
| + | 2. Custom Components (Sidebar, Guides, Heroes) | ||
| + | ========================================================= */ | ||
| − | |||
.imu-guide-wrapper *, | .imu-guide-wrapper *, | ||
.wiki-sidebar * { | .wiki-sidebar * { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| Line 64: | Line 116: | ||
.wiki-sidebar { | .wiki-sidebar { | ||
width: 270px; | width: 270px; | ||
| − | background: var(--bg- | + | background: var(--imu-bg-card); |
| − | border-right: 1px solid var(--border- | + | border-right: 1px solid var(--imu-border-soft); |
| − | box-shadow: var(--shadow- | + | box-shadow: var(--imu-shadow-md); |
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 76: | Line 128: | ||
} | } | ||
| − | |||
.wiki-sidebar::after { | .wiki-sidebar::after { | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
| − | top: 0; left: 0; right: 0; height: | + | top: 0; left: 0; right: 0; height: 180px; |
| − | background: radial-gradient(circle at top right, var(--accent- | + | background: radial-gradient(circle at top right, var(--imu-accent-glow) 0%, transparent 70%); |
pointer-events: none; | pointer-events: none; | ||
} | } | ||
| Line 89: | Line 140: | ||
text-align: center; | text-align: center; | ||
padding: 0 1.5rem 1rem; | padding: 0 1.5rem 1rem; | ||
| − | border-bottom: 1px solid var(--border- | + | border-bottom: 1px solid var(--imu-border-soft); |
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
| Line 95: | Line 146: | ||
.sidebar-logo h2 { | .sidebar-logo h2 { | ||
| − | color: var(--text- | + | color: var(--imu-text-heading); |
| − | font-family: var(--font- | + | font-family: var(--imu-font-heading); |
font-size: 1.4rem; | font-size: 1.4rem; | ||
letter-spacing: 2px; | letter-spacing: 2px; | ||
| − | text-shadow: 0 2px | + | border: none; |
| + | text-shadow: 0 2px 10px rgba(255, 210, 140, 0.2); | ||
} | } | ||
| Line 110: | Line 162: | ||
.nav-header { | .nav-header { | ||
| − | font-family: var(--font- | + | font-family: var(--imu-font-heading); |
| − | color: var(--accent-primary); | + | color: var(--imu-accent-primary); |
| − | font-size: 0. | + | font-size: 0.9rem; |
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 1.5px; | letter-spacing: 1.5px; | ||
| Line 124: | Line 176: | ||
flex-direction: column; | flex-direction: column; | ||
gap: 4px; | gap: 4px; | ||
| − | margin: 0; | + | margin: 0; |
| − | padding: 0; | + | padding: 0; |
} | } | ||
.nav-link { | .nav-link { | ||
| − | font-family: var(--font- | + | font-family: var(--imu-font-body); |
font-weight: 500; | font-weight: 500; | ||
| − | font-size: 0. | + | font-size: 0.95rem; |
| − | color: var(--text-muted); | + | color: var(--imu-text-muted); |
text-decoration: none; | text-decoration: none; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| Line 138: | Line 190: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
| − | transition: | + | transition: var(--imu-transition); |
border: 1px solid transparent; | border: 1px solid transparent; | ||
} | } | ||
| Line 151: | Line 203: | ||
height: 60%; | height: 60%; | ||
width: 3px; | width: 3px; | ||
| − | background-color: var(--accent-primary); | + | background-color: var(--imu-accent-primary); |
border-radius: 4px; | border-radius: 4px; | ||
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); | transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); | ||
| + | box-shadow: 0 0 8px var(--imu-accent-primary); | ||
} | } | ||
.nav-link:hover { | .nav-link:hover { | ||
| − | color: var(-- | + | color: var(--imu-text-main); |
| − | background-color: var(--bg-hover); | + | background-color: var(--imu-bg-hover); |
| − | border-color: var(--border- | + | border-color: var(--imu-border-soft); |
| − | box-shadow: var(--shadow- | + | box-shadow: var(--imu-shadow-sm); |
transform: translateX(4px); | transform: translateX(4px); | ||
| − | |||
} | } | ||
.nav-link:hover::before { | .nav-link:hover::before { | ||
transform: translateY(-50%) scaleY(1); | transform: translateY(-50%) scaleY(1); | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
| − | InsaniaMU Sidebar Highlight | + | 3. InsaniaMU Specific Sidebar Highlight |
========================================================= */ | ========================================================= */ | ||
:root { | :root { | ||
| − | + | --insania-accent: #ffb700; | |
| − | --insania-accent: #ffb700; | + | --insania-accent-hover: #ff3333; |
| − | --insania-accent-hover: #ff3333; | ||
--insania-bg-dark: #1a0505; | --insania-bg-dark: #1a0505; | ||
--insania-bg-light: #2a0d15; | --insania-bg-light: #2a0d15; | ||
| − | --insania-glow: rgba(255, | + | --insania-glow: rgba(255, 51, 51, 0.4); /* Blood red glow */ |
} | } | ||
| − | + | #mw-panel a[href*="insaniamu.com"], | |
| − | #mw-panel a[href=" | + | #column-one a[href*="insaniamu.com"], |
| − | #column-one a[href=" | + | .mw-portlet a[href*="insaniamu.com"] { |
| − | .mw-portlet a[href=" | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
margin: 12px 0 4px -8px; | margin: 12px 0 4px -8px; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| − | color: # | + | color: #fff !important; |
| − | font-family: | + | font-family: var(--imu-font-heading); |
font-weight: 700; | font-weight: 700; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
| Line 280: | Line 247: | ||
text-decoration: none; | text-decoration: none; | ||
| − | |||
background: linear-gradient(135deg, var(--insania-bg-dark) 0%, var(--insania-bg-light) 100%); | background: linear-gradient(135deg, var(--insania-bg-dark) 0%, var(--insania-bg-light) 100%); | ||
border-left: 3px solid var(--insania-accent); | border-left: 3px solid var(--insania-accent); | ||
border-radius: 0 6px 6px 0; | border-radius: 0 6px 6px 0; | ||
| − | box-shadow: 0 4px 12px rgba(0, 0, 0, 0. | + | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); |
overflow: hidden; | overflow: hidden; | ||
| − | + | transition: var(--imu-transition); | |
| − | |||
| − | transition: | ||
z-index: 1; | z-index: 1; | ||
} | } | ||
| − | /* | + | /* Shimmer Sweep Animation Layer */ |
| − | #mw-panel a[href=" | + | #mw-panel a[href*="insaniamu.com"]::before, |
| − | #column-one a[href=" | + | #column-one a[href*="insaniamu.com"]::before, |
| − | .mw-portlet a[href=" | + | .mw-portlet a[href*="insaniamu.com"]::before { |
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
| − | top: 0; | + | top: 0; left: -150%; |
| − | + | width: 150%; height: 100%; | |
| − | width: 150%; | + | background: linear-gradient(90deg, transparent 0%, rgba(255, 183, 0, 0.2) 50%, transparent 100%); |
| − | |||
| − | background: linear-gradient( | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
transform: skewX(-25deg); | transform: skewX(-25deg); | ||
transition: left 0.6s ease-in-out; | transition: left 0.6s ease-in-out; | ||
| Line 313: | Line 270: | ||
} | } | ||
| − | + | #mw-panel a[href*="insaniamu.com"]:hover, | |
| − | #mw-panel a[href=" | + | #column-one a[href*="insaniamu.com"]:hover, |
| − | #column-one a[href=" | + | .mw-portlet a[href*="insaniamu.com"]:hover { |
| − | .mw-portlet a[href=" | ||
transform: translateX(6px); | transform: translateX(6px); | ||
border-left-color: var(--insania-accent-hover); | border-left-color: var(--insania-accent-hover); | ||
| − | box-shadow: 0 6px | + | box-shadow: 0 6px 20px var(--insania-glow); |
| − | + | text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); | |
| − | text- | ||
} | } | ||
| − | + | #mw-panel a[href*="insaniamu.com"]:hover::before, | |
| − | #mw-panel a[href=" | + | #column-one a[href*="insaniamu.com"]:hover::before, |
| − | #column-one a[href=" | + | .mw-portlet a[href*="insaniamu.com"]:hover::before { |
| − | .mw-portlet a[href=" | ||
left: 150%; | left: 150%; | ||
} | } | ||
| − | /* | + | /* ========================================================= |
| + | 4. Article UI Details (Heroes, Steps, Code) | ||
| + | ========================================================= */ | ||
| + | |||
.imu-guide-wrapper { | .imu-guide-wrapper { | ||
font-family: var(--imu-font-body); | font-family: var(--imu-font-body); | ||
color: var(--imu-text-main); | color: var(--imu-text-main); | ||
| − | background-color: | + | background-color: transparent; |
| − | padding: | + | padding: 1rem 0; |
| − | + | max-width: 1000px; | |
| − | max-width: | ||
margin: 0 auto; | margin: 0 auto; | ||
| − | line-height: 1. | + | line-height: 1.7; |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
/* Hero Section */ | /* Hero Section */ | ||
.imu-hero-section { | .imu-hero-section { | ||
| − | background: | + | background: var(--imu-bg-card); |
border-left: 4px solid var(--imu-accent-primary); | border-left: 4px solid var(--imu-accent-primary); | ||
| − | padding: | + | padding: 2.5rem; |
border-radius: var(--imu-radius); | border-radius: var(--imu-radius); | ||
| − | box-shadow: var(--imu-shadow- | + | box-shadow: var(--imu-shadow-md); |
margin-bottom: 2.5rem; | margin-bottom: 2.5rem; | ||
| + | position: relative; | ||
| + | overflow: hidden; | ||
| + | } | ||
| + | |||
| + | .imu-hero-section::after { | ||
| + | content: ''; | ||
| + | position: absolute; | ||
| + | right: 0; bottom: 0; | ||
| + | width: 300px; height: 300px; | ||
| + | background: radial-gradient(circle, var(--imu-accent-glow) 0%, transparent 70%); | ||
| + | pointer-events: none; | ||
} | } | ||
| Line 365: | Line 323: | ||
font-size: 2.5rem; | font-size: 2.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
| − | + | color: var(--imu-text-heading); | |
| − | + | text-shadow: 0 2px 4px rgba(0,0,0,0.5); | |
| − | + | border-bottom: none; | |
| − | |||
| − | |||
| − | |||
} | } | ||
| Line 385: | Line 340: | ||
.imu-step-container:hover { | .imu-step-container:hover { | ||
| − | box-shadow: var(--imu-shadow- | + | box-shadow: var(--imu-shadow-hover); |
| − | transform: translateY(- | + | border-color: var(--imu-border-glow); |
| + | transform: translateY(-3px); | ||
} | } | ||
| Line 392: | Line 348: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| − | gap: | + | gap: 1.25rem; |
margin-bottom: 1.5rem; | margin-bottom: 1.5rem; | ||
| − | border-bottom: | + | border-bottom: 1px solid var(--imu-border-soft); |
padding-bottom: 1rem; | padding-bottom: 1rem; | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| Line 407: | Line 358: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| − | background: var(--imu-accent-primary); | + | background: linear-gradient(135deg, var(--imu-accent-primary), var(--imu-accent-hover)); |
| − | color: | + | color: #fff; |
font-weight: 800; | font-weight: 800; | ||
| + | font-family: var(--imu-font-heading); | ||
font-size: 1.25rem; | font-size: 1.25rem; | ||
| − | height: | + | height: 45px; |
| − | width: | + | width: 45px; |
| − | border-radius: 50% | + | border-radius: 8px; /* Sharper edges than 50% for gaming UI */ |
| − | box-shadow: | + | box-shadow: 0 4px 12px var(--imu-accent-glow); |
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
| Line 420: | Line 372: | ||
/* Inline Code */ | /* Inline Code */ | ||
.imu-step-body code { | .imu-step-body code { | ||
| − | background: # | + | background: #1e1e24; |
| − | color: # | + | color: #38bdf8; |
padding: 0.2rem 0.5rem; | padding: 0.2rem 0.5rem; | ||
border-radius: 4px; | border-radius: 4px; | ||
| + | font-family: 'Courier New', Courier, monospace; | ||
font-weight: 600; | font-weight: 600; | ||
| − | border: 1px solid | + | border: 1px solid var(--imu-border-soft); |
} | } | ||
| − | /* | + | /* ========================================================= |
| − | . | + | 5. Buttons & Callouts |
| − | + | ========================================================= */ | |
| − | |||
| − | |||
.imu-btn-wrapper a.external { | .imu-btn-wrapper a.external { | ||
| Line 438: | Line 389: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| − | background: linear-gradient( | + | background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); |
| − | + | color: #ffffff !important; | |
| − | color: # | ||
text-decoration: none !important; | text-decoration: none !important; | ||
padding: 1rem 2.5rem; | padding: 1rem 2.5rem; | ||
| − | border-radius: | + | border-radius: 4px; /* Sharper aesthetic */ |
| − | font-family: var(--imu-font- | + | font-family: var(--imu-font-heading); |
| − | font-weight: | + | font-weight: 700; |
| + | letter-spacing: 1px; | ||
font-size: 1.1rem; | font-size: 1.1rem; | ||
| − | box-shadow: 0 4px 15px rgba(14, 165, 233, 0. | + | box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); |
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
background-image: none !important; | background-image: none !important; | ||
| − | + | border: 1px solid rgba(255, 255, 255, 0.1); | |
} | } | ||
.imu-btn-wrapper a.external::after { | .imu-btn-wrapper a.external::after { | ||
| − | content: ' | + | content: '»'; |
margin-left: 0.75rem; | margin-left: 0.75rem; | ||
| − | font- | + | font-size: 1.3rem; |
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
.imu-btn-wrapper a.external:hover { | .imu-btn-wrapper a.external:hover { | ||
| − | background- | + | background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%); |
transform: translateY(-3px); | transform: translateY(-3px); | ||
box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5); | box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5); | ||
| Line 467: | Line 418: | ||
.imu-btn-wrapper a.external:hover::after { | .imu-btn-wrapper a.external:hover::after { | ||
| − | transform: | + | transform: translateX(5px); |
} | } | ||
| − | /* Callouts | + | /* Callouts */ |
.imu-callout { | .imu-callout { | ||
| − | padding: 1.25rem; | + | padding: 1.25rem 1.5rem; |
| − | border-radius: | + | border-radius: 6px; |
margin: 1.5rem 0; | margin: 1.5rem 0; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
| + | background: #1a1a24; | ||
| + | box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); | ||
} | } | ||
.imu-callout-info { | .imu-callout-info { | ||
| − | + | border-left: 4px solid var(--imu-accent-primary); | |
| − | border-left: 4px solid var(--imu-accent- | + | color: #e2e8f0; |
| − | color: # | ||
} | } | ||
.imu-callout-warning { | .imu-callout-warning { | ||
| − | + | border-left: 4px solid #ef4444; | |
| − | + | color: #fca5a5; | |
| − | + | background: #241416; | |
} | } | ||
| − | /* | + | /* ========================================================= |
| − | . | + | 6. MediaWiki Galleries & Footer |
| − | + | ========================================================= */ | |
| − | |||
.imu-gallery-wrapper .gallerybox { | .imu-gallery-wrapper .gallerybox { | ||
background: transparent !important; | background: transparent !important; | ||
| − | |||
} | } | ||
| Line 505: | Line 455: | ||
overflow: hidden; | overflow: hidden; | ||
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
| − | background: | + | background: var(--imu-bg-content) !important; |
} | } | ||
.imu-gallery-wrapper .thumb:hover { | .imu-gallery-wrapper .thumb:hover { | ||
border-color: var(--imu-accent-primary) !important; | border-color: var(--imu-accent-primary) !important; | ||
| − | box-shadow: var(--imu- | + | box-shadow: 0 8px 20px var(--imu-accent-glow); |
| + | transform: scale(1.02); | ||
} | } | ||
.imu-gallery-wrapper .gallerytext { | .imu-gallery-wrapper .gallerytext { | ||
| − | |||
color: var(--imu-text-muted); | color: var(--imu-text-muted); | ||
| − | font-size: 0. | + | font-size: 0.9rem; |
| − | padding: 8px | + | padding: 12px 8px !important; |
} | } | ||
| Line 525: | Line 475: | ||
padding-top: 2rem; | padding-top: 2rem; | ||
border-top: 1px solid var(--imu-border-soft); | border-top: 1px solid var(--imu-border-soft); | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| Line 548: | Line 480: | ||
color: var(--imu-text-muted); | color: var(--imu-text-muted); | ||
text-decoration: none; | text-decoration: none; | ||
| − | font-weight: | + | font-weight: 600; |
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
display: inline-flex; | display: inline-flex; | ||
| Line 555: | Line 487: | ||
.imu-footer-links a::before { | .imu-footer-links a::before { | ||
| − | content: ' | + | content: '⟡'; /* Diamond/Magic icon instead of simple arrow */ |
| − | margin-right: 0. | + | margin-right: 0.6rem; |
color: var(--imu-accent-primary); | color: var(--imu-accent-primary); | ||
opacity: 0; | opacity: 0; | ||
| − | transform: | + | transform: scale(0.5); |
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
} | } | ||
.imu-footer-links a:hover { | .imu-footer-links a:hover { | ||
| − | color: var(--imu-accent- | + | color: var(--imu-accent-hover); |
| − | text- | + | text-shadow: 0 0 8px var(--imu-accent-glow); |
} | } | ||
.imu-footer-links a:hover::before { | .imu-footer-links a:hover::before { | ||
opacity: 1; | opacity: 1; | ||
| − | transform: | + | transform: scale(1); |
} | } | ||
Revision as of 20:04, 31 March 2026
/* ==========================================================================
InfinityMU Modern Dark Wiki UI - MediaWiki 1.31.1 Compatible
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Outfit:wght@300;400;600;700&display=swap');
:root {
/* Core Dark Theme Palette */
--imu-bg-body: #0a0a0c; /* Deep void background */
--imu-bg-content: #121215; /* Main content area */
--imu-bg-card: linear-gradient(145deg, #1a1a1f 0%, #131316 100%);
--imu-bg-hover: #1f1f25;
/* High-Contrast Text */
--imu-text-main: #e2e8f0; /* Crisp white/grey */
--imu-text-muted: #94a3b8;
--imu-text-heading: #FFD28C; /* Classic MU Gold */
/* Magical Accents */
--imu-accent-primary: #0ea5e9; /* Infinity Blue */
--imu-accent-hover: #38bdf8;
--imu-accent-gold: #e69100;
--imu-accent-glow: rgba(14, 165, 233, 0.15);
/* Structural & Depth */
--imu-border-soft: #2a2a35;
--imu-border-glow: #3a3a4a;
--imu-radius: 12px;
/* Shadows */
--imu-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
--imu-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
--imu-shadow-hover: 0 12px 28px var(--imu-accent-glow);
/* Typography */
--imu-font-heading: 'Cinzel', serif;
--imu-font-body: 'Outfit', sans-serif;
/* Motion */
--imu-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* =========================================================
1. MediaWiki Native Overrides (The Dark Foundation)
========================================================= */
body {
background-color: var(--imu-bg-body);
color: var(--imu-text-main);
font-family: var(--imu-font-body);
}
#content {
background-color: var(--imu-bg-content);
color: var(--imu-text-main);
border: 1px solid var(--imu-border-soft);
border-radius: var(--imu-radius);
box-shadow: var(--imu-shadow-md);
margin-top: 1em;
padding: 2.5em;
background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
color: var(--imu-text-heading) !important;
font-family: var(--imu-font-heading);
border-bottom: 1px solid var(--imu-border-soft);
padding-bottom: 0.3em;
}
/* Links */
a { color: var(--imu-accent-primary); transition: var(--imu-transition); }
a:visited { color: #0284c7; }
a:hover { color: var(--imu-accent-hover); text-decoration: none; text-shadow: 0 0 8px var(--imu-accent-glow); }
/* Tables */
.wikitable {
background-color: #16161a !important;
color: var(--imu-text-main) !important;
border: 1px solid var(--imu-border-soft) !important;
border-collapse: collapse;
box-shadow: var(--imu-shadow-sm);
}
.wikitable th {
background-color: #1f1f25 !important;
color: var(--imu-accent-gold) !important;
font-family: var(--imu-font-heading);
border: 1px solid var(--imu-border-soft) !important;
}
.wikitable td {
border: 1px solid var(--imu-border-soft) !important;
}
/* Table of Contents */
.toc, .toccolours {
background: var(--imu-bg-card);
border: 1px solid var(--imu-border-soft);
border-radius: 8px;
box-shadow: var(--imu-shadow-sm);
}
.toc h2 { border: none; }
/* =========================================================
2. Custom Components (Sidebar, Guides, Heroes)
========================================================= */
.imu-guide-wrapper *,
.wiki-sidebar * {
box-sizing: border-box;
}
/* Sidebar Container */
.wiki-sidebar {
width: 270px;
background: var(--imu-bg-card);
border-right: 1px solid var(--imu-border-soft);
box-shadow: var(--imu-shadow-md);
display: flex;
flex-direction: column;
gap: 1.5rem;
padding: 2rem 0;
border-radius: 0 16px 16px 0;
position: relative;
overflow: hidden;
}
.wiki-sidebar::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 180px;
background: radial-gradient(circle at top right, var(--imu-accent-glow) 0%, transparent 70%);
pointer-events: none;
}
/* Logo Area */
.sidebar-logo {
text-align: center;
padding: 0 1.5rem 1rem;
border-bottom: 1px solid var(--imu-border-soft);
position: relative;
z-index: 2;
}
.sidebar-logo h2 {
color: var(--imu-text-heading);
font-family: var(--imu-font-heading);
font-size: 1.4rem;
letter-spacing: 2px;
border: none;
text-shadow: 0 2px 10px rgba(255, 210, 140, 0.2);
}
/* Navigation Sections */
.nav-section {
padding: 0 1.5rem;
position: relative;
z-index: 2;
}
.nav-header {
font-family: var(--imu-font-heading);
color: var(--imu-accent-primary);
font-size: 0.9rem;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
margin-bottom: 0.75rem;
}
.nav-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 4px;
margin: 0;
padding: 0;
}
.nav-link {
font-family: var(--imu-font-body);
font-weight: 500;
font-size: 0.95rem;
color: var(--imu-text-muted);
text-decoration: none;
padding: 8px 12px;
border-radius: 8px;
position: relative;
display: block;
transition: var(--imu-transition);
border: 1px solid transparent;
}
/* Tactile CSS-only Micro-interaction */
.nav-link::before {
content: '';
position: absolute;
left: -4px;
top: 50%;
transform: translateY(-50%) scaleY(0);
height: 60%;
width: 3px;
background-color: var(--imu-accent-primary);
border-radius: 4px;
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
box-shadow: 0 0 8px var(--imu-accent-primary);
}
.nav-link:hover {
color: var(--imu-text-main);
background-color: var(--imu-bg-hover);
border-color: var(--imu-border-soft);
box-shadow: var(--imu-shadow-sm);
transform: translateX(4px);
}
.nav-link:hover::before {
transform: translateY(-50%) scaleY(1);
}
/* =========================================================
3. InsaniaMU Specific Sidebar Highlight
========================================================= */
:root {
--insania-accent: #ffb700;
--insania-accent-hover: #ff3333;
--insania-bg-dark: #1a0505;
--insania-bg-light: #2a0d15;
--insania-glow: rgba(255, 51, 51, 0.4); /* Blood red glow */
}
#mw-panel a[href*="insaniamu.com"],
#column-one a[href*="insaniamu.com"],
.mw-portlet a[href*="insaniamu.com"] {
position: relative;
display: block;
margin: 12px 0 4px -8px;
padding: 8px 12px;
color: #fff !important;
font-family: var(--imu-font-heading);
font-weight: 700;
font-size: 0.95em;
letter-spacing: 0.5px;
text-decoration: none;
background: linear-gradient(135deg, var(--insania-bg-dark) 0%, var(--insania-bg-light) 100%);
border-left: 3px solid var(--insania-accent);
border-radius: 0 6px 6px 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
overflow: hidden;
transition: var(--imu-transition);
z-index: 1;
}
/* Shimmer Sweep Animation Layer */
#mw-panel a[href*="insaniamu.com"]::before,
#column-one a[href*="insaniamu.com"]::before,
.mw-portlet a[href*="insaniamu.com"]::before {
content: '';
position: absolute;
top: 0; left: -150%;
width: 150%; height: 100%;
background: linear-gradient(90deg, transparent 0%, rgba(255, 183, 0, 0.2) 50%, transparent 100%);
transform: skewX(-25deg);
transition: left 0.6s ease-in-out;
z-index: -1;
}
#mw-panel a[href*="insaniamu.com"]:hover,
#column-one a[href*="insaniamu.com"]:hover,
.mw-portlet a[href*="insaniamu.com"]:hover {
transform: translateX(6px);
border-left-color: var(--insania-accent-hover);
box-shadow: 0 6px 20px var(--insania-glow);
text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
#mw-panel a[href*="insaniamu.com"]:hover::before,
#column-one a[href*="insaniamu.com"]:hover::before,
.mw-portlet a[href*="insaniamu.com"]:hover::before {
left: 150%;
}
/* =========================================================
4. Article UI Details (Heroes, Steps, Code)
========================================================= */
.imu-guide-wrapper {
font-family: var(--imu-font-body);
color: var(--imu-text-main);
background-color: transparent;
padding: 1rem 0;
max-width: 1000px;
margin: 0 auto;
line-height: 1.7;
}
/* Hero Section */
.imu-hero-section {
background: var(--imu-bg-card);
border-left: 4px solid var(--imu-accent-primary);
padding: 2.5rem;
border-radius: var(--imu-radius);
box-shadow: var(--imu-shadow-md);
margin-bottom: 2.5rem;
position: relative;
overflow: hidden;
}
.imu-hero-section::after {
content: '';
position: absolute;
right: 0; bottom: 0;
width: 300px; height: 300px;
background: radial-gradient(circle, var(--imu-accent-glow) 0%, transparent 70%);
pointer-events: none;
}
.imu-heading-primary {
font-size: 2.5rem;
font-weight: 700;
color: var(--imu-text-heading);
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
border-bottom: none;
}
/* Step Containers */
.imu-step-container {
background: var(--imu-bg-card);
border: 1px solid var(--imu-border-soft);
border-radius: var(--imu-radius);
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--imu-shadow-sm);
transition: var(--imu-transition);
}
.imu-step-container:hover {
box-shadow: var(--imu-shadow-hover);
border-color: var(--imu-border-glow);
transform: translateY(-3px);
}
.imu-step-header {
display: flex;
align-items: center;
gap: 1.25rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--imu-border-soft);
padding-bottom: 1rem;
}
.imu-step-number {
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--imu-accent-primary), var(--imu-accent-hover));
color: #fff;
font-weight: 800;
font-family: var(--imu-font-heading);
font-size: 1.25rem;
height: 45px;
width: 45px;
border-radius: 8px; /* Sharper edges than 50% for gaming UI */
box-shadow: 0 4px 12px var(--imu-accent-glow);
flex-shrink: 0;
}
/* Inline Code */
.imu-step-body code {
background: #1e1e24;
color: #38bdf8;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-family: 'Courier New', Courier, monospace;
font-weight: 600;
border: 1px solid var(--imu-border-soft);
}
/* =========================================================
5. Buttons & Callouts
========================================================= */
.imu-btn-wrapper a.external {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
color: #ffffff !important;
text-decoration: none !important;
padding: 1rem 2.5rem;
border-radius: 4px; /* Sharper aesthetic */
font-family: var(--imu-font-heading);
font-weight: 700;
letter-spacing: 1px;
font-size: 1.1rem;
box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
transition: var(--imu-transition);
background-image: none !important;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.imu-btn-wrapper a.external::after {
content: '»';
margin-left: 0.75rem;
font-size: 1.3rem;
transition: transform 0.3s ease;
}
.imu-btn-wrapper a.external:hover {
background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}
.imu-btn-wrapper a.external:hover::after {
transform: translateX(5px);
}
/* Callouts */
.imu-callout {
padding: 1.25rem 1.5rem;
border-radius: 6px;
margin: 1.5rem 0;
font-size: 0.95rem;
background: #1a1a24;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.imu-callout-info {
border-left: 4px solid var(--imu-accent-primary);
color: #e2e8f0;
}
.imu-callout-warning {
border-left: 4px solid #ef4444;
color: #fca5a5;
background: #241416;
}
/* =========================================================
6. MediaWiki Galleries & Footer
========================================================= */
.imu-gallery-wrapper .gallerybox {
background: transparent !important;
}
.imu-gallery-wrapper .thumb {
border: 1px solid var(--imu-border-soft) !important;
border-radius: 8px;
overflow: hidden;
transition: var(--imu-transition);
background: var(--imu-bg-content) !important;
}
.imu-gallery-wrapper .thumb:hover {
border-color: var(--imu-accent-primary) !important;
box-shadow: 0 8px 20px var(--imu-accent-glow);
transform: scale(1.02);
}
.imu-gallery-wrapper .gallerytext {
color: var(--imu-text-muted);
font-size: 0.9rem;
padding: 12px 8px !important;
}
/* Footer Links */
.imu-footer-links {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--imu-border-soft);
}
.imu-footer-links a {
color: var(--imu-text-muted);
text-decoration: none;
font-weight: 600;
transition: var(--imu-transition);
display: inline-flex;
align-items: center;
}
.imu-footer-links a::before {
content: '⟡'; /* Diamond/Magic icon instead of simple arrow */
margin-right: 0.6rem;
color: var(--imu-accent-primary);
opacity: 0;
transform: scale(0.5);
transition: var(--imu-transition);
}
.imu-footer-links a:hover {
color: var(--imu-accent-hover);
text-shadow: 0 0 8px var(--imu-accent-glow);
}
.imu-footer-links a:hover::before {
opacity: 1;
transform: scale(1);
}