MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version 1.0. | /* Version 1.0.2 - KH Leaf Unified */ | ||
@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'); | ||
/* 1 | /* 1. UNIVERSAL COLOR VARIABLES */ | ||
:root { | :root { | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
| Line 14: | Line 8: | ||
--kh-dark-text: #2d4234; | --kh-dark-text: #2d4234; | ||
--kh-light-bg: #f9fdfa; | --kh-light-bg: #f9fdfa; | ||
--kh-label-bg: #f2f2f2; | --kh-label-bg: #f2f2f2; | ||
--kh-data-bg: #ffffff; | --kh-data-bg: #ffffff; | ||
} | } | ||
/* | /* 2. PORTABLE INFOBOX: EDGE-TO-EDGE & SPLIT ROW FIX */ | ||
.portable-infobox { | .portable-infobox { | ||
width: 300px; | width: 300px; | ||
| Line 32: | Line 26: | ||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
| Line 46: | Line 39: | ||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
| Line 59: | Line 51: | ||
} | } | ||
.portable-infobox .pi-data { | .portable-infobox .pi-data { | ||
display: flex !important; | display: flex !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
align-items: stretch; | align-items: stretch; | ||
} | } | ||
.portable-infobox .pi-data-label { | .portable-infobox .pi-data-label { | ||
background-color: var(--kh-label-bg) !important; | background-color: var(--kh-label-bg) !important; | ||
| Line 76: | Line 66: | ||
text-transform: uppercase; | text-transform: uppercase; | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
flex: 0 0 40%; | flex: 0 0 40% !important; | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
display: flex; | display: flex; | ||
| Line 82: | Line 72: | ||
} | } | ||
.portable-infobox .pi-data-value { | .portable-infobox .pi-data-value { | ||
background-color: var(--kh-data-bg) !important; | background-color: var(--kh-data-bg) !important; | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
flex: 1; | flex: 1; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
display: flex; | display: flex; | ||
| Line 92: | Line 81: | ||
} | } | ||
.portable-infobox .pi-image { | .portable-infobox .pi-image { | ||
padding: 0; | padding: 0; | ||
| Line 105: | Line 93: | ||
} | } | ||
/* | /* 3. CONTENT DECORATIONS */ | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
.mw-parser-output h3 { | .mw-parser-output h3 { | ||
| Line 114: | Line 102: | ||
} | } | ||
.mw-parser-output h2::before { content: "\1F343 | .mw-parser-output h2::before { content: "\1F343\0020"; font-size: 1.2em; } | ||
.mw-parser-output h3::before { content: "\1F343 | .mw-parser-output h3::before { content: "\1F343\0020"; font-size: 1em; } | ||
/* | /* 4. TABLE OF CONTENTS */ | ||
#toc, .toc, .mw-toc { | #toc, .toc, .mw-toc { | ||
border: 2px solid var(--kh-green) !important; | border: 2px solid var(--kh-green) !important; | ||
| Line 127: | Line 115: | ||
.toctext { color: var(--kh-green) !important; font-family: 'Cinzel', serif; } | .toctext { color: var(--kh-green) !important; font-family: 'Cinzel', serif; } | ||
/* | /* 5. AUTOMATIC FOOTER */ | ||
.mw-parser-output::after { | .mw-parser-output::after { | ||
content: " | content: "\1F343\000A END OF ENTRY"; | ||
white-space: pre !important; | white-space: pre !important; | ||
display: block !important; | display: block !important; | ||
| Line 142: | Line 130: | ||
} | } | ||
/* | /* 6. SIDEBAR & NAVIGATION OVERRIDES */ | ||
.vector-menu-portal .vector-menu-heading, | .vector-menu-portal .vector-menu-heading, | ||
#p-navigation h3, | #p-navigation h3, | ||
| Line 158: | Line 139: | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
font-weight: bold; | font-weight: bold; | ||
border-bottom: 1px solid var(--kh-yellow); | border-bottom: 1px solid var(--kh-yellow) !important; | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
} | } | ||
/* | /* 7. ANISA SPECIFIC FORCE-KILL BLUE */ | ||
.skin-anisa { | .skin-anisa { | ||
--kh-green: #3e5a47 !important; | --kh-green: #3e5a47 !important; | ||
| Line 168: | Line 149: | ||
} | } | ||
.skin-anisa a { color: | .skin-anisa a { color: #3e5a47 !important; } | ||
.skin-anisa a:visited { color: #2d4234 !important; } | .skin-anisa a:visited { color: #2d4234 !important; } | ||
.skin-anisa .mw-parser-output h2 { border-bottom-color: | .skin-anisa a.new { color: #ba0000 !important; } /* Red for broken links */ | ||
.skin-anisa .mw-parser-output h2 { border-bottom-color: #3e5a47 !important; } | |||
/* Compatibility Shield */ | |||
#p-cactions h3::before, | |||
#p-search h3::before, | |||
.vector-menu-heading::before { | |||
content: none !important; | |||
} | |||