MediaWiki:Common.css
From Lenn's Fun Stuff
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
KH LEAF THEME - GREEN & GOLD EDITION
============================================================ */
/* 1. THE MAIN INFOBOX CONTAINER */
.portable-infobox {
background-color: #ffffff !important;
border: 2px solid #3e5a47 !important; /* Changed to Green border */
width: 300px !important;
float: right !important;
margin: 0 0 1em 1em !important;
font-family: "Georgia", serif !important;
overflow: hidden !important;
padding: 0 !important;
box-sizing: border-box !important;
box-shadow: 4px 4px 10px rgba(0,0,0,0.1) !important;
}
/* 2. INFOBOX TITLE (Yellow Background, Dark Text) */
.portable-infobox .pi-title {
background-color: #ffd700 !important; /* Gold/Yellow */
color: #2d4234 !important; /* Dark Green text for readability */
text-align: center !important;
padding: 12px 0 !important;
font-size: 16px !important;
display: block !important;
width: calc(100% + 4px) !important;
margin: -2px -2px 0 -2px !important;
box-sizing: border-box !important;
font-weight: bold !important;
}
/* 3. INFOBOX SECTION HEADERS (Green Background, White Text) */
.portable-infobox .pi-header {
background-color: #3e5a47 !important; /* Forest Green */
color: #ffffff !important; /* White text */
text-align: center !important;
padding: 8px 0 !important;
font-size: 11px !important;
display: block !important;
width: calc(100% + 4px) !important;
margin: 0 -2px !important;
box-sizing: border-box !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
}
/* 4. THE CUSTOM SIDEBAR */
/* Targets the sidebar area (Vector skin) */
#mw-panel {
background-color: #f4f9f6 !important; /* Very faint leaf-green wash */
border-right: 2px solid #3e5a47 !important; /* Forest Green divider */
height: 100vh !important;
}
/* Sidebar Link Styling */
#mw-panel .vector-menu-content-list li a {
color: #3e5a47 !important;
font-family: "Georgia", serif !important;
}
#mw-panel .vector-menu-content-list li a:hover {
color: #ffd700 !important; /* Glows Yellow on hover */
text-decoration: none !important;
}
/* 5. IMAGE AREA (Centered) */
.portable-infobox .pi-image {
background-color: #fcfdfc !important;
padding: 15px !important;
text-align: center !important;
display: block;
}
.portable-infobox .pi-image img {
margin: 0 auto !important;
display: block !important;
max-width: 100% !important;
}
/* 6. DATA ROWS & LEAVES */
.portable-infobox .pi-data {
display: flex !important;
border-bottom: 1px solid #eee !important;
}
.portable-infobox .pi-data-label {
background-color: #f9f9f9 !important;
padding: 10px !important;
flex: 0 0 40% !important;
border-right: 1px solid #ddd !important;
font-size: 11px !important;
font-weight: bold;
}
.portable-infobox .pi-data-value {
padding: 10px !important;
flex: 1 !important;
font-size: 11px !important;
}
.portable-infobox .pi-data-value li::before {
content: "\1F343 " !important;
font-size: 10px !important;
}
/* 7. ARTICLE HEADERS (H2/H3) */
.mw-parser-output h2, .mw-parser-output h3 {
border-bottom: 2px solid #3e5a47 !important;
color: #3e5a47 !important; /* Switched to Green to match theme */
}
.mw-parser-output h2::before { content: "\1F343 " !important; font-size: 20px !important; }
.mw-parser-output h3::before { content: "\1F343 " !important; font-size: 16px !important; }
/* 8. TABLE OF CONTENTS */
#toc, .toc {
border: 2px solid #3e5a47 !important;
background-color: #fff !important;
}
#toctitle h2 { color: #3e5a47 !important; border-bottom: 1px solid #ffd700 !important; }
.tocnumber { color: #ffd700 !important; }
/* 9. AUTOMATIC FOOTER */
.mw-parser-output::after {
content: "🍃\A 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 #3e5a47 !important;
font-family: "Georgia", serif !important;
color: #3e5a47 !important;
font-size: 10px !important;
letter-spacing: 3px !important;
}
/* 10. UI FIXES */
#p-search, .vector-search-box {
float: right !important;
}