MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
KH LEAF THEME - | KH LEAF THEME - ALIGNMENT & OVERFLOW 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; /* Prevents sticking out */ | |||
overflow: hidden !important; | |||
} | } | ||
/* Fixes the Shaded Title - | /* Fixes the Shaded Title - Solid Blue with White Text */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; /* White text */ | ||
text-align: center !important; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px 5px !important; | ||
font-size: 16px !important; | font-size: 16px !important; | ||
display: block !important; | display: block !important; | ||
border | width: 100% !important; | ||
box-sizing: border-box !important; /* Keeps it inside the border */ | |||
} | } | ||
/* Fixes Section Headers - | /* Fixes Section Headers - Solid Green with White Text */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: #3e5a47 !important; | background-color: #3e5a47 !important; | ||
color: #ffffff !important; | color: #ffffff !important; /* White text */ | ||
text-align: center !important; | text-align: center !important; | ||
padding: 6px 0 !important; | padding: 6px 0 !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
display: block !important; | display: block !important; | ||
border | width: 100% !important; | ||
box-sizing: border-box !important; | |||
} | } | ||
/* 2. IMAGE ALIGNMENT FIX */ | /* 2. IMAGE ALIGNMENT FIX (Force Center) */ | ||
body.mediawiki .pi-image { | body.mediawiki .pi-image { | ||
display: | display: flex !important; | ||
justify-content: center !important; /* Centers horizontally */ | |||
align-items: center !important; | |||
padding: 10px !important; | padding: 10px !important; | ||
background-color: #f8f9fa !important; | background-color: #f8f9fa !important; | ||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
body.mediawiki .pi-image img { | body.mediawiki .pi-image img, | ||
body.mediawiki .pi-image a img { | |||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: | margin: 0 auto !important; | ||
display: block !important; | |||
} | } | ||
/* 3. DATA ROWS | /* 3. DATA ROWS */ | ||
body.mediawiki .pi-data { | body.mediawiki .pi-data { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | flex-direction: row !important; | ||
border-bottom: 1px solid #eee !important; | border-bottom: 1px solid #eee !important; | ||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
| Line 75: | Line 83: | ||
} | } | ||
/* 4. LEAF BULLETS | /* 4. LEAF BULLETS */ | ||
body.mediawiki .pi-data-value ul { list-style: none !important; margin: 0 !important; padding: 0 !important; } | 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; } | body.mediawiki .pi-data-value li::before { content: "\1F343 " !important; font-size: 10px !important; } | ||
/* 5 | /* 5. 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; | ||
} | } | ||