MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 31.0 - Seamless Stack Miraheze Mirror | ||
Fixes: | Fixes: Gaps between Title, Headers, and Labels/Data | ||
*/ | */ | ||
| Line 24: | Line 24: | ||
} | } | ||
/* --- 2 | /* --- 2. THE INFOBOX (ZERO-GAP CONSTRUCTION) --- */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 41: | Line 32: | ||
margin: 0 0 1em 1.2em !important; | margin: 0 0 1em 1.2em !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border-spacing: 0 !important; | border-spacing: 0 !important; /* Removes gaps between cells */ | ||
border-collapse: collapse !important; /* Ensures borders touch */ | |||
font-size: 0.88em !important; | font-size: 0.88em !important; | ||
} | } | ||
/* Title Styling: | /* Force all internal "group" containers to have zero margin/padding gaps */ | ||
.portable-infobox .pi-item, | |||
.portable-infobox .pi-group, | |||
.portable-infobox .pi-section { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* Title Styling: Full Width and Height Fill */ | |||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
| Line 51: | Line 51: | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: 15px 10px !important; | padding: 15px 10px !important; | ||
font-size: 1.25em !important; | font-size: 1.25em !important; | ||
text-align: center !important; | text-align: center !important; | ||
display: block !important; | display: block !important; | ||
margin: 0 !important; | |||
border-bottom: 1px solid #a2a9b1 !important; | |||
} | } | ||
/* Header Styling: | /* Header Styling: Full Width and Height Fill */ | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #fff !important; | color: #fff !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: 10px 5px !important; | padding: 10px 5px !important; | ||
text-align: center !important; | text-align: center !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
display: block !important; | display: block !important; | ||
margin: 0 !important; | |||
} | |||
/* Image Container: Remove gaps around the image */ | |||
.portable-infobox .pi-image { | |||
padding: 0 !important; /* Miraheze usually has no padding here */ | |||
margin: 0 !important; | |||
line-height: 0 !important; /* Prevents tiny gap at bottom of images */ | |||
background-color: #fff !important; | |||
} | |||
.portable-infobox .pi-image img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
display: block !important; | |||
margin: 0 auto !important; | |||
} | } | ||
| Line 79: | Line 90: | ||
display: table-row !important; | display: table-row !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 0 !important; | |||
} | } | ||
| Line 86: | Line 98: | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: | padding: 8px !important; | ||
border-bottom: 1px solid #a2a9b1 !important; | border-bottom: 1px solid #a2a9b1 !important; | ||
border-right: 1px solid #a2a9b1 !important; | border-right: 1px solid #a2a9b1 !important; | ||
| Line 94: | Line 106: | ||
.pi-data-value { | .pi-data-value { | ||
display: table-cell !important; | display: table-cell !important; | ||
padding: | padding: 8px !important; | ||
border-bottom: 1px solid #a2a9b1 !important; | border-bottom: 1px solid #a2a9b1 !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
| Line 100: | Line 112: | ||
} | } | ||
/* --- | /* --- 3. TABLE OF CONTENTS (TOC) --- */ | ||
#toc, .toc { | |||
background-color: #f8f9fa !important; | |||
border: 1px solid #a2a9b1 !important; | |||
padding: 8px !important; | |||
font-size: 90% !important; | |||
display: table !important; | |||
} | } | ||