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 3.1 - True Responsive KH Leaf */ | ||
@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 9: | Line 9: | ||
} | } | ||
/* 1. GLOBAL STYLES | /* 1. GLOBAL STYLES */ | ||
body, html { | body, html { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
background-color: var(--kh-light-bg) !important; | background-color: var(--kh-light-bg) !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| Line 24: | Line 23: | ||
h2::before, h3::before { content: "\1F343\0020"; } | h2::before, h3::before { content: "\1F343\0020"; } | ||
/* 2. | /* 2. THE TOP HEADER */ | ||
#cosmos-header, . | #cosmos-header, .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; | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
/* 3. THE UNBREAKABLE | /* 3. DESKTOP ONLY: THE UNBREAKABLE GRID (1024px and up) */ | ||
@media screen and (min-width: 1024px) { | |||
#cosmos-content, .mw-body, #content { | #cosmos-content, .mw-body, #content { | ||
display: grid !important; | |||
grid-template-columns: 850px 300px !important; | |||
gap: 30px !important; | |||
width: 1200px !important; | |||
max-width: 1200px !important; | |||
margin: 40px auto !important; | |||
background: | } | ||
#cosmos-content-main { | |||
} | 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; | |||
} | |||
#cosmos-right-rail { | |||
#cosmos- | grid-column: 2 !important; | ||
display: block !important; | |||
} | |||
} | } | ||
/* | /* 4. MOBILE ONLY: FANDOM STACKED VIEW (Under 1024px) */ | ||
#cosmos- | @media screen and (max-width: 1023px) { | ||
#cosmos-content, .mw-body, #content { | |||
display: block !important; | |||
width: 100% !important; | |||
padding: 10px !important; | |||
box-sizing: border-box !important; | |||
} | |||
} | |||
#cosmos-content-main { | |||
width: 100% !important; | |||
background: #ffffff !important; | |||
#cosmos-content | padding: 20px !important; | ||
box-sizing: border-box !important; | |||
font-size: 18px !important; /* Larger readable text */ | |||
border-radius: 8px !important; | |||
} | } | ||
#cosmos-right-rail { | |||
/* Move the Rail (Sidebar) to the bottom of the page */ | |||
#cosmos-right-rail, .cosmos-right-rail { | |||
width: 100% !important; | |||
display: block !important; | display: block !important; | ||
margin-top: 30px !important; | |||
padding: 10px !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
} | } | ||
/* | /* 5. 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:58, 16 March 2026
/* Version 3.1 - True Responsive KH Leaf */
@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 */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: var(--kh-light-bg) !important;
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. THE TOP HEADER */
#cosmos-header, .header-container {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
width: 100% !important;
}
/* 3. DESKTOP ONLY: THE UNBREAKABLE GRID (1024px and up) */
@media screen and (min-width: 1024px) {
#cosmos-content, .mw-body, #content {
display: grid !important;
grid-template-columns: 850px 300px !important;
gap: 30px !important;
width: 1200px !important;
max-width: 1200px !important;
margin: 40px auto !important;
}
#cosmos-content-main {
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;
}
#cosmos-right-rail {
grid-column: 2 !important;
display: block !important;
}
}
/* 4. MOBILE ONLY: FANDOM STACKED VIEW (Under 1024px) */
@media screen and (max-width: 1023px) {
#cosmos-content, .mw-body, #content {
display: block !important;
width: 100% !important;
padding: 10px !important;
box-sizing: border-box !important;
}
#cosmos-content-main {
width: 100% !important;
background: #ffffff !important;
padding: 20px !important;
box-sizing: border-box !important;
font-size: 18px !important; /* Larger readable text */
border-radius: 8px !important;
}
/* Move the Rail (Sidebar) to the bottom of the page */
#cosmos-right-rail, .cosmos-right-rail {
width: 100% !important;
display: block !important;
margin-top: 30px !important;
padding: 10px !important;
box-sizing: border-box !important;
}
}
/* 5. 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;
}