MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 26.0 - Exact Miraheze Reconstruction | ||
Fixed: Desktop Infobox Floats, Featured Box Alignment, and Global Typography | |||
*/ | */ | ||
| Line 12: | Line 12: | ||
} | } | ||
/* --- | /* --- 1. CORE CONTENT WRAPPER --- */ | ||
body { | body { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
background-color: #1a1a1a !important | background-color: #1a1a1a !important; | ||
} | } | ||
| Line 23: | Line 21: | ||
background-color: var(--miraheze-white) !important; | background-color: var(--miraheze-white) !important; | ||
border: 1px solid var(--miraheze-border) !important; | border: 1px solid var(--miraheze-border) !important; | ||
padding: | padding: 2em !important; /* Increased padding for desktop breathing room */ | ||
margin: | margin: 20px auto !important; | ||
max-width: 1200px; | max-width: 1200px !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; /* Prevents floated infoboxes from breaking the container */ | |||
} | } | ||
/* --- HEADINGS --- */ | /* Fix for misaligned text in Featured World / Content Boxes */ | ||
.mw-parser-output { | |||
text-align: left !important; | |||
} | |||
/* Force standard margins on all text elements inside lore boxes */ | |||
.mw-parser-output p, | |||
.mw-parser-output div { | |||
margin-block-start: 0.5em; | |||
margin-block-end: 0.5em; | |||
} | |||
/* --- 2. HEADINGS --- */ | |||
h1, h2, h3, .firstHeading { | h1, h2, h3, .firstHeading { | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
| Line 35: | Line 46: | ||
border-bottom: 2px solid var(--kh-green) !important; | border-bottom: 2px solid var(--kh-green) !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
clear: both; /* Ensures headers don't get caught on infoboxes */ | |||
} | } | ||
/* --- | /* --- 3. THE INFOBOX (DESKTOP PRECISION) --- */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 43: | Line 55: | ||
width: 300px !important; | width: 300px !important; | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1.5em 1.5em !important; | |||
padding: 0 !important; | |||
font-size: 0.95em !important; | |||
box-shadow: 2px 2px 5px rgba(0,0,0,0.05) !important; | |||
font- | } | ||
/* Stretch Titles/Headers to 100% width */ | |||
.portable-infobox .pi-title, | |||
.portable-infobox .pi-header { | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
font-family: 'Cinzel', serif !important; | |||
text-align: center !important; | |||
} | } | ||
| Line 53: | Line 73: | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
color: #2d4234 !important; | color: #2d4234 !important; | ||
padding: 12px 5px !important; | |||
font- | font-size: 1.2em !important; | ||
} | } | ||
| Line 63: | Line 80: | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #fff !important; | color: #fff !important; | ||
padding: 8px 5px !important; | |||
padding: 5px | |||
} | } | ||
/* Data Grid Styling */ | |||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: | display: table !important; /* Use table-style for perfect label/value alignment */ | ||
border-bottom: 1px solid # | width: 100% !important; | ||
border-bottom: 1px solid #eee !important; | |||
} | } | ||
.pi-data-label { | .pi-data-label, .pi-data-value { | ||
display: table-cell !important; | |||
padding: 8px !important; | |||
vertical-align: top !important; | |||
padding: | |||
} | } | ||
.pi-data- | .pi-data-label { | ||
width: 40% !important; | |||
background-color: #f9f9f9 !important; | |||
font-weight: 700 !important; | |||
border-right: 1px solid #eee !important; | |||
} | } | ||
/* --- MOBILE | /* --- 4. MOBILE OVERRIDE --- */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
#content, .mw-body { | #content, .mw-body { | ||
padding: 15px !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | |||
} | } | ||
| Line 99: | Line 116: | ||
width: 100% !important; | width: 100% !important; | ||
margin: 10px 0 !important; | margin: 10px 0 !important; | ||
} | } | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: block !important; | |||
} | } | ||
.pi-data-label { | .pi-data-label, .pi-data-value { | ||
display: block !important; | |||
width: 100% !important; | width: 100% !important; | ||
border-right: none !important; | border-right: none !important; | ||
} | } | ||
} | } | ||