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 - INFOBOX & UI COMPLIANCE | ||
============================================================ */ | ============================================================ */ | ||
/* 1. INFOBOX | /* 1. MAIN INFOBOX CONTAINER */ | ||
body.mediawiki .portable-infobox { | body.mediawiki .portable-infobox { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
| Line 12: | Line 12: | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
box-shadow: 2px 2px 8px rgba(0,0,0,0.1) !important; | box-shadow: 2px 2px 8px rgba(0,0,0,0.1) !important; | ||
display: block !important; /* Ensures it doesn't act like a flex item */ | |||
} | } | ||
.pi-title { background-color: #003366 !important; color: # | /* Fixes the Shaded Title - Ensures solid Blue */ | ||
.pi-header { background-color: #3e5a47 !important; color: # | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | |||
color: #ffffff !important; | |||
text-align: center !important; | |||
padding: 10px !important; | |||
font-size: 16px !important; | |||
display: block !important; /* Fixes alignment/shading */ | |||
border: none !important; | |||
} | |||
/* Fixes Section Headers - Centered & Solid Green */ | |||
body.mediawiki .pi-header { | |||
background-color: #3e5a47 !important; | |||
color: #ffffff !important; | |||
text-align: center !important; | |||
padding: 6px 0 !important; | |||
font-size: 11px !important; | |||
display: block !important; | |||
border: none !important; | |||
} | |||
/* 2. IMAGE ALIGNMENT FIX */ | |||
body.mediawiki .pi-image { | |||
display: block !important; | |||
text-align: center !important; | |||
padding: 10px !important; | |||
background-color: #f8f9fa !important; | |||
margin: 0 auto !important; | |||
} | |||
body.mediawiki .pi-image img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
display: inline-block !important; /* Keeps it centered in the box */ | |||
} | |||
/* 3. DATA ROWS (Labels & Values) */ | |||
body.mediawiki .pi-data { | |||
display: flex !important; | |||
flex-direction: row !important; | |||
border-bottom: 1px solid #eee !important; | |||
text-align: left !important; /* Ensures text doesn't inherit center-align */ | |||
} | |||
body.mediawiki .pi-data-label { | |||
background-color: #f9f9f9 !important; | |||
padding: 8px !important; | |||
flex: 0 0 40% !important; | |||
border-right: 1px solid #ddd !important; | |||
font-size: 11px !important; | |||
font-weight: bold !important; | |||
} | |||
body.mediawiki .pi-data-value { | |||
padding: 8px !important; | |||
flex: 1 !important; | |||
font-size: 11px !important; | |||
} | |||
/* | /* 4. LEAF BULLETS (Lists only) */ | ||
. | body.mediawiki .pi-data-value ul { list-style: none !important; margin: 0 !important; padding: 0 !important; } | ||
.pi-data- | body.mediawiki .pi-data-value li::before { content: "\1F343 " !important; font-size: 10px !important; } | ||
. | |||
.pi-data-value li::before { content: "\1F343 " !important; font-size: 10px !important; } | |||
/* | /* 5. PAGE HEADERS (SCOPED - FIXES OVERLAP) */ | ||
.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 29: | Line 85: | ||
padding-bottom: 5px !important; | padding-bottom: 5px !important; | ||
margin-top: 1.5em !important; | margin-top: 1.5em !important; | ||
clear: none !important; /* Allows it to sit next to the infobox */ | |||
} | } | ||
.mw-parser-output h2::before { content: "\1F343 " !important; font-size: 20px !important; } | .mw-parser-output h2::before { content: "\1F343 " !important; font-size: 20px !important; } | ||
/* | /* 6. SEARCH BAR (STAYS RIGHT) */ | ||
#p-search, .vector-search-box, #searchform { | #p-search, .vector-search-box, #searchform { | ||
float: right !important; | float: right !important; | ||
margin-left: auto !important; | margin-left: auto !important; | ||
} | } | ||
Revision as of 01:40, 12 March 2026
/* ============================================================
KH LEAF THEME - INFOBOX & UI COMPLIANCE
============================================================ */
/* 1. MAIN INFOBOX CONTAINER */
body.mediawiki .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;
box-shadow: 2px 2px 8px rgba(0,0,0,0.1) !important;
display: block !important; /* Ensures it doesn't act like a flex item */
}
/* Fixes the Shaded Title - Ensures solid Blue */
body.mediawiki .pi-title {
background-color: #003366 !important;
color: #ffffff !important;
text-align: center !important;
padding: 10px !important;
font-size: 16px !important;
display: block !important; /* Fixes alignment/shading */
border: none !important;
}
/* Fixes Section Headers - Centered & Solid Green */
body.mediawiki .pi-header {
background-color: #3e5a47 !important;
color: #ffffff !important;
text-align: center !important;
padding: 6px 0 !important;
font-size: 11px !important;
display: block !important;
border: none !important;
}
/* 2. IMAGE ALIGNMENT FIX */
body.mediawiki .pi-image {
display: block !important;
text-align: center !important;
padding: 10px !important;
background-color: #f8f9fa !important;
margin: 0 auto !important;
}
body.mediawiki .pi-image img {
max-width: 100% !important;
height: auto !important;
display: inline-block !important; /* Keeps it centered in the box */
}
/* 3. DATA ROWS (Labels & Values) */
body.mediawiki .pi-data {
display: flex !important;
flex-direction: row !important;
border-bottom: 1px solid #eee !important;
text-align: left !important; /* Ensures text doesn't inherit center-align */
}
body.mediawiki .pi-data-label {
background-color: #f9f9f9 !important;
padding: 8px !important;
flex: 0 0 40% !important;
border-right: 1px solid #ddd !important;
font-size: 11px !important;
font-weight: bold !important;
}
body.mediawiki .pi-data-value {
padding: 8px !important;
flex: 1 !important;
font-size: 11px !important;
}
/* 4. LEAF BULLETS (Lists only) */
body.mediawiki .pi-data-value ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body.mediawiki .pi-data-value li::before { content: "\1F343 " !important; font-size: 10px !important; }
/* 5. PAGE HEADERS (SCOPED - FIXES OVERLAP) */
.mw-parser-output h2, .mw-parser-output h3 {
border-bottom: 2px solid #3e5a47 !important;
color: #003366 !important;
padding-bottom: 5px !important;
margin-top: 1.5em !important;
clear: none !important; /* Allows it to sit next to the infobox */
}
.mw-parser-output h2::before { content: "\1F343 " !important; font-size: 20px !important; }
/* 6. SEARCH BAR (STAYS RIGHT) */
#p-search, .vector-search-box, #searchform {
float: right !important;
margin-left: auto !important;
}