MediaWiki:Common.css
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.
/* Version 8.0 - FINAL FANDOM OVERHAUL (Stable Build) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
:root {
--kh-green: #3e5a47 !important;
--kh-yellow: #ffd700 !important;
--kh-dark-text: #2d4234 !important;
--kh-light-bg: #e9efe9 !important; /* Darker background to make white cards "pop" */
--kh-border: 2px solid #3e5a47 !important;
}
/* 1. SITE-WIDE BACKGROUND */
body, html, #cosmos-content-wrapper {
background-color: var(--kh-light-bg) !important;
font-family: 'Crimson Pro', serif !important;
}
/* 2. THE DESKTOP "FANDOM CARD" FIX (1024px+) */
@media screen and (min-width: 1024px) {
/* The container for everything */
#cosmos-content, .mw-body {
width: 1200px !important;
margin: 40px auto !important;
background: transparent !important;
border: none !important;
display: block !important; /* Resetting flex/grid to prevent bugs */
overflow: hidden !important;
}
/* The Main Article Card (Left) */
#cosmos-content-main, #bodyContent {
width: 860px !important;
float: left !important;
background: #ffffff !important;
padding: 40px !important;
border-radius: 4px !important;
box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
box-sizing: border-box !important;
min-height: 800px;
}
/* The Sidebar Card (Right Rail) */
#cosmos-right-rail {
width: 320px !important;
float: right !important;
background: #ffffff !important;
padding: 20px !important;
border-radius: 4px !important;
box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
box-sizing: border-box !important;
display: block !important;
}
}
/* 3. THE MOBILE "FANDOM CARD" FIX (Under 1024px) */
@media screen and (max-width: 1023px) {
#cosmos-content, .mw-body {
width: 100% !important;
padding: 10px !important;
display: block !important;
}
#cosmos-content-main {
width: 100% !important;
background: #ffffff !important;
padding: 20px !important;
border-radius: 8px !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
box-sizing: border-box !important;
}
#cosmos-right-rail {
width: 100% !important;
margin-top: 20px !important;
float: none !important;
}
}
/* 4. INFOBOX: FORCING SAME-LINE ALIGNMENT */
.portable-infobox {
background-color: #fff !important;
border: var(--kh-border) !important;
width: 300px !important;
float: right !important;
margin: 0 0 1em 1em !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: var(--kh-dark-text) !important;
font-family: 'Cinzel', serif !important;
padding: 10px !important;
text-align: center !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #ffffff !important;
font-family: 'Cinzel', serif !important;
}
/* The Secret Sauce for Label Alignment */
.pi-item.pi-data {
display: table !important; /* Table layout is the most stable for labels */
width: 100% !important;
border-bottom: 1px solid #eee;
}
.pi-data-label {
display: table-cell !important;
width: 40% !important;
background-color: #f9f9f9 !important;
padding: 8px !important;
font-weight: bold;
border-right: 1px solid #eee;
}
.pi-data-value {
display: table-cell !important;
padding: 8px !important;
width: 60% !important;
}
/* 5. KH LEAF HEADERS */
h1, h2, h3, .mw-headline {
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
}
h2::before, h3::before { content: "\1F343\0020" !important; }
/* 6. NAV HEADER */
#cosmos-header, .header-container {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
}