MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - KH LEAF THEME | PORTABLE INFOBOX - KH LEAF THEME | ||
============================================================ */ | ============================================================ */ | ||
/* | /* Main Container */ | ||
body.mediawiki .portable-infobox { | body.mediawiki .portable-infobox { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
| Line 17: | Line 17: | ||
} | } | ||
/* | /* Title Area */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
| Line 28: | Line 28: | ||
} | } | ||
/* | /* Section Headers (Forest Green) */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: #3e5a47 !important; | background-color: #3e5a47 !important; | ||
| Line 42: | Line 42: | ||
} | } | ||
/* | /* Data Row Layout (Flexbox Alignment) */ | ||
body.mediawiki .pi-data { | body.mediawiki .pi-data { | ||
display: flex !important; | display: flex !important; | ||
| Line 75: | Line 52: | ||
} | } | ||
/* Label Side (Left) */ | |||
body.mediawiki .pi-data-label { | body.mediawiki .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
| Line 81: | Line 59: | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; | ||
border-right: 1px solid #dddddd !important; | border-right: 1px solid #dddddd !important; | ||
display: flex !important; | display: flex !important; | ||
| Line 87: | Line 65: | ||
} | } | ||
/* Value Side (Right) */ | |||
body.mediawiki .pi-data-value { | body.mediawiki .pi-data-value { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
| Line 92: | Line 71: | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 1 !important; | flex: 1 !important; | ||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
} | } | ||
/* | /* Leaf Bullets for Lists in Infobox */ | ||
body.mediawiki .pi-data-value ul { | |||
list-style: none !important; | |||
margin: 0 !important; | |||
padding-left: 0 !important; | |||
} | |||
body.mediawiki .pi-data-value li { | |||
padding-left: 1.8em !important; | |||
position: relative !important; | |||
} | |||
body.mediawiki .pi-data-value li::before { | |||
content: "\1F343" !important; /* Unicode Leaf 🍃 */ | |||
position: absolute !important; | |||
left: 0 !important; | |||
font-size: 12px !important; | |||
top: 0 !important; | |||
} | |||
/* Image Styling */ | |||
body.mediawiki .pi-image { | body.mediawiki .pi-image { | ||
display: block !important; | display: block !important; | ||
| Line 112: | Line 111: | ||
/* ============================================================ | /* ============================================================ | ||
PAGE HEADERS - LEAF DECORATION (SCOPED) | |||
============================================================ */ | ============================================================ */ | ||
/* | /* H2 Headers (Main Content Only) */ | ||
h2 { | #mw-content-text h2, | ||
.mw-body-content h2 { | |||
position: relative !important; | position: relative !important; | ||
padding-left: 35px !important; | padding-left: 35px !important; | ||
border-bottom: 2px solid #3e5a47 !important; | border-bottom: 2px solid #3e5a47 !important; | ||
color: #003366 !important; | color: #003366 !important; | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
margin-top: 1.5em !important; | margin-top: 1.5em !important; | ||
} | } | ||
#mw-content-text h2::before, | |||
h2::before { | .mw-body-content h2::before { | ||
content: "\1F343" !important; | content: "\1F343" !important; | ||
position: absolute !important; | position: absolute !important; | ||
left: 0 !important; | left: 0 !important; | ||
bottom: 5px !important; | bottom: 5px !important; | ||
font-size: 22px !important; | font-size: 22px !important; | ||
} | } | ||
/* | /* H3 Headers (Sub-content Only) */ | ||
h3 { | #mw-content-text h3, | ||
.mw-body-content h3 { | |||
position: relative !important; | position: relative !important; | ||
padding-left: 28px !important; | padding-left: 28px !important; | ||
color: #3e5a47 !important; | color: #3e5a47 !important; | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
} | } | ||
#mw-content-text h3::before, | |||
h3::before { | .mw-body-content h3::before { | ||
content: "\1F343" !important; | content: "\1F343" !important; | ||
position: absolute !important; | position: absolute !important; | ||
| Line 150: | Line 151: | ||
} | } | ||
/* | /* ============================================================ | ||
/* | LAYOUT FIXES (SEARCH BAR & ALIGNMENT) | ||
============================================================ */ | |||
/* Force Search Bar to stay aligned and ignore header padding */ | |||
#p-search, | |||
#searchform, | |||
#searchInput, | |||
.mw-searchInput { | |||
padding-left: 0 !important; | |||
margin-left: 0 !important; | |||
position: relative !important; | |||
} | } | ||
/* Prevents Leaf Emoji from appearing in the Sidebar navigation */ | |||
#mw-panel h3::before, | |||
#p-navigation h3::before, | |||
.vector-menu-heading::before { | |||
content: none !important; | |||
} | } | ||
#mw-panel h3, | |||
.vector-menu-heading { | |||
padding-left: 0 !important; | |||
} | } | ||
Revision as of 01:33, 12 March 2026
/* ============================================================
PORTABLE INFOBOX - KH LEAF THEME
============================================================ */
/* Main Container */
body.mediawiki .portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 300px !important;
float: right !important;
clear: right !important;
margin: 0 0 1em 1em !important;
padding: 0 !important;
box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important;
font-family: "Georgia", serif !important;
overflow: hidden !important;
}
/* Title Area */
body.mediawiki .pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 16px !important;
font-weight: bold !important;
text-align: center !important;
padding: 10px !important;
display: block !important;
}
/* Section Headers (Forest Green) */
body.mediawiki .pi-header {
background-color: #3e5a47 !important;
color: #ffffff !important;
font-weight: bold !important;
text-align: center !important;
padding: 6px 0 !important;
text-transform: uppercase !important;
font-size: 10px !important;
letter-spacing: 1.2px !important;
border-top: 1px solid #2d4234 !important;
display: block !important;
}
/* Data Row Layout (Flexbox Alignment) */
body.mediawiki .pi-data {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
border-bottom: 1px solid #e0e0e0 !important;
width: 100% !important;
}
/* Label Side (Left) */
body.mediawiki .pi-data-label {
background-color: #f2f2f2 !important;
color: #333333 !important;
font-weight: bold !important;
padding: 8px 12px !important;
font-size: 11px !important;
flex: 0 0 40% !important;
border-right: 1px solid #dddddd !important;
display: flex !important;
align-items: center !important;
}
/* Value Side (Right) */
body.mediawiki .pi-data-value {
background-color: #ffffff !important;
color: #333333 !important;
padding: 8px 12px !important;
font-size: 11px !important;
flex: 1 !important;
display: flex !important;
align-items: center !important;
}
/* Leaf Bullets for Lists in Infobox */
body.mediawiki .pi-data-value ul {
list-style: none !important;
margin: 0 !important;
padding-left: 0 !important;
}
body.mediawiki .pi-data-value li {
padding-left: 1.8em !important;
position: relative !important;
}
body.mediawiki .pi-data-value li::before {
content: "\1F343" !important; /* Unicode Leaf 🍃 */
position: absolute !important;
left: 0 !important;
font-size: 12px !important;
top: 0 !important;
}
/* Image Styling */
body.mediawiki .pi-image {
display: block !important;
background-color: #f8f9fa !important;
text-align: center !important;
padding: 10px !important;
border-bottom: 1px solid #dddddd !important;
}
body.mediawiki .pi-image img {
max-width: 100% !important;
height: auto !important;
}
/* ============================================================
PAGE HEADERS - LEAF DECORATION (SCOPED)
============================================================ */
/* H2 Headers (Main Content Only) */
#mw-content-text h2,
.mw-body-content h2 {
position: relative !important;
padding-left: 35px !important;
border-bottom: 2px solid #3e5a47 !important;
color: #003366 !important;
font-family: "Georgia", serif !important;
margin-top: 1.5em !important;
}
#mw-content-text h2::before,
.mw-body-content h2::before {
content: "\1F343" !important;
position: absolute !important;
left: 0 !important;
bottom: 5px !important;
font-size: 22px !important;
}
/* H3 Headers (Sub-content Only) */
#mw-content-text h3,
.mw-body-content h3 {
position: relative !important;
padding-left: 28px !important;
color: #3e5a47 !important;
font-family: "Georgia", serif !important;
}
#mw-content-text h3::before,
.mw-body-content h3::before {
content: "\1F343" !important;
position: absolute !important;
left: 0 !important;
font-size: 18px !important;
}
/* ============================================================
LAYOUT FIXES (SEARCH BAR & ALIGNMENT)
============================================================ */
/* Force Search Bar to stay aligned and ignore header padding */
#p-search,
#searchform,
#searchInput,
.mw-searchInput {
padding-left: 0 !important;
margin-left: 0 !important;
position: relative !important;
}
/* Prevents Leaf Emoji from appearing in the Sidebar navigation */
#mw-panel h3::before,
#p-navigation h3::before,
.vector-menu-heading::before {
content: none !important;
}
#mw-panel h3,
.vector-menu-heading {
padding-left: 0 !important;
}