MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - FINAL READABLE KH STYLE | PORTABLE INFOBOX - FINAL READABLE KH STYLE (LOCAL FIX) | ||
============================================================ */ | ============================================================ */ | ||
/* Main Container */ | /* Main Container - Added body.mediawiki for higher priority */ | ||
.portable-infobox { | body.mediawiki .portable-infobox { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border: 2px solid #003366 !important; | border: 2px solid #003366 !important; | ||
width: 320px !important; | width: 320px !important; | ||
float: right; | float: right !important; | ||
margin: 0 0 1em 1em; | clear: right !important; | ||
padding: 0; | margin: 0 0 1em 1em !important; | ||
box-shadow: 2px 2px 8px rgba(0,0,0,0.15); | padding: 0 !important; | ||
box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important; | |||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
overflow: hidden; | overflow: hidden !important; | ||
display: table !important; | |||
} | } | ||
/* 1. THE TITLE | /* 1. THE TITLE */ | ||
.pi-title { | .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-size: 20px !important; | font-size: 20px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
text-align: center; | text-align: center !important; | ||
padding: 12px !important; | padding: 12px !important; | ||
border-bottom: 2px solid #000 !important; | border-bottom: 2px solid #000 !important; | ||
} | } | ||
/* 2. MAIN BODY TEXT - | /* 2. MAIN BODY TEXT - 13px Sweet Spot */ | ||
.portable-infobox *, | .portable-infobox *, | ||
.pi-data-label, | .pi-data-label, | ||
| Line 45: | Line 47: | ||
font-size: 11px !important; | font-size: 11px !important; | ||
letter-spacing: 1.5px !important; | letter-spacing: 1.5px !important; | ||
border-top: 1px solid #333; | border-top: 1px solid #333 !important; | ||
} | } | ||
/* 4. LABELS & VALUES | /* 4. LABELS & VALUES */ | ||
.pi-data-label { | .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
| Line 64: | Line 66: | ||
} | } | ||
/* 5. IMAGE AREA */ | /* 5. IMAGE AREA - Forced Visibility */ | ||
.pi-image { | .pi-image { | ||
display: block !important; | display: block !important; | ||
background-color: #f8f9fa !important; | background-color: #f8f9fa !important; | ||
border-bottom: 1px solid #ddd !important; | border-bottom: 1px solid #ddd !important; | ||
text-align: center; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
min-height: 50px !important; | |||
} | |||
.pi-image img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
display: block !important; | |||
margin: 0 auto !important; | |||
} | } | ||
| Line 80: | Line 90: | ||
} | } | ||
/* | /* Clearfix for the float */ | ||
.portable-infobox | .portable-infobox::after { | ||
content: "" !important; | |||
display: table !important; | |||
clear: both !important; | |||
} | } | ||
Revision as of 00:20, 11 March 2026
/* ============================================================
PORTABLE INFOBOX - FINAL READABLE KH STYLE (LOCAL FIX)
============================================================ */
/* Main Container - Added body.mediawiki for higher priority */
body.mediawiki .portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 320px !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;
display: table !important;
}
/* 1. THE TITLE */
.pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 20px !important;
font-weight: bold !important;
text-align: center !important;
padding: 12px !important;
border-bottom: 2px solid #000 !important;
}
/* 2. MAIN BODY TEXT - 13px Sweet Spot */
.portable-infobox *,
.pi-data-label,
.pi-data-value {
font-size: 13px !important;
line-height: 1.4 !important;
}
/* 3. SECTION HEADERS */
.pi-header {
background-color: #4a4a4a !important;
color: #ffffff !important;
font-weight: bold !important;
text-align: center !important;
padding: 8px 0 !important;
text-transform: uppercase !important;
font-size: 11px !important;
letter-spacing: 1.5px !important;
border-top: 1px solid #333 !important;
}
/* 4. LABELS & VALUES */
.pi-data-label {
background-color: #f2f2f2 !important;
color: #333 !important;
font-weight: bold !important;
padding: 8px 10px !important;
width: 40% !important;
border-right: 1px solid #ccc !important;
}
.pi-data-value {
background-color: #ffffff !important;
padding: 8px 10px !important;
width: 60% !important;
}
/* 5. IMAGE AREA - Forced Visibility */
.pi-image {
display: block !important;
background-color: #f8f9fa !important;
border-bottom: 1px solid #ddd !important;
text-align: center !important;
padding: 10px !important;
min-height: 50px !important;
}
.pi-image img {
max-width: 100% !important;
height: auto !important;
display: block !important;
margin: 0 auto !important;
}
/* 6. LISTS */
.pi-data-value ul, .pi-data-value li {
margin: 2px 0 !important;
padding: 0 0 0 15px !important;
font-size: 13px !important;
}
/* Clearfix for the float */
.portable-infobox::after {
content: "" !important;
display: table !important;
clear: both !important;
}