MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
KH LEAF THEME - | KH LEAF THEME - ULTIMATE CONSOLIDATED VERSION | ||
============================================================ */ | ============================================================ */ | ||
| Line 17: | Line 17: | ||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
| Line 31: | Line 30: | ||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: #3e5a47 !important; | background-color: #3e5a47 !important; | ||
| Line 44: | Line 42: | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
letter-spacing: 1px !important; | letter-spacing: 1px !important; | ||
} | } | ||
.portable-infobox .pi-image { | .portable-infobox .pi-image { | ||
background-color: #f2f7f4 !important; | background-color: #f2f7f4 !important; | ||
| Line 63: | Line 59: | ||
} | } | ||
.portable-infobox .pi-data { | .portable-infobox .pi-data { | ||
display: flex !important; | display: flex !important; | ||
| Line 83: | Line 78: | ||
flex: 1 !important; | flex: 1 !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
} | } | ||
| Line 98: | Line 86: | ||
} | } | ||
/* | /* 2. ARTICLE HEADERS (H2/H3) LEAF DECORATION */ | ||
.mw-parser-output h2, .mw-parser-output h3 { | .mw-parser-output h2, .mw-parser-output h3 { | ||
border-bottom: 2px solid #3e5a47 !important; | border-bottom: 2px solid #3e5a47 !important; | ||
| Line 110: | Line 97: | ||
.mw-parser-output h3::before { content: "\1F343 " !important; font-size: 16px !important; } | .mw-parser-output h3::before { content: "\1F343 " !important; font-size: 16px !important; } | ||
/* | /* 3. TABLE OF CONTENTS STYLING */ | ||
#toc, .toc { | |||
background-color: #fcfcfc !important; | |||
border: 2px solid #3e5a47 !important; | |||
padding: 15px !important; | |||
font-family: "Georgia", serif !important; | |||
box-shadow: 3px 3px 8px rgba(0,0,0,0.08) !important; | |||
border-radius: 0 !important; | |||
} | |||
#toctitle h2 { | |||
color: #003366 !important; | |||
font-size: 16px !important; | |||
border-bottom: 1px solid #3e5a47 !important; | |||
padding-bottom: 5px !important; | |||
} | |||
#toctitle h2::before { content: none !important; } | |||
.tocnumber { color: #3e5a47 !important; font-weight: bold !important; } | |||
.toctext { color: #003366 !important; } | |||
/* 4. AUTOMATIC "END OF ENTRY" FOOTER */ | |||
.mw-parser-output::after { | .mw-parser-output::after { | ||
content: "🍃\A END OF ENTRY"; | content: "🍃\A END OF ENTRY"; | ||
| Line 127: | Line 136: | ||
} | } | ||
/* | /* 5. UI FIXES (SEARCH BAR ALIGNMENT) */ | ||
#p-search, .vector-search-box, #searchform { | #p-search, .vector-search-box, #searchform { | ||
float: right !important; | float: right !important; | ||
| Line 133: | Line 142: | ||
} | } | ||
#mw-panel h3::before, .vector-menu-heading::before, #p-search h3::before { | #mw-panel h3::before, .vector-menu-heading::before, #p-search h3::before { | ||
content: none !important; | content: none !important; | ||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 02:40, 12 March 2026
/* ============================================================
KH LEAF THEME - ULTIMATE CONSOLIDATED VERSION
============================================================ */
/* 1. THE MAIN INFOBOX CONTAINER */
.portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
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;
}
.portable-infobox .pi-title {
background-color: #003366 !important;
color: #ffffff !important;
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;
border: none !important;
}
.portable-infobox .pi-header {
background-color: #3e5a47 !important;
color: #ffffff !important;
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;
}
.portable-infobox .pi-image {
background-color: #f2f7f4 !important;
padding: 15px !important;
text-align: center !important;
display: block !important;
border-bottom: 1px solid #d4e0d8 !important;
}
.portable-infobox .pi-image img {
margin: 0 auto !important;
display: block !important;
max-width: 100% !important;
height: auto !important;
}
.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 !important;
color: #333 !important;
}
.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;
display: inline-block !important;
}
/* 2. ARTICLE HEADERS (H2/H3) LEAF DECORATION */
.mw-parser-output h2, .mw-parser-output h3 {
border-bottom: 2px solid #3e5a47 !important;
color: #003366 !important;
padding-bottom: 5px !important;
clear: none !important;
}
.mw-parser-output h2::before { content: "\1F343 " !important; font-size: 20px !important; }
.mw-parser-output h3::before { content: "\1F343 " !important; font-size: 16px !important; }
/* 3. TABLE OF CONTENTS STYLING */
#toc, .toc {
background-color: #fcfcfc !important;
border: 2px solid #3e5a47 !important;
padding: 15px !important;
font-family: "Georgia", serif !important;
box-shadow: 3px 3px 8px rgba(0,0,0,0.08) !important;
border-radius: 0 !important;
}
#toctitle h2 {
color: #003366 !important;
font-size: 16px !important;
border-bottom: 1px solid #3e5a47 !important;
padding-bottom: 5px !important;
}
#toctitle h2::before { content: none !important; }
.tocnumber { color: #3e5a47 !important; font-weight: bold !important; }
.toctext { color: #003366 !important; }
/* 4. AUTOMATIC "END OF ENTRY" 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: #003366 !important;
font-size: 10px !important;
letter-spacing: 3px !important;
font-weight: bold !important;
clear: both !important;
}
/* 5. UI FIXES (SEARCH BAR ALIGNMENT) */
#p-search, .vector-search-box, #searchform {
float: right !important;
margin-left: auto !important;
}
#mw-panel h3::before, .vector-menu-heading::before, #p-search h3::before {
content: none !important;
display: none !important;
}