MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version 1.1. | /* Version 1.1.2 - Universal KH Leaf (Command Menu & Link Logic Fix) */ | ||
@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 14: | Line 14: | ||
/* 2. UNIVERSAL LINK & TEXT COLORS */ | /* 2. UNIVERSAL LINK & TEXT COLORS */ | ||
/* Removed !important here to allow Section 8 to override it */ | |||
a { color: var(--kh-green); } | a { color: var(--kh-green); } | ||
a:visited { color: var(--kh-dark-text); } | a:visited { color: var(--kh-dark-text); } | ||
| Line 32: | Line 33: | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
overflow: hidden; | |||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
| Line 47: | Line 49: | ||
display: flex !important; | display: flex !important; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
align-items: stretch; | |||
} | } | ||
.portable-infobox .pi-data-label { | .portable-infobox .pi-data-label { | ||
| Line 53: | Line 56: | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
padding: 8px 12px !important; | |||
} | } | ||
| Line 63: | Line 67: | ||
.tocnumber { color: var(--kh-yellow) !important; } | .tocnumber { color: var(--kh-yellow) !important; } | ||
/* 6. SKIN-SPECIFIC ADAPTATION | /* 6. SKIN-SPECIFIC ADAPTATION */ | ||
#cosmos-header, #cosmos-navigation, .vector-header, .header-container { | #cosmos-header, #cosmos-navigation, .vector-header, .header-container { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
| Line 83: | Line 87: | ||
/* 8. COMMAND MENU FIX (The Floating Tools Bubble) */ | /* 8. COMMAND MENU FIX (The Floating Tools Bubble) */ | ||
/* Targeted specifically to beat universal link colors */ | |||
/* | |||
#cosmos-page-tools-menu, | #cosmos-page-tools-menu, | ||
#cosmos-content-actions-menu, | #cosmos-content-actions-menu, | ||
.cosmos-menu-content { | .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; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; | box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; | ||
padding: 5px 0 !important; | |||
} | } | ||
/* The Links inside the Bubble */ | /* The Links inside the Bubble - Triple selector to ensure White wins */ | ||
.cosmos-menu-content a, | |||
#cosmos-page-tools-menu a, | #cosmos-page-tools-menu a, | ||
#cosmos-content-actions-menu a | #cosmos-content-actions-menu a { | ||
color: #ffffff !important; | |||
color: #ffffff !important; | |||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
font-size: 0.9em !important; | font-size: 0.9em !important; | ||
text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important; | text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important; | ||
padding: 10px | padding: 10px 20px !important; | ||
display: block !important; | display: block !important; | ||
text-decoration: none !important; | |||
} | } | ||
/* | /* Hover Effect */ | ||
.cosmos-menu-content a:hover, | |||
#cosmos-page-tools-menu a:hover, | #cosmos-page-tools-menu a:hover, | ||
#cosmos-content-actions-menu | #cosmos-content-actions-menu a:hover { | ||
background-color: var(--kh-yellow) !important; | |||
background-color: var(--kh-yellow) !important; | color: var(--kh-dark-text) !important; | ||
color: var(--kh-dark-text) | |||
} | } | ||
/* | /* Fix for the little arrow at the bottom of the bubble */ | ||
.cosmos-menu::after { | .cosmos-menu::after { | ||
border-top-color: var(--kh-green) !important; | border-top-color: var(--kh-green) !important; | ||
} | } | ||