Difference between revisions of "MediaWiki:Common.css"
| Line 1: | Line 1: | ||
/* ========================================================================== | /* ========================================================================== | ||
| − | InfinityMU Modern | + | InfinityMU Modern 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@600;700&family=Nunito:wght@400;600;700;800&display=swap'); |
:root { | :root { | ||
| − | /* | + | /* Colors */ |
| − | --imu-bg- | + | --imu-bg-main: #f8fafc; |
| − | + | --imu-bg-card: #ffffff; | |
| − | --imu-bg-card: | + | --imu-text-main: #334155; |
| − | + | --imu-text-muted: #64748b; | |
| − | + | --imu-accent-primary: #0ea5e9; | |
| − | + | --imu-accent-hover: #0284c7; | |
| − | --imu-text-main: # | + | --imu-accent-gold: #d97706; |
| − | --imu-text-muted: # | + | --imu-border-soft: #e2e8f0; |
| − | |||
| − | |||
| − | |||
| − | --imu-accent-primary: #0ea5e9; | ||
| − | --imu-accent-hover: # | ||
| − | --imu-accent-gold: # | ||
| − | |||
| − | |||
| − | |||
| − | --imu-border-soft: # | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
/* Typography */ | /* Typography */ | ||
--imu-font-heading: 'Cinzel', serif; | --imu-font-heading: 'Cinzel', serif; | ||
| − | --imu-font-body: ' | + | --imu-font-body: 'Nunito', sans-serif; |
| − | /* | + | /* Effects */ |
| − | --imu-transition: all 0. | + | --imu-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); |
| − | + | --imu-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04); | |
| + | --imu-radius: 12px; | ||
| + | --imu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | ||
| − | /* | + | /* Layered ethereal backgrounds */ |
| − | + | --bg-base: #f1f5f9; | |
| − | + | --bg-panel: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); | |
| − | + | --bg-hover: #ffffff; | |
| − | + | ||
| − | + | /* High-contrast text */ | |
| − | + | --text-main: #0f172a; | |
| − | + | --text-muted: #64748b; | |
| − | + | ||
| − | + | /* Magical Accents */ | |
| − | + | --accent-primary: #0284c7; /* Infinity Blue */ | |
| − | + | --accent-hover: #0ea5e9; | |
| − | + | --accent-bg: rgba(2, 132, 199, 0.08); | |
| − | + | ||
| − | + | /* Structural */ | |
| − | + | --border-subtle: #e2e8f0; | |
| − | + | --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05); | |
| − | + | --shadow-hover: 0 10px 25px rgba(2, 132, 199, 0.15); | |
| − | + | ||
| + | /* Typography */ | ||
| + | --font-headers: 'Cinzel', serif; | ||
| + | --font-links: 'Plus Jakarta Sans', sans-serif; | ||
} | } | ||
| − | /* | + | /* Scoped Reset to protect MediaWiki's native layout */ |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
.imu-guide-wrapper *, | .imu-guide-wrapper *, | ||
.wiki-sidebar * { | .wiki-sidebar * { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | body { | ||
| + | background-color: var(--bg-base); | ||
| + | /* Removed display: flex and padding here to restore MW layout */ | ||
} | } | ||
| Line 116: | Line 64: | ||
.wiki-sidebar { | .wiki-sidebar { | ||
width: 270px; | width: 270px; | ||
| − | background: var(- | + | background: var(--bg-panel); |
| − | border-right: 1px solid var(- | + | border-right: 1px solid var(--border-subtle); |
| − | box-shadow: var(- | + | box-shadow: var(--shadow-soft); |
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 128: | Line 76: | ||
} | } | ||
| + | /* Subtle geometric overlay for depth */ | ||
.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: 150px; |
| − | background: radial-gradient(circle at top right, var(- | + | background: radial-gradient(circle at top right, var(--accent-bg) 0%, transparent 70%); |
pointer-events: none; | pointer-events: none; | ||
} | } | ||
| Line 140: | Line 89: | ||
text-align: center; | text-align: center; | ||
padding: 0 1.5rem 1rem; | padding: 0 1.5rem 1rem; | ||
| − | border-bottom: 1px solid var(- | + | border-bottom: 1px solid var(--border-subtle); |
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
| Line 146: | Line 95: | ||
.sidebar-logo h2 { | .sidebar-logo h2 { | ||
| − | color: var(- | + | color: var(--text-main); |
| − | font-family: var(- | + | font-family: var(--font-headers); |
font-size: 1.4rem; | font-size: 1.4rem; | ||
letter-spacing: 2px; | letter-spacing: 2px; | ||
| − | + | text-shadow: 0 2px 4px rgba(0,0,0,0.05); | |
| − | text-shadow: 0 2px | ||
} | } | ||
| Line 162: | Line 110: | ||
.nav-header { | .nav-header { | ||
| − | font-family: var(- | + | font-family: var(--font-headers); |
| − | color: var(- | + | color: var(--accent-primary); |
| − | font-size: 0. | + | font-size: 0.85rem; |
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 1.5px; | letter-spacing: 1.5px; | ||
| Line 176: | Line 124: | ||
flex-direction: column; | flex-direction: column; | ||
gap: 4px; | gap: 4px; | ||
| − | margin: 0; | + | margin: 0; /* Added to fix list spacing */ |
| − | padding: 0; | + | padding: 0; /* Added to fix list spacing */ |
} | } | ||
.nav-link { | .nav-link { | ||
| − | font-family: var(- | + | font-family: var(--font-links); |
font-weight: 500; | font-weight: 500; | ||
| − | font-size: 0. | + | font-size: 0.9rem; |
| − | color: var(- | + | color: var(--text-muted); |
text-decoration: none; | text-decoration: none; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| Line 190: | Line 138: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
| − | transition: | + | transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); |
border: 1px solid transparent; | border: 1px solid transparent; | ||
} | } | ||
| Line 203: | Line 151: | ||
height: 60%; | height: 60%; | ||
width: 3px; | width: 3px; | ||
| − | background-color: var(- | + | background-color: var(--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); | ||
| − | |||
} | } | ||
.nav-link:hover { | .nav-link:hover { | ||
| − | color: var(-- | + | color: var(--accent-primary); |
| − | background-color: var(- | + | background-color: var(--bg-hover); |
| − | border-color: var(- | + | border-color: var(--border-subtle); |
| − | box-shadow: var(- | + | box-shadow: var(--shadow-hover); |
transform: translateX(4px); | transform: translateX(4px); | ||
| + | text-decoration: none; | ||
} | } | ||
.nav-link:hover::before { | .nav-link:hover::before { | ||
transform: translateY(-50%) scaleY(1); | transform: translateY(-50%) scaleY(1); | ||
| + | } | ||
| + | |||
| + | /* CSS-Only Accordion for Sub-menus */ | ||
| + | details.nav-accordion summary { | ||
| + | list-style: none; | ||
| + | cursor: pointer; | ||
| + | font-family: var(--font-headers); | ||
| + | color: var(--accent-primary); | ||
| + | font-size: 0.85rem; | ||
| + | font-weight: 700; | ||
| + | letter-spacing: 1.5px; | ||
| + | text-transform: uppercase; | ||
| + | padding: 8px 0; | ||
| + | border-top: 1px solid var(--border-subtle); | ||
| + | margin-top: 1rem; | ||
| + | display: flex; | ||
| + | justify-content: space-between; | ||
| + | align-items: center; | ||
| + | transition: color 0.3s ease; | ||
| + | } | ||
| + | |||
| + | details.nav-accordion summary::-webkit-details-marker { | ||
| + | display: none; | ||
| + | } | ||
| + | |||
| + | details.nav-accordion summary::after { | ||
| + | content: '↓'; | ||
| + | color: var(--text-muted); | ||
| + | font-family: sans-serif; | ||
| + | font-size: 1rem; | ||
| + | transition: transform 0.3s ease; | ||
| + | } | ||
| + | |||
| + | details.nav-accordion[open] summary::after { | ||
| + | transform: rotate(180deg); | ||
| + | color: var(--accent-primary); | ||
| + | } | ||
| + | |||
| + | .accordion-content { | ||
| + | padding-top: 8px; | ||
| + | } | ||
| + | |||
| + | /* Portal CTA Links */ | ||
| + | .portal-links { | ||
| + | margin-top: auto; | ||
| + | padding: 1.5rem; | ||
| + | background: var(--accent-bg); | ||
| + | border-top: 1px solid rgba(2, 132, 199, 0.1); | ||
| + | position: relative; | ||
| + | z-index: 2; | ||
| + | } | ||
| + | |||
| + | .portal-btn { | ||
| + | display: flex; | ||
| + | align-items: center; | ||
| + | justify-content: space-between; | ||
| + | background: #ffffff; | ||
| + | color: var(--text-main); | ||
| + | font-family: var(--font-links); | ||
| + | font-weight: 600; | ||
| + | font-size: 0.9rem; | ||
| + | text-decoration: none; | ||
| + | padding: 10px 15px; | ||
| + | border-radius: 6px; | ||
| + | margin-bottom: 8px; | ||
| + | border: 1px solid var(--border-subtle); | ||
| + | transition: all 0.3s ease; | ||
| + | } | ||
| + | |||
| + | .portal-btn span { | ||
| + | color: var(--accent-primary); | ||
| + | transition: transform 0.3s ease; | ||
| + | } | ||
| + | |||
| + | .portal-btn:hover { | ||
| + | border-color: var(--accent-primary); | ||
| + | box-shadow: var(--shadow-hover); | ||
| + | color: var(--accent-primary); | ||
| + | text-decoration: none; | ||
| + | } | ||
| + | |||
| + | .portal-btn:hover span { | ||
| + | transform: translateX(4px); | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
| − | + | InsaniaMU Sidebar Highlight | |
========================================================= */ | ========================================================= */ | ||
:root { | :root { | ||
| − | --insania-accent: #ffb700; | + | /* Cohesive Theme Variables */ |
| − | --insania-accent-hover: #ff3333; | + | --insania-accent: #ffb700; /* Deep Gold */ |
| + | --insania-accent-hover: #ff3333; /* Crimson / Blood Red */ | ||
--insania-bg-dark: #1a0505; | --insania-bg-dark: #1a0505; | ||
--insania-bg-light: #2a0d15; | --insania-bg-light: #2a0d15; | ||
| − | --insania-glow: rgba(255, | + | --insania-glow: rgba(255, 183, 0, 0.25); |
} | } | ||
| − | #mw-panel a[href | + | /* Target the specific InsaniaMU link in Vector and Monobook skins */ |
| − | #column-one a[href | + | #mw-panel a[href="https://insaniamu.com"], |
| − | .mw-portlet a[href | + | #column-one a[href="https://insaniamu.com"], |
| + | .mw-portlet a[href="https://insaniamu.com"] { | ||
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: #f8f8f8 !important; |
| − | font-family: | + | font-family: 'Cinzel', 'Trajan Pro', serif, system-ui; |
font-weight: 700; | font-weight: 700; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
| Line 247: | Line 280: | ||
text-decoration: none; | text-decoration: none; | ||
| + | /* Layered background depth */ | ||
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.4); |
overflow: hidden; | overflow: hidden; | ||
| − | transition: | + | |
| + | /* Smooth micro-interaction transition */ | ||
| + | transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); | ||
z-index: 1; | z-index: 1; | ||
} | } | ||
| − | /* | + | /* CSS-only animation layer for the shimmer effect */ |
| − | #mw-panel a[href | + | #mw-panel a[href="https://insaniamu.com"]::before, |
| − | #column-one a[href | + | #column-one a[href="https://insaniamu.com"]::before, |
| − | .mw-portlet a[href | + | .mw-portlet a[href="https://insaniamu.com"]::before { |
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
| − | top: 0; left: -150%; | + | top: 0; |
| − | width: 150%; height: 100%; | + | left: -150%; |
| − | background: linear-gradient(90deg, transparent 0%, rgba(255, 183, 0, 0. | + | width: 150%; |
| + | height: 100%; | ||
| + | background: linear-gradient( | ||
| + | 90deg, | ||
| + | transparent 0%, | ||
| + | rgba(255, 183, 0, 0.15) 50%, | ||
| + | transparent 100% | ||
| + | ); | ||
transform: skewX(-25deg); | transform: skewX(-25deg); | ||
transition: left 0.6s ease-in-out; | transition: left 0.6s ease-in-out; | ||
| Line 270: | Line 313: | ||
} | } | ||
| − | #mw-panel a[href | + | /* High-impact hover state */ |
| − | #column-one a[href | + | #mw-panel a[href="https://insaniamu.com"]:hover, |
| − | .mw-portlet a[href | + | #column-one a[href="https://insaniamu.com"]:hover, |
| + | .mw-portlet a[href="https://insaniamu.com"]:hover { | ||
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 16px var(--insania-glow); |
| − | text- | + | color: #ffffff !important; |
| + | text-decoration: none; | ||
} | } | ||
| − | #mw-panel a[href | + | /* Trigger the shimmer sweep on hover */ |
| − | #column-one a[href | + | #mw-panel a[href="https://insaniamu.com"]:hover::before, |
| − | .mw-portlet a[href | + | #column-one a[href="https://insaniamu.com"]:hover::before, |
| + | .mw-portlet a[href="https://insaniamu.com"]:hover::before { | ||
left: 150%; | left: 150%; | ||
} | } | ||
| − | /* | + | /* Wrapper & Typography */ |
| − | |||
| − | |||
| − | |||
.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: var(--imu-bg-main); |
| − | padding: | + | padding: 2rem; |
| − | max-width: | + | border-radius: var(--imu-radius); |
| + | max-width: 900px; | ||
margin: 0 auto; | margin: 0 auto; | ||
| − | line-height: 1. | + | line-height: 1.6; |
| + | } | ||
| + | |||
| + | .imu-heading-primary, | ||
| + | .imu-heading-secondary, | ||
| + | .imu-heading-tertiary { | ||
| + | font-family: var(--imu-font-heading); | ||
| + | color: #0f172a; | ||
| + | margin-top: 0; | ||
| + | margin-bottom: 0.5rem; | ||
} | } | ||
/* Hero Section */ | /* Hero Section */ | ||
.imu-hero-section { | .imu-hero-section { | ||
| − | background: | + | background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); |
border-left: 4px solid var(--imu-accent-primary); | border-left: 4px solid var(--imu-accent-primary); | ||
| − | padding: | + | padding: 2rem; |
border-radius: var(--imu-radius); | border-radius: var(--imu-radius); | ||
| − | box-shadow: var(--imu-shadow- | + | box-shadow: var(--imu-shadow-sm); |
margin-bottom: 2.5rem; | margin-bottom: 2.5rem; | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| Line 323: | Line 365: | ||
font-size: 2.5rem; | font-size: 2.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
| − | + | letter-spacing: -0.02em; | |
| − | + | } | |
| − | + | ||
| + | .imu-lead-text { | ||
| + | font-size: 1.15rem; | ||
| + | color: var(--imu-text-muted); | ||
} | } | ||
| Line 340: | Line 385: | ||
.imu-step-container:hover { | .imu-step-container:hover { | ||
| − | box-shadow: var(--imu-shadow- | + | box-shadow: var(--imu-shadow-md); |
| − | + | transform: translateY(-2px); | |
| − | transform: translateY(- | ||
} | } | ||
| Line 348: | Line 392: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| − | gap: | + | gap: 1rem; |
margin-bottom: 1.5rem; | margin-bottom: 1.5rem; | ||
| − | border-bottom: | + | border-bottom: 2px solid var(--imu-bg-main); |
padding-bottom: 1rem; | padding-bottom: 1rem; | ||
| + | } | ||
| + | |||
| + | .imu-heading-secondary { | ||
| + | font-size: 1.75rem; | ||
| + | font-weight: 600; | ||
} | } | ||
| Line 358: | Line 407: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| − | background: | + | background: var(--imu-accent-primary); |
| − | color: | + | color: white; |
font-weight: 800; | font-weight: 800; | ||
| − | |||
font-size: 1.25rem; | font-size: 1.25rem; | ||
| − | height: | + | height: 40px; |
| − | width: | + | width: 40px; |
| − | border-radius: | + | border-radius: 50%; |
| − | box-shadow: 0 4px | + | box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); |
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
| Line 372: | Line 420: | ||
/* Inline Code */ | /* Inline Code */ | ||
.imu-step-body code { | .imu-step-body code { | ||
| − | background: # | + | background: #f1f5f9; |
| − | color: # | + | color: #166534; |
padding: 0.2rem 0.5rem; | padding: 0.2rem 0.5rem; | ||
border-radius: 4px; | border-radius: 4px; | ||
| − | |||
font-weight: 600; | font-weight: 600; | ||
| − | border: 1px solid | + | border: 1px solid #cbd5e1; |
} | } | ||
| − | /* | + | /* MW External Link Overrides for Button */ |
| − | + | .imu-btn-wrapper { | |
| − | + | margin-top: 1.5rem; | |
| + | display: inline-block; | ||
| + | } | ||
.imu-btn-wrapper a.external { | .imu-btn-wrapper a.external { | ||
| Line 389: | Line 438: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| − | background: linear-gradient( | + | background: linear-gradient(45deg, var(--imu-accent-primary), var(--imu-accent-hover)); |
| − | color: # | + | background-size: 200% auto; |
| + | color: #0ea5e9 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
padding: 1rem 2.5rem; | padding: 1rem 2.5rem; | ||
| − | border-radius: | + | border-radius: 50px; |
| − | font-family: var(--imu-font- | + | font-family: var(--imu-font-body); |
| − | font-weight: | + | font-weight: 800; |
| − | |||
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.4); |
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
background-image: none !important; | background-image: none !important; | ||
| − | + | padding-right: 2.5rem !important; | |
} | } | ||
.imu-btn-wrapper a.external::after { | .imu-btn-wrapper a.external::after { | ||
| − | content: ' | + | content: '↓'; |
margin-left: 0.75rem; | margin-left: 0.75rem; | ||
| − | font- | + | font-weight: 800; |
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
.imu-btn-wrapper a.external:hover { | .imu-btn-wrapper a.external:hover { | ||
| − | background: | + | background-position: right center; |
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 418: | Line 467: | ||
.imu-btn-wrapper a.external:hover::after { | .imu-btn-wrapper a.external:hover::after { | ||
| − | transform: | + | transform: translateY(3px); |
} | } | ||
| − | /* Callouts */ | + | /* Callouts / Info Boxes */ |
.imu-callout { | .imu-callout { | ||
| − | padding: 1.25rem | + | padding: 1.25rem; |
| − | border-radius: | + | border-radius: 8px; |
margin: 1.5rem 0; | margin: 1.5rem 0; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
| − | |||
| − | |||
} | } | ||
.imu-callout-info { | .imu-callout-info { | ||
| − | border-left: 4px solid var(--imu-accent- | + | background-color: #fefce8; |
| − | color: # | + | border-left: 4px solid var(--imu-accent-gold); |
| + | color: #854d0e; | ||
} | } | ||
.imu-callout-warning { | .imu-callout-warning { | ||
| − | border-left: 4px solid # | + | background-color: #fff1f2; |
| − | color: # | + | border-left: 4px solid #e11d48; |
| − | + | color: #9f1239; | |
} | } | ||
| − | /* | + | /* Gallery Restyling */ |
| − | + | .imu-gallery-wrapper ul.gallery { | |
| − | + | margin: 1.5rem 0 0 0 !important; | |
| + | } | ||
.imu-gallery-wrapper .gallerybox { | .imu-gallery-wrapper .gallerybox { | ||
background: transparent !important; | background: transparent !important; | ||
| + | border: none !important; | ||
} | } | ||
| Line 455: | Line 505: | ||
overflow: hidden; | overflow: hidden; | ||
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
| − | background: | + | background: #fff !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: | + | box-shadow: var(--imu-shadow-sm); |
| − | |||
} | } | ||
.imu-gallery-wrapper .gallerytext { | .imu-gallery-wrapper .gallerytext { | ||
| + | font-family: var(--imu-font-body); | ||
color: var(--imu-text-muted); | color: var(--imu-text-muted); | ||
| − | font-size: 0. | + | font-size: 0.85rem; |
| − | padding: | + | padding: 8px 4px !important; |
} | } | ||
| Line 475: | Line 525: | ||
padding-top: 2rem; | padding-top: 2rem; | ||
border-top: 1px solid var(--imu-border-soft); | border-top: 1px solid var(--imu-border-soft); | ||
| + | } | ||
| + | |||
| + | .imu-heading-tertiary { | ||
| + | font-size: 1.25rem; | ||
| + | margin-bottom: 1rem; | ||
| + | } | ||
| + | |||
| + | .imu-footer-links ul { | ||
| + | list-style-type: none; | ||
| + | padding: 0; | ||
| + | margin: 0; | ||
| + | display: flex; | ||
| + | flex-direction: column; | ||
| + | gap: 0.75rem; | ||
| + | } | ||
| + | |||
| + | .imu-footer-links li { | ||
| + | margin: 0; | ||
} | } | ||
| Line 480: | Line 548: | ||
color: var(--imu-text-muted); | color: var(--imu-text-muted); | ||
text-decoration: none; | text-decoration: none; | ||
| − | font-weight: | + | font-weight: 700; |
transition: var(--imu-transition); | transition: var(--imu-transition); | ||
display: inline-flex; | display: inline-flex; | ||
| Line 487: | Line 555: | ||
.imu-footer-links a::before { | .imu-footer-links a::before { | ||
| − | content: ' | + | content: '→'; |
| − | margin-right: 0. | + | margin-right: 0.5rem; |
color: var(--imu-accent-primary); | color: var(--imu-accent-primary); | ||
opacity: 0; | opacity: 0; | ||
| − | transform: | + | transform: translateX(-10px); |
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-primary); |
| − | text- | + | text-decoration: none; |
} | } | ||
.imu-footer-links a:hover::before { | .imu-footer-links a:hover::before { | ||
opacity: 1; | opacity: 1; | ||
| − | transform: | + | transform: translateX(0); |
} | } | ||
Latest revision as of 20:14, 31 March 2026
/* ==========================================================================
InfinityMU Modern Wiki UI - MediaWiki 1.31.1 Compatible
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap');
:root {
/* Colors */
--imu-bg-main: #f8fafc;
--imu-bg-card: #ffffff;
--imu-text-main: #334155;
--imu-text-muted: #64748b;
--imu-accent-primary: #0ea5e9;
--imu-accent-hover: #0284c7;
--imu-accent-gold: #d97706;
--imu-border-soft: #e2e8f0;
/* Typography */
--imu-font-heading: 'Cinzel', serif;
--imu-font-body: 'Nunito', sans-serif;
/* Effects */
--imu-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
--imu-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
--imu-radius: 12px;
--imu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
/* Layered ethereal backgrounds */
--bg-base: #f1f5f9;
--bg-panel: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
--bg-hover: #ffffff;
/* High-contrast text */
--text-main: #0f172a;
--text-muted: #64748b;
/* Magical Accents */
--accent-primary: #0284c7; /* Infinity Blue */
--accent-hover: #0ea5e9;
--accent-bg: rgba(2, 132, 199, 0.08);
/* Structural */
--border-subtle: #e2e8f0;
--shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
--shadow-hover: 0 10px 25px rgba(2, 132, 199, 0.15);
/* Typography */
--font-headers: 'Cinzel', serif;
--font-links: 'Plus Jakarta Sans', sans-serif;
}
/* Scoped Reset to protect MediaWiki's native layout */
.imu-guide-wrapper *,
.wiki-sidebar * {
box-sizing: border-box;
}
body {
background-color: var(--bg-base);
/* Removed display: flex and padding here to restore MW layout */
}
/* Sidebar Container */
.wiki-sidebar {
width: 270px;
background: var(--bg-panel);
border-right: 1px solid var(--border-subtle);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
gap: 1.5rem;
padding: 2rem 0;
border-radius: 0 16px 16px 0;
position: relative;
overflow: hidden;
}
/* Subtle geometric overlay for depth */
.wiki-sidebar::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 150px;
background: radial-gradient(circle at top right, var(--accent-bg) 0%, transparent 70%);
pointer-events: none;
}
/* Logo Area */
.sidebar-logo {
text-align: center;
padding: 0 1.5rem 1rem;
border-bottom: 1px solid var(--border-subtle);
position: relative;
z-index: 2;
}
.sidebar-logo h2 {
color: var(--text-main);
font-family: var(--font-headers);
font-size: 1.4rem;
letter-spacing: 2px;
text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* Navigation Sections */
.nav-section {
padding: 0 1.5rem;
position: relative;
z-index: 2;
}
.nav-header {
font-family: var(--font-headers);
color: var(--accent-primary);
font-size: 0.85rem;
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; /* Added to fix list spacing */
padding: 0; /* Added to fix list spacing */
}
.nav-link {
font-family: var(--font-links);
font-weight: 500;
font-size: 0.9rem;
color: var(--text-muted);
text-decoration: none;
padding: 8px 12px;
border-radius: 8px;
position: relative;
display: block;
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
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(--accent-primary);
border-radius: 4px;
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-link:hover {
color: var(--accent-primary);
background-color: var(--bg-hover);
border-color: var(--border-subtle);
box-shadow: var(--shadow-hover);
transform: translateX(4px);
text-decoration: none;
}
.nav-link:hover::before {
transform: translateY(-50%) scaleY(1);
}
/* CSS-Only Accordion for Sub-menus */
details.nav-accordion summary {
list-style: none;
cursor: pointer;
font-family: var(--font-headers);
color: var(--accent-primary);
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
padding: 8px 0;
border-top: 1px solid var(--border-subtle);
margin-top: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: color 0.3s ease;
}
details.nav-accordion summary::-webkit-details-marker {
display: none;
}
details.nav-accordion summary::after {
content: '↓';
color: var(--text-muted);
font-family: sans-serif;
font-size: 1rem;
transition: transform 0.3s ease;
}
details.nav-accordion[open] summary::after {
transform: rotate(180deg);
color: var(--accent-primary);
}
.accordion-content {
padding-top: 8px;
}
/* Portal CTA Links */
.portal-links {
margin-top: auto;
padding: 1.5rem;
background: var(--accent-bg);
border-top: 1px solid rgba(2, 132, 199, 0.1);
position: relative;
z-index: 2;
}
.portal-btn {
display: flex;
align-items: center;
justify-content: space-between;
background: #ffffff;
color: var(--text-main);
font-family: var(--font-links);
font-weight: 600;
font-size: 0.9rem;
text-decoration: none;
padding: 10px 15px;
border-radius: 6px;
margin-bottom: 8px;
border: 1px solid var(--border-subtle);
transition: all 0.3s ease;
}
.portal-btn span {
color: var(--accent-primary);
transition: transform 0.3s ease;
}
.portal-btn:hover {
border-color: var(--accent-primary);
box-shadow: var(--shadow-hover);
color: var(--accent-primary);
text-decoration: none;
}
.portal-btn:hover span {
transform: translateX(4px);
}
/* =========================================================
InsaniaMU Sidebar Highlight
========================================================= */
:root {
/* Cohesive Theme Variables */
--insania-accent: #ffb700; /* Deep Gold */
--insania-accent-hover: #ff3333; /* Crimson / Blood Red */
--insania-bg-dark: #1a0505;
--insania-bg-light: #2a0d15;
--insania-glow: rgba(255, 183, 0, 0.25);
}
/* Target the specific InsaniaMU link in Vector and Monobook skins */
#mw-panel a[href="https://insaniamu.com"],
#column-one a[href="https://insaniamu.com"],
.mw-portlet a[href="https://insaniamu.com"] {
position: relative;
display: block;
margin: 12px 0 4px -8px;
padding: 8px 12px;
color: #f8f8f8 !important;
font-family: 'Cinzel', 'Trajan Pro', serif, system-ui;
font-weight: 700;
font-size: 0.95em;
letter-spacing: 0.5px;
text-decoration: none;
/* Layered background depth */
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.4);
overflow: hidden;
/* Smooth micro-interaction transition */
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
z-index: 1;
}
/* CSS-only animation layer for the shimmer effect */
#mw-panel a[href="https://insaniamu.com"]::before,
#column-one a[href="https://insaniamu.com"]::before,
.mw-portlet a[href="https://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.15) 50%,
transparent 100%
);
transform: skewX(-25deg);
transition: left 0.6s ease-in-out;
z-index: -1;
}
/* High-impact hover state */
#mw-panel a[href="https://insaniamu.com"]:hover,
#column-one a[href="https://insaniamu.com"]:hover,
.mw-portlet a[href="https://insaniamu.com"]:hover {
transform: translateX(6px);
border-left-color: var(--insania-accent-hover);
box-shadow: 0 6px 16px var(--insania-glow);
color: #ffffff !important;
text-decoration: none;
}
/* Trigger the shimmer sweep on hover */
#mw-panel a[href="https://insaniamu.com"]:hover::before,
#column-one a[href="https://insaniamu.com"]:hover::before,
.mw-portlet a[href="https://insaniamu.com"]:hover::before {
left: 150%;
}
/* Wrapper & Typography */
.imu-guide-wrapper {
font-family: var(--imu-font-body);
color: var(--imu-text-main);
background-color: var(--imu-bg-main);
padding: 2rem;
border-radius: var(--imu-radius);
max-width: 900px;
margin: 0 auto;
line-height: 1.6;
}
.imu-heading-primary,
.imu-heading-secondary,
.imu-heading-tertiary {
font-family: var(--imu-font-heading);
color: #0f172a;
margin-top: 0;
margin-bottom: 0.5rem;
}
/* Hero Section */
.imu-hero-section {
background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
border-left: 4px solid var(--imu-accent-primary);
padding: 2rem;
border-radius: var(--imu-radius);
box-shadow: var(--imu-shadow-sm);
margin-bottom: 2.5rem;
}
.imu-heading-primary {
font-size: 2.5rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.imu-lead-text {
font-size: 1.15rem;
color: var(--imu-text-muted);
}
/* 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-md);
transform: translateY(-2px);
}
.imu-step-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
border-bottom: 2px solid var(--imu-bg-main);
padding-bottom: 1rem;
}
.imu-heading-secondary {
font-size: 1.75rem;
font-weight: 600;
}
.imu-step-number {
display: flex;
align-items: center;
justify-content: center;
background: var(--imu-accent-primary);
color: white;
font-weight: 800;
font-size: 1.25rem;
height: 40px;
width: 40px;
border-radius: 50%;
box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
flex-shrink: 0;
}
/* Inline Code */
.imu-step-body code {
background: #f1f5f9;
color: #166534;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-weight: 600;
border: 1px solid #cbd5e1;
}
/* MW External Link Overrides for Button */
.imu-btn-wrapper {
margin-top: 1.5rem;
display: inline-block;
}
.imu-btn-wrapper a.external {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(45deg, var(--imu-accent-primary), var(--imu-accent-hover));
background-size: 200% auto;
color: #0ea5e9 !important;
text-decoration: none !important;
padding: 1rem 2.5rem;
border-radius: 50px;
font-family: var(--imu-font-body);
font-weight: 800;
font-size: 1.1rem;
box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
transition: var(--imu-transition);
background-image: none !important;
padding-right: 2.5rem !important;
}
.imu-btn-wrapper a.external::after {
content: '↓';
margin-left: 0.75rem;
font-weight: 800;
transition: transform 0.3s ease;
}
.imu-btn-wrapper a.external:hover {
background-position: right center;
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}
.imu-btn-wrapper a.external:hover::after {
transform: translateY(3px);
}
/* Callouts / Info Boxes */
.imu-callout {
padding: 1.25rem;
border-radius: 8px;
margin: 1.5rem 0;
font-size: 0.95rem;
}
.imu-callout-info {
background-color: #fefce8;
border-left: 4px solid var(--imu-accent-gold);
color: #854d0e;
}
.imu-callout-warning {
background-color: #fff1f2;
border-left: 4px solid #e11d48;
color: #9f1239;
}
/* Gallery Restyling */
.imu-gallery-wrapper ul.gallery {
margin: 1.5rem 0 0 0 !important;
}
.imu-gallery-wrapper .gallerybox {
background: transparent !important;
border: none !important;
}
.imu-gallery-wrapper .thumb {
border: 1px solid var(--imu-border-soft) !important;
border-radius: 8px;
overflow: hidden;
transition: var(--imu-transition);
background: #fff !important;
}
.imu-gallery-wrapper .thumb:hover {
border-color: var(--imu-accent-primary) !important;
box-shadow: var(--imu-shadow-sm);
}
.imu-gallery-wrapper .gallerytext {
font-family: var(--imu-font-body);
color: var(--imu-text-muted);
font-size: 0.85rem;
padding: 8px 4px !important;
}
/* Footer Links */
.imu-footer-links {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--imu-border-soft);
}
.imu-heading-tertiary {
font-size: 1.25rem;
margin-bottom: 1rem;
}
.imu-footer-links ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.imu-footer-links li {
margin: 0;
}
.imu-footer-links a {
color: var(--imu-text-muted);
text-decoration: none;
font-weight: 700;
transition: var(--imu-transition);
display: inline-flex;
align-items: center;
}
.imu-footer-links a::before {
content: '→';
margin-right: 0.5rem;
color: var(--imu-accent-primary);
opacity: 0;
transform: translateX(-10px);
transition: var(--imu-transition);
}
.imu-footer-links a:hover {
color: var(--imu-accent-primary);
text-decoration: none;
}
.imu-footer-links a:hover::before {
opacity: 1;
transform: translateX(0);
}