MediaWiki:Common.css: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Version 6. | /* Version 6.1 - Alignment Fix + Cosmos-Fandom Hybrid */ | ||
@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 !important; | --kh-green: #3e5a47 !important; | ||
| Line 13: | Line 12: | ||
} | } | ||
/* | /* 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) !important; | a { color: var(--kh-green) !important; font-weight: bold; } | ||
h1, h2, h3, h4, .mw-headline { | h1, h2, h3, h4, .mw-headline { | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
| Line 28: | Line 25: | ||
h2::before, h3::before { content: "\1F343\0020"; display: inline-block; } | h2::before, h3::before { content: "\1F343\0020"; display: inline-block; } | ||
/* | /* 2. PORTABLE INFOBOXES (Alignment Fix) */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: var(--kh-data-bg) !important; | background-color: var(--kh-data-bg) !important; | ||
| Line 35: | Line 32: | ||
padding: 0 !important; | padding: 0 !important; | ||
overflow: hidden; | overflow: hidden; | ||
width: 300px !important; | |||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
| Line 41: | Line 39: | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
border-bottom: var(--kh-border) !important; | border-bottom: var(--kh-border) !important; | ||
padding: | padding: 10px !important; | ||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
| Line 48: | Line 46: | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: 5px !important; | padding: 5px 10px !important; | ||
text-align: center !important; | |||
} | |||
/* Flexbox Row Logic: Forces Label & Value onto one line */ | |||
.portable-infobox .pi-data { | |||
display: flex !important; | |||
flex-direction: row !important; | |||
flex-wrap: nowrap !important; | |||
border-bottom: 1px solid #ddd; | |||
align-items: stretch !important; | |||
} | } | ||
.portable-infobox .pi-data-label { | .portable-infobox .pi-data-label { | ||
background-color: var(--kh-label-bg) !important; | background-color: var(--kh-label-bg) !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; /* Label takes 40% */ | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 0.9em; | |||
} | |||
.portable-infobox .pi-data-value { | |||
flex: 1 !important; /* Value takes the rest (60%) */ | |||
padding: 8px 12px !important; | |||
background-color: var(--kh-data-bg) !important; | |||
} | } | ||
/* | /* 3. COMMAND MENU & HEADER */ | ||
#cosmos- | #cosmos-header, .header-container { | ||
background-color: var(--kh-green) !important; | |||
border-bottom: 3px solid var(--kh-yellow) !important; | |||
} | |||
#cosmos-page-tools-menu, .cosmos-menu-content { | |||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
border: 2px solid var(--kh-yellow) !important; | border: 2px solid var(--kh-yellow) !important; | ||
} | } | ||
.cosmos-menu-content a { color: #ffffff !important; font-family: 'Cinzel', serif !important; } | |||
/* | /* 4. DESKTOP LAYOUT (Cosmos Centered Look) */ | ||
@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: | grid-template-columns: 870px 300px !important; | ||
gap: 30px !important; | gap: 30px !important; | ||
width: 1200px !important; | width: 1200px !important; | ||
margin: 40px auto !important; | margin: 40px auto !important; | ||
background: transparent !important; | |||
} | } | ||
#cosmos-content-main { | #cosmos-content-main { | ||
background: #ffffff !important; | background: #ffffff !important; | ||
padding: | padding: 40px !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
box-shadow: 0 | box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; | ||
} | } | ||
} | } | ||
/* | /* 5. MOBILE LAYOUT (Fandom Card Look) */ | ||
@media screen and (max-width: 1023px) { | @media screen and (max-width: 1023px) { | ||
#cosmos-content, .mw-body { display: block !important; padding: | #cosmos-content, .mw-body { display: block !important; padding: 15px !important; } | ||
#cosmos-content-main { | #cosmos-content-main { | ||
width: 100% !important; | width: 100% !important; | ||
background: #ffffff !important; | background: #ffffff !important; | ||
padding: | padding: 25px !important; | ||
border-radius: | border-radius: 12px !important; | ||
box-shadow: 0 2px | box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; | ||
} | } | ||
.portable-infobox { width: 100% !important; float: none !important; margin: | .portable-infobox { width: 100% !important; float: none !important; margin-bottom: 20px !important; } | ||
} | } | ||
/* | /* 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; | ||