MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - COMPACT KH STYLE | PORTABLE INFOBOX - COMPACT KH STYLE (FORCED SHRINK) | ||
============================================================ */ | ============================================================ */ | ||
/* Main Container */ | |||
.portable-infobox { | .portable-infobox { | ||
background-color: #ffffff; | background-color: #ffffff !important; | ||
border: 2px solid #003366; | border: 2px solid #003366 !important; | ||
width: 270px; | width: 270px !important; | ||
float: right; | float: right; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
padding: 0; | padding: 0; | ||
box-shadow: 2px 2px 8px rgba(0,0,0,0.15); | box-shadow: 2px 2px 8px rgba(0,0,0,0.15); | ||
font-family: "Georgia", serif; | font-family: "Georgia", serif !important; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* | /* Force all text inside to be small by default */ | ||
.portable-infobox * { | |||
font-size: 10px !important; | |||
line-height: 1.2 !important; | |||
} | |||
/* Title Bar - Slightly larger than body text but still compact */ | |||
.pi-title { | .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-size: | font-size: 13px !important; | ||
font-weight: bold; | font-weight: bold !important; | ||
text-align: center; | text-align: center; | ||
padding: 8px; | padding: 8px !important; | ||
border-bottom: 2px solid #000; | border-bottom: 2px solid #000 !important; | ||
} | } | ||
| Line 31: | Line 38: | ||
border-bottom: 1px solid #ddd !important; | border-bottom: 1px solid #ddd !important; | ||
text-align: center; | text-align: center; | ||
padding: 5px; | padding: 5px !important; | ||
} | } | ||
/* | /* Section Headers */ | ||
.pi-header { | .pi-header { | ||
background-color: #4a4a4a !important; | background-color: #4a4a4a !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-weight: bold; | font-weight: bold !important; | ||
text-align: center; | text-align: center !important; | ||
padding: 4px 0 !important; | padding: 4px 0 !important; | ||
text-transform: uppercase; | text-transform: uppercase !important; | ||
font-size: 9px; | font-size: 9px !important; | ||
letter-spacing: 1px | letter-spacing: 1px !important; | ||
} | } | ||
/* | /* Labels (Left Side) */ | ||
.pi-data-label { | .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
color: #333 !important; | color: #333 !important; | ||
font-weight: bold; | font-weight: bold !important; | ||
padding: 5px 8px; | padding: 5px 8px !important; | ||
width: 40% !important; | width: 40% !important; | ||
border-right: 1px solid #ccc !important; | border-right: 1px solid #ccc !important; | ||
} | } | ||
/* | /* Values (Right Side) */ | ||
.pi-data-value { | .pi-data-value { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
padding: 5px 8px; | padding: 5px 8px !important; | ||
width: 60% !important; | width: 60% !important; | ||
} | } | ||
.pi-data-value li { | /* Lists and Bullets */ | ||
font-size: 10px; | .pi-data-value ul, .pi-data-value li { | ||
margin: 0 !important; | |||
padding: 0 0 0 12px !important; | |||
font-size: 10px !important; | |||
} | } | ||
Revision as of 23:37, 10 March 2026
/* ============================================================
PORTABLE INFOBOX - COMPACT KH STYLE (FORCED SHRINK)
============================================================ */
/* Main Container */
.portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 270px !important;
float: right;
margin: 0 0 1em 1em;
padding: 0;
box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
font-family: "Georgia", serif !important;
overflow: hidden;
}
/* Force all text inside to be small by default */
.portable-infobox * {
font-size: 10px !important;
line-height: 1.2 !important;
}
/* Title Bar - Slightly larger than body text but still compact */
.pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 13px !important;
font-weight: bold !important;
text-align: center;
padding: 8px !important;
border-bottom: 2px solid #000 !important;
}
.pi-image {
display: block !important;
background-color: #f8f9fa !important;
border-bottom: 1px solid #ddd !important;
text-align: center;
padding: 5px !important;
}
/* Section Headers */
.pi-header {
background-color: #4a4a4a !important;
color: #ffffff !important;
font-weight: bold !important;
text-align: center !important;
padding: 4px 0 !important;
text-transform: uppercase !important;
font-size: 9px !important;
letter-spacing: 1px !important;
}
/* Labels (Left Side) */
.pi-data-label {
background-color: #f2f2f2 !important;
color: #333 !important;
font-weight: bold !important;
padding: 5px 8px !important;
width: 40% !important;
border-right: 1px solid #ccc !important;
}
/* Values (Right Side) */
.pi-data-value {
background-color: #ffffff !important;
padding: 5px 8px !important;
width: 60% !important;
}
/* Lists and Bullets */
.pi-data-value ul, .pi-data-value li {
margin: 0 !important;
padding: 0 0 0 12px !important;
font-size: 10px !important;
}