MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 32.0 - Dual-Skin (Anisa & Cosmos) Mirror | ||
Fixes: | Fixes: Small text in Anisa, layout clashing, and unified Infoboxes | ||
*/ | */ | ||
| Line 8: | Line 8: | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
--kh-yellow: #ffd700; | --kh-yellow: #ffd700; | ||
--miraheze-border: #a2a9b1; | |||
} | } | ||
/* --- 1. | /* --- 1. GLOBAL TYPOGRAPHY --- */ | ||
body { | body { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
} | } | ||
#content, .mw-body { | /* Fix for small text in Anisa Skin */ | ||
.skin-anisa #mw-content-text, | |||
.skin-anisa .mw-parser-output { | |||
font-size: 1.1em !important; /* Bumps up the small Anisa text */ | |||
line-height: 1.6 !important; | |||
} | |||
/* Standardize content area for both skins */ | |||
#content, .mw-body, .skin-anisa #bodyContent { | |||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border: 1px solid | border: 1px solid var(--miraheze-border) !important; | ||
padding: 1.5em 2em !important; | padding: 1.5em 2em !important; | ||
margin: 1em auto !important; | margin: 1em auto !important; | ||
max-width: | max-width: 1150px !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* --- 2. THE INFOBOX ( | /* --- 2. TABLE OF CONTENTS (Unified) --- */ | ||
#toc, .toc { | |||
background-color: #f8f9fa !important; | |||
border: 1px solid var(--miraheze-border) !important; | |||
padding: 8px !important; | |||
font-size: 95% !important; | |||
display: table !important; | |||
} | |||
/* --- 3. THE INFOBOX (Anisa & Cosmos Optimized) --- */ | |||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
border: 1px solid | border: 1px solid var(--miraheze-border) !important; | ||
width: | width: 280px !important; | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1em 1.2em !important; | margin: 0 0 1em 1.2em !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border-collapse: collapse !important; | |||
border-collapse: collapse !important; | border-spacing: 0 !important; | ||
} | } | ||
/* | /* Ensure Headers fill 100% of the box width */ | ||
.portable-infobox .pi- | .portable-infobox .pi-title, | ||
.portable-infobox .pi- | .portable-infobox .pi-header { | ||
display: block !important; | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
font-family: 'Cinzel', serif !important; | |||
text-align: center !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
color: #000 !important; | color: #000 !important; | ||
padding: 12px 10px !important; | |||
font-size: 1.2em !important; | |||
padding: | border-bottom: 1px solid var(--miraheze-border) !important; | ||
font-size: 1. | |||
border-bottom: 1px solid | |||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #fff !important; | color: #fff !important; | ||
padding: 8px 5px !important; | |||
padding: | |||
} | } | ||
/* | /* Data Row Precision (Labels/Values) */ | ||
. | .pi-item.pi-data { | ||
display: table-row !important; | |||
} | } | ||
. | .pi-data-label, .pi-data-value { | ||
display: table-cell !important; | |||
padding: 8px !important; | |||
display: | border-bottom: 1px solid #eee !important; | ||
vertical-align: middle !important; | |||
} | } | ||
.pi-data-label { | .pi-data-label { | ||
width: 40% !important; | width: 40% !important; | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border-right: 1px solid var(--miraheze-border) !important; | |||
border- | |||
} | } | ||
. | /* --- 4. MOBILE / COSMOS OVERRIDES --- */ | ||
@media screen and (max-width: 768px) { | |||
#content, .mw-body { | |||
padding: 1em !important; | |||
margin: 0 !important; | |||
width: 100% !important; | |||
} | max-width: 100% !important; | ||
} | |||
.portable-infobox { | |||
float: none !important; | |||
width: 100% !important; | |||
margin: 1em 0 !important; | |||
display: table !important; /* Keeps table layout on mobile for labels */ | |||
} | |||
} | } | ||