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 5.0 - KH LEAF TOTAL OVERRIDE */ | ||
@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'); | ||
:root { | :root { | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47 !important; | ||
--kh-yellow: #ffd700; | --kh-yellow: #ffd700 !important; | ||
--kh-dark-text: #2d4234; | --kh-dark-text: #2d4234 !important; | ||
--kh-light-bg: #f9fdfa; | --kh-light-bg: #f9fdfa !important; | ||
--kh-border: 2px solid | --kh-border: 2px solid #3e5a47 !important; | ||
} | } | ||
/* 1. GLOBAL STYLES */ | /* 1. GLOBAL SITE 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; | ||
} | } | ||
a { color: var(--kh-green); font-weight: | a { color: var(--kh-green) !important; font-weight: bold !important; } | ||
h1, h2, h3, .mw-headline { | h1, h2, h3, .mw-headline { | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
border-bottom: var(--kh-border); | |||
} | } | ||
h2::before, h3::before { content: "\1F343\0020"; } | h2::before, h3::before { content: "\1F343\0020" !important; } | ||
/* 2. PORTABLE INFOBOXES ( | /* 2. HEADER & NAVIGATION */ | ||
#cosmos-header, .header-container, #mw-header-container, .cosmos-header { | |||
background-color: var(--kh-green) !important; | |||
border-bottom: 3px solid var(--kh-yellow) !important; | |||
} | |||
/* 3. PORTABLE INFOBOXES (Exact KH Customizations) */ | |||
.portable-infobox { | .portable-infobox { | ||
border: var(--kh-border) !important; | border: var(--kh-border) !important; | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border-collapse: separate !important; | |||
} | } | ||
.pi-header, .pi-title { | .pi-header, .pi-title, .pi-item.pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: var(--kh-yellow) !important; | color: var(--kh-yellow) !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
text-align: center !important; | |||
} | |||
.pi-label { | |||
background-color: #f2f2f2 !important; | |||
color: var(--kh-dark-text) !important; | |||
font-weight: bold !important; | |||
} | } | ||
.pi-data { background-color: #ffffff !important; } | .pi-data { background-color: #ffffff !important; } | ||
/* 4. DESKTOP LAYOUT (1024px+) */ | |||
/* 4. DESKTOP | |||
@media screen and (min-width: 1024px) { | @media screen and (min-width: 1024px) { | ||
#cosmos-content, .mw-body | #cosmos-content, .mw-body { | ||
display: grid !important; | display: grid !important; | ||
grid-template-columns: 850px 300px !important; | grid-template-columns: 850px 300px !important; | ||
gap: 30px !important; | gap: 30px !important; | ||
width: 1200px !important; | width: 1200px !important; | ||
margin: 40px auto !important; | margin: 40px auto !important; | ||
} | } | ||
| Line 64: | Line 67: | ||
/* 5. FANDOM MOBILE STYLE (Under 1024px) */ | /* 5. FANDOM MOBILE STYLE (Under 1024px) */ | ||
@media screen and (max-width: 1023px) { | @media screen and (max-width: 1023px) { | ||
#cosmos-content, .mw-body { display: block !important; padding: 10px !important; } | |||
#cosmos-content, .mw-body { | |||
#cosmos-content-main { | |||
#cosmos-content-main | |||
width: 100% !important; | width: 100% !important; | ||
background: #ffffff !important; | background: #ffffff !important; | ||
padding: 20px !important; | padding: 20px !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; | box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; | ||
font-size: 18px !important; | font-size: 18px !important; | ||
} | } | ||
/* Force | /* Force the infobox to look good on mobile */ | ||
.portable-infobox { | .portable-infobox { | ||
width: 100% !important; | width: 100% !important; | ||
float: none !important; | |||
margin: 10px 0 !important; | margin: 10px 0 !important; | ||
} | } | ||
#cosmos-right-rail { | #cosmos-right-rail { | ||
display: block !important; | display: block !important; | ||
| Line 97: | Line 92: | ||
padding: 15px !important; | padding: 15px !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
} | } | ||
} | } | ||
/* 6. FOOTER */ | /* 6. AUTOMATIC FOOTER */ | ||
.mw-parser-output::after { | .mw-parser-output::after { | ||
content: "\1F343\000A END OF ENTRY"; | content: "\1F343\000A END OF ENTRY" !important; | ||
white-space: pre !important; | white-space: pre !important; | ||
display: block !important; | display: block !important; | ||
| Line 109: | Line 103: | ||
margin-top: 50px !important; | margin-top: 50px !important; | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
font-family: 'Cinzel', serif; | font-family: 'Cinzel', serif !important; | ||
} | } | ||
Revision as of 23:30, 16 March 2026
/* Version 5.0 - KH LEAF TOTAL OVERRIDE */
@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: #f9fdfa !important;
--kh-border: 2px solid #3e5a47 !important;
}
/* 1. GLOBAL SITE STYLES */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: var(--kh-light-bg) !important;
}
a { color: var(--kh-green) !important; font-weight: bold !important; }
h1, h2, h3, .mw-headline {
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
border-bottom: var(--kh-border);
}
h2::before, h3::before { content: "\1F343\0020" !important; }
/* 2. HEADER & NAVIGATION */
#cosmos-header, .header-container, #mw-header-container, .cosmos-header {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
}
/* 3. PORTABLE INFOBOXES (Exact KH Customizations) */
.portable-infobox {
border: var(--kh-border) !important;
background-color: #ffffff !important;
border-collapse: separate !important;
}
.pi-header, .pi-title, .pi-item.pi-header {
background-color: var(--kh-green) !important;
color: var(--kh-yellow) !important;
font-family: 'Cinzel', serif !important;
text-align: center !important;
}
.pi-label {
background-color: #f2f2f2 !important;
color: var(--kh-dark-text) !important;
font-weight: bold !important;
}
.pi-data { background-color: #ffffff !important; }
/* 4. DESKTOP LAYOUT (1024px+) */
@media screen and (min-width: 1024px) {
#cosmos-content, .mw-body {
display: grid !important;
grid-template-columns: 850px 300px !important;
gap: 30px !important;
width: 1200px !important;
margin: 40px auto !important;
}
#cosmos-content-main {
background: #ffffff !important;
padding: 30px !important;
border-radius: 4px !important;
box-shadow: 0 0 15px rgba(0,0,0,0.1) !important;
}
}
/* 5. FANDOM MOBILE STYLE (Under 1024px) */
@media screen and (max-width: 1023px) {
#cosmos-content, .mw-body { display: block !important; padding: 10px !important; }
#cosmos-content-main {
width: 100% !important;
background: #ffffff !important;
padding: 20px !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
font-size: 18px !important;
}
/* Force the infobox to look good on mobile */
.portable-infobox {
width: 100% !important;
float: none !important;
margin: 10px 0 !important;
}
#cosmos-right-rail {
display: block !important;
width: 100% !important;
margin-top: 25px !important;
background: #ffffff !important;
padding: 15px !important;
border-radius: 8px !important;
}
}
/* 6. AUTOMATIC FOOTER */
.mw-parser-output::after {
content: "\1F343\000A END OF ENTRY" !important;
white-space: pre !important;
display: block !important;
text-align: center !important;
margin-top: 50px !important;
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
}