MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 2.0 - Universal KH Leaf (Unbreakable CSS Grid Layout) */ | ||
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap'); | ||
| Line 7: | Line 7: | ||
--kh-dark-text: #2d4234; | --kh-dark-text: #2d4234; | ||
--kh-light-bg: #f9fdfa; | --kh-light-bg: #f9fdfa; | ||
} | } | ||
/* 1. GLOBAL STYLES */ | /* 1. GLOBAL STYLES & FONTS */ | ||
body { | body, html { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
background-color: var(--kh-light-bg); | background-color: var(--kh-light-bg) !important; | ||
min-width: 1200px !important; /* | min-width: 1200px !important; /* Refuses to shrink below desktop size */ | ||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
a { color: var(--kh-green); } | a { color: var(--kh-green); } | ||
| Line 23: | Line 24: | ||
h2::before, h3::before { content: "\1F343\0020"; } | h2::before, h3::before { content: "\1F343\0020"; } | ||
/* 2. COSMOS HEADER */ | /* 2. COSMOS HEADER (FANDOM STYLE) */ | ||
#cosmos-header, .header-container { | #cosmos-header, .header-container, #mw-header-container { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
border-bottom: 3px solid var(--kh-yellow) !important; | border-bottom: 3px solid var(--kh-yellow) !important; | ||
min-width: 1200px !important; | min-width: 1200px !important; | ||
width: 100% !important; | |||
} | } | ||
/* 3. | /* 3. THE UNBREAKABLE CSS GRID (The HUGE Layout Fix) */ | ||
/* This | /* This targets the main wrapper and builds two exact columns */ | ||
#cosmos-content, .mw-body { | #cosmos-content, .mw-body, #content { | ||
display: | display: grid !important; | ||
grid-template-columns: 850px 300px !important; /* Column 1: Content, Column 2: Rail */ | |||
gap: 30px !important; /* Exact spacing between them */ | |||
width: 1200px !important; | width: 1200px !important; | ||
max-width: 1200px !important; | max-width: 1200px !important; | ||
margin: 40px auto !important; | margin: 40px auto !important; /* Centers the whole block on the screen */ | ||
background: | background: transparent !important; | ||
padding: 0 !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
/* | /* 4. THE MAIN CONTENT AREA */ | ||
#cosmos-right-rail, .cosmos-right-rail { | #cosmos-content-main, #bodyContent, .mw-content-ltr { | ||
grid-column: 1 !important; | |||
background: #ffffff !important; | |||
padding: 30px !important; | |||
border-radius: 4px !important; | |||
box-shadow: 0 0 15px rgba(0,0,0,0.1) !important; /* Adds the Fandom shadow */ | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* 5. THE RIGHT RAIL (SIDEBAR) */ | |||
#cosmos-right-rail, .cosmos-right-rail, #right-navigation { | |||
grid-column: 2 !important; | |||
display: block !important; | display: block !important; | ||
visibility: visible !important; | visibility: visible !important; | ||
width: | width: 100% !important; | ||
background: transparent !important; | |||
opacity: 1 !important; | |||
} | } | ||
/* | /* 6. MOBILE OVERRIDES (Destroying Cosmos Mobile Rules) */ | ||
#cosmos-content- | @media screen and (max-width: 1200px) { | ||
/* If the screen is small, ignore it. Keep the Grid. */ | |||
#cosmos-content, .mw-body { | |||
display: block !important; | display: grid !important; | ||
grid-template-columns: 850px 300px !important; | |||
} | |||
#cosmos-right-rail { | |||
display: block !important; | |||
} | |||
} | } | ||
/* | /* 7. FOOTER */ | ||
.mw-parser-output::after { | .mw-parser-output::after { | ||
content: "\1F343\000A END OF ENTRY"; | content: "\1F343\000A END OF ENTRY"; | ||
Revision as of 22:51, 16 March 2026
/* Version 2.0 - Universal KH Leaf (Unbreakable CSS Grid Layout) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
:root {
--kh-green: #3e5a47;
--kh-yellow: #ffd700;
--kh-dark-text: #2d4234;
--kh-light-bg: #f9fdfa;
}
/* 1. GLOBAL STYLES & FONTS */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: var(--kh-light-bg) !important;
min-width: 1200px !important; /* Refuses to shrink below desktop size */
margin: 0 !important;
padding: 0 !important;
}
a { color: var(--kh-green); }
h1, h2, h3, .mw-headline {
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
}
h2::before, h3::before { content: "\1F343\0020"; }
/* 2. COSMOS HEADER (FANDOM STYLE) */
#cosmos-header, .header-container, #mw-header-container {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
min-width: 1200px !important;
width: 100% !important;
}
/* 3. THE UNBREAKABLE CSS GRID (The HUGE Layout Fix) */
/* This targets the main wrapper and builds two exact columns */
#cosmos-content, .mw-body, #content {
display: grid !important;
grid-template-columns: 850px 300px !important; /* Column 1: Content, Column 2: Rail */
gap: 30px !important; /* Exact spacing between them */
width: 1200px !important;
max-width: 1200px !important;
margin: 40px auto !important; /* Centers the whole block on the screen */
background: transparent !important;
padding: 0 !important;
box-sizing: border-box !important;
}
/* 4. THE MAIN CONTENT AREA */
#cosmos-content-main, #bodyContent, .mw-content-ltr {
grid-column: 1 !important;
background: #ffffff !important;
padding: 30px !important;
border-radius: 4px !important;
box-shadow: 0 0 15px rgba(0,0,0,0.1) !important; /* Adds the Fandom shadow */
width: 100% !important;
box-sizing: border-box !important;
}
/* 5. THE RIGHT RAIL (SIDEBAR) */
#cosmos-right-rail, .cosmos-right-rail, #right-navigation {
grid-column: 2 !important;
display: block !important;
visibility: visible !important;
width: 100% !important;
background: transparent !important;
opacity: 1 !important;
}
/* 6. MOBILE OVERRIDES (Destroying Cosmos Mobile Rules) */
@media screen and (max-width: 1200px) {
/* If the screen is small, ignore it. Keep the Grid. */
#cosmos-content, .mw-body {
display: grid !important;
grid-template-columns: 850px 300px !important;
}
#cosmos-right-rail {
display: block !important;
}
}
/* 7. FOOTER */
.mw-parser-output::after {
content: "\1F343\000A END OF ENTRY";
white-space: pre !important;
display: block !important;
text-align: center !important;
margin-top: 50px !important;
color: var(--kh-green) !important;
font-family: 'Cinzel', serif;
}