MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
KH LEAF THEME - | KH LEAF THEME - EXTENSION-FRIENDLY UNIVERSAL VERSION | ||
============================================================ */ | ============================================================ */ | ||
/* 1. | /* 1. UNIVERSAL COLOR VARIABLES | ||
Change these here to update the whole wiki at once! */ | |||
:root { | |||
--kh-green: #3e5a47; | |||
--kh-yellow: #ffd700; | |||
--kh-dark-text: #2d4234; | |||
--kh-light-bg: #f9fdfa; | |||
} | |||
/* 2. UNIVERSAL PORTABLE INFOBOX (Green & Yellow) */ | |||
/* Targets the extension "PortableInfobox" specifically */ | |||
.portable-infobox { | .portable-infobox { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border: 2px solid | border: 2px solid var(--kh-green) !important; | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
box-shadow: 4px 4px 10px rgba(0,0,0,0.05) !important; | box-shadow: 4px 4px 10px rgba(0,0,0,0.05) !important; | ||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: | background-color: var(--kh-yellow) !important; | ||
color: | color: var(--kh-dark-text) !important; | ||
font-weight: bold !important; | |||
padding: 10px !important; | |||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: | background-color: var(--kh-green) !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
font-size: 0.9em !important; | |||
} | } | ||
/* | /* 3. CONTENT DECORATIONS (Friendly for VisualEditor/Mobile) */ | ||
/* Targets standard H2/H3 markers used by almost every extension */ | |||
. | .mw-parser-output h2, | ||
. | .mw-parser-output h3 { | ||
border-bottom: 2px solid var(--kh-green) !important; | |||
color: var(--kh-green) !important; | |||
margin-top: 1.5em !important; | |||
} | } | ||
/* | .mw-parser-output h2::before { content: "\1F343 "; font-size: 1.2em; } | ||
#toc, .toc { | .mw-parser-output h3::before { content: "\1F343 "; font-size: 1em; } | ||
border: 2px solid | |||
background-color: | /* 4. TABLE OF CONTENTS (Universal) */ | ||
#toc, .toc, .mw-toc { | |||
border: 2px solid var(--kh-green) !important; | |||
background-color: var(--kh-light-bg) !important; | |||
border-radius: 4px !important; | |||
} | } | ||
.tocnumber { color: | .tocnumber { color: var(--kh-yellow) !important; font-weight: bold; } | ||
.toctext { color: | .toctext { color: var(--kh-green) !important; } | ||
/* | /* 5. USER TOOLS & PERSONAL MENU (Safe Mode) */ | ||
. | /* We only color the text to stay compatible with Anisa & SocialProfile */ | ||
#p-personal a, | |||
.nav-link, | |||
.anisa-user-menu a { | |||
color: var(--kh-green) !important; /* Change this for username color */ | |||
font-weight: bold !important; | |||
} | } | ||
/* 6. AUTOMATIC FOOTER */ | |||
/* | |||
.mw-parser-output::after { | .mw-parser-output::after { | ||
content: "🍃\A END OF ENTRY"; | content: "🍃\A END OF ENTRY"; | ||
| Line 85: | Line 75: | ||
margin-top: 50px !important; | margin-top: 50px !important; | ||
padding-top: 20px !important; | padding-top: 20px !important; | ||
border-top: 1px solid | border-top: 1px solid var(--kh-green) !important; | ||
color: var(--kh-green) !important; | |||
color: | font-size: 0.8em !important; | ||
font-size: | letter-spacing: 2px !important; | ||
letter-spacing: | |||
} | } | ||
/* | /* 7. EXTENSION COMPATIBILITY SHIELD */ | ||
/* | /* Prevents leaf icons from appearing on extension-specific menus | ||
(like the edit toolbar or social notifications) */ | |||
.vector-menu- | #p-cactions h3::before, | ||
#p-search h3::before, | |||
.vector-menu-heading::before { | |||
content: none !important; | |||
} | } | ||