MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version 1.1. | /* Version 1.1.1 - Universal KH Leaf (With Dark Mode Fixes) */ | ||
@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. GLOBAL VARIABLES | /* 1. GLOBAL VARIABLES */ | ||
:root { | :root { | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
| Line 10: | Line 10: | ||
--kh-label-bg: #f2f2f2; | --kh-label-bg: #f2f2f2; | ||
--kh-data-bg: #ffffff; | --kh-data-bg: #ffffff; | ||
--kh-border: 2px solid var(--kh-green); | --kh-border: 2px solid var(--kh-green); | ||
} | } | ||
/* 2. UNIVERSAL LINK & TEXT COLORS */ | /* 2. UNIVERSAL LINK & TEXT COLORS */ | ||
a { color: var(--kh-green); } | |||
a { color: var(--kh-green) | a:visited { color: var(--kh-dark-text); } | ||
a:visited { color: var(--kh-dark-text) | a.new { color: #ba0000 !important; } | ||
a.new { color: #ba0000 !important; } | |||
/* 3. UNIVERSAL HEADERS | /* 3. UNIVERSAL HEADERS */ | ||
h1, h2, h3, h4, .mw-headline { | h1, h2, h3, h4, .mw-headline { | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
} | } | ||
h1, h2 { border-bottom: var(--kh-border) !important; } | |||
h1, h2 { | h2::before, h3::before { content: "\1F343\0020"; display: inline-block; } | ||
} | |||
h2::before, h3::before { | |||
} | |||
/* 4. EXTENSION COMPATIBILITY: PORTABLE INFOBOXES */ | /* 4. EXTENSION COMPATIBILITY: PORTABLE INFOBOXES */ | ||
| Line 44: | Line 33: | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
| Line 51: | Line 39: | ||
border-bottom: var(--kh-border); | border-bottom: var(--kh-border); | ||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
| Line 57: | Line 44: | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
} | } | ||
.portable-infobox .pi-data { | .portable-infobox .pi-data { | ||
display: flex !important; | display: flex !important; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
} | } | ||
.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 71: | Line 55: | ||
} | } | ||
/* 5. UNIVERSAL WIKI WIDGETS | /* 5. UNIVERSAL WIKI WIDGETS */ | ||
#toc, .toc, .catlinks, .mw-ui-button { | #toc, .toc, .catlinks, .mw-ui-button { | ||
border: var(--kh-border) !important; | border: var(--kh-border) !important; | ||
| Line 77: | Line 61: | ||
font-family: 'Crimson Pro', serif; | font-family: 'Crimson Pro', serif; | ||
} | } | ||
.tocnumber { color: var(--kh-yellow) !important; } | .tocnumber { color: var(--kh-yellow) !important; } | ||
/* 6. SKIN-SPECIFIC ADAPTATION (Cosmos & Others) */ | /* 6. SKIN-SPECIFIC ADAPTATION (Cosmos & Others) */ | ||
#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 98: | Line 80: | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
font-family: 'Cinzel', serif; | font-family: 'Cinzel', serif; | ||
} | |||
/* 8. DARK MENU FIX (The "What Links Here" Bubble) */ | |||
/* This forces text to be white inside the Cosmos floating tools menu */ | |||
.cosmos-menu, | |||
.cosmos-dropdown, | |||
#cosmos-content-actions-menu, | |||
#cosmos-page-tools-menu { | |||
background-color: #1a1a1a !important; /* Ensuring the bubble stays dark */ | |||
} | |||
.cosmos-menu a, | |||
.cosmos-dropdown a, | |||
#cosmos-content-actions-menu a, | |||
#cosmos-page-tools-menu a { | |||
color: #ffffff !important; /* Forcing the text to white */ | |||
font-family: 'Crimson Pro', serif; | |||
} | |||
.cosmos-menu a:hover, | |||
#cosmos-page-tools-menu a:hover { | |||
color: var(--kh-yellow) !important; /* Turns yellow when you hover over it */ | |||
background-color: #333 !important; | |||
} | } | ||
Revision as of 09:22, 14 March 2026
/* Version 1.1.1 - Universal KH Leaf (With Dark Mode Fixes) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
/* 1. GLOBAL VARIABLES */
:root {
--kh-green: #3e5a47;
--kh-yellow: #ffd700;
--kh-dark-text: #2d4234;
--kh-light-bg: #f9fdfa;
--kh-label-bg: #f2f2f2;
--kh-data-bg: #ffffff;
--kh-border: 2px solid var(--kh-green);
}
/* 2. UNIVERSAL LINK & TEXT COLORS */
a { color: var(--kh-green); }
a:visited { color: var(--kh-dark-text); }
a.new { color: #ba0000 !important; }
/* 3. UNIVERSAL HEADERS */
h1, h2, h3, h4, .mw-headline {
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
}
h1, h2 { border-bottom: var(--kh-border) !important; }
h2::before, h3::before { content: "\1F343\0020"; display: inline-block; }
/* 4. EXTENSION COMPATIBILITY: PORTABLE INFOBOXES */
.portable-infobox {
background-color: var(--kh-data-bg) !important;
border: var(--kh-border) !important;
font-family: 'Crimson Pro', serif !important;
padding: 0 !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: var(--kh-dark-text) !important;
font-family: 'Cinzel', serif !important;
border-bottom: var(--kh-border);
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #ffffff !important;
font-family: 'Cinzel', serif !important;
}
.portable-infobox .pi-data {
display: flex !important;
border-bottom: 1px solid #ddd;
}
.portable-infobox .pi-data-label {
background-color: var(--kh-label-bg) !important;
font-family: 'Cinzel', serif !important;
flex: 0 0 40% !important;
border-right: 1px solid #ddd;
}
/* 5. UNIVERSAL WIKI WIDGETS */
#toc, .toc, .catlinks, .mw-ui-button {
border: var(--kh-border) !important;
background-color: var(--kh-light-bg) !important;
font-family: 'Crimson Pro', serif;
}
.tocnumber { color: var(--kh-yellow) !important; }
/* 6. SKIN-SPECIFIC ADAPTATION (Cosmos & Others) */
#cosmos-header, #cosmos-navigation, .vector-header, .header-container {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
}
/* 7. THE AUTOMATIC 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;
padding-top: 20px !important;
border-top: 1px solid var(--kh-green) !important;
color: var(--kh-green) !important;
font-family: 'Cinzel', serif;
}
/* 8. DARK MENU FIX (The "What Links Here" Bubble) */
/* This forces text to be white inside the Cosmos floating tools menu */
.cosmos-menu,
.cosmos-dropdown,
#cosmos-content-actions-menu,
#cosmos-page-tools-menu {
background-color: #1a1a1a !important; /* Ensuring the bubble stays dark */
}
.cosmos-menu a,
.cosmos-dropdown a,
#cosmos-content-actions-menu a,
#cosmos-page-tools-menu a {
color: #ffffff !important; /* Forcing the text to white */
font-family: 'Crimson Pro', serif;
}
.cosmos-menu a:hover,
#cosmos-page-tools-menu a:hover {
color: var(--kh-yellow) !important; /* Turns yellow when you hover over it */
background-color: #333 !important;
}