MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
KH LEAF THEME - ALIGNMENT | KH LEAF THEME - FULL STRETCH & ALIGNMENT FIX | ||
============================================================ */ | ============================================================ */ | ||
| 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; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
overflow: hidden !important; | overflow: hidden !important; | ||
padding: 0 !important; /* CRITICAL: Removes the gap around headers */ | |||
} | } | ||
/* Fixes the Shaded Title - Solid Blue | /* Fixes the Shaded Title - Solid Blue, White Text, Full Stretch */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-align: center !important; | text-align: center !important; | ||
padding: | padding: 12px 0 !important; /* Vertical padding only */ | ||
font-size: 16px !important; | font-size: 16px !important; | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; /* Forces stretch */ | ||
box-sizing: border-box !important; | margin: 0 !important; /* Removes any offset */ | ||
box-sizing: border-box !important; | |||
} | } | ||
/* Fixes Section Headers - Solid Green | /* Fixes Section Headers - Solid Green, White Text, Full Stretch */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: #3e5a47 !important; | background-color: #3e5a47 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-align: center !important; | text-align: center !important; | ||
padding: | padding: 8px 0 !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; /* Forces stretch */ | ||
margin: 0 !important; /* Removes any offset */ | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
text-transform: uppercase !important; | |||
} | } | ||
/* 2. IMAGE ALIGNMENT FIX ( | /* 2. IMAGE ALIGNMENT FIX (Centered) */ | ||
body.mediawiki .pi-image { | body.mediawiki .pi-image { | ||
display: flex !important; | display: flex !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
align-items: center !important; | align-items: center !important; | ||
padding: | padding: 15px !important; | ||
background-color: #f8f9fa !important; | background-color: #f8f9fa !important; | ||
width: 100% !important; | width: 100% !important; | ||
| Line 51: | Line 55: | ||
} | } | ||
body.mediawiki .pi-image | body.mediawiki .pi-image img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* 3. DATA ROWS */ | /* 3. DATA ROWS (Labels & Values) */ | ||
body.mediawiki .pi-data { | body.mediawiki .pi-data { | ||
display: flex !important; | display: flex !important; | ||
| Line 66: | Line 68: | ||
width: 100% !important; | width: 100% !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
margin: 0 !important; | |||
} | } | ||
body.mediawiki .pi-data-label { | body.mediawiki .pi-data-label { | ||
background-color: # | background-color: #f2f2f2 !important; | ||
padding: | padding: 10px !important; | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; | ||
border-right: 1px solid # | border-right: 1px solid #dddddd !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
color: #333 !important; | |||
} | } | ||
body.mediawiki .pi-data-value { | body.mediawiki .pi-data-value { | ||
padding: | padding: 10px !important; | ||
flex: 1 !important; | flex: 1 !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
background-color: #ffffff !important; | |||
} | } | ||
/* 4. LEAF BULLETS */ | /* 4. LEAF BULLETS FOR LISTS */ | ||
body.mediawiki .pi-data-value ul { list-style: none !important; margin: 0 !important; padding: 0 !important; } | body.mediawiki .pi-data-value ul { | ||
body.mediawiki .pi-data-value li::before { content: "\1F343 " !important; font-size: 10px !important; } | 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. SEARCH BAR ( | /* 5. SEARCH BAR FIX (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; | ||
} | } | ||