MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - KH STYLE ( | PORTABLE INFOBOX - KH STYLE (COMPACT VERSION) | ||
============================================================ */ | ============================================================ */ | ||
| Line 7: | Line 7: | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border: 2px solid #003366 !important; | border: 2px solid #003366 !important; | ||
width: | width: 280px !important; /* Slightly narrower to match smaller text */ | ||
float: right !important; | float: right !important; | ||
clear: right !important; | clear: right !important; | ||
| Line 15: | Line 15: | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
overflow: hidden !important; | overflow: hidden !important; | ||
line-height: 1.4 !important; /* Tighter line spacing */ | |||
} | } | ||
/* 1. THE TITLE - | /* 1. THE TITLE - Scaled down from 20px to 16px */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-size: | font-size: 16px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
text-align: center !important; | text-align: center !important; | ||
padding: | padding: 8px !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* 2. SECTION HEADERS - | /* 2. SECTION HEADERS - Scaled down to 10px */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: #4a4a4a !important; | background-color: #4a4a4a !important; | ||
| Line 34: | Line 35: | ||
font-weight: bold !important; | font-weight: bold !important; | ||
text-align: center !important; | text-align: center !important; | ||
padding: | padding: 6px 0 !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
font-size: | font-size: 10px !important; | ||
letter-spacing: 1. | letter-spacing: 1.2px !important; | ||
border-top: 1px solid #333 !important; | border-top: 1px solid #333 !important; | ||
display: block !important; | display: block !important; | ||
| Line 47: | Line 48: | ||
background-color: #f8f9fa !important; | background-color: #f8f9fa !important; | ||
text-align: center !important; | text-align: center !important; | ||
padding: | padding: 5px !important; | ||
} | } | ||
| Line 55: | Line 56: | ||
} | } | ||
/* 4. DATA LABELS & VALUES */ | /* 4. DATA LABELS & VALUES - Scaled down to 11px */ | ||
body.mediawiki .pi-data-label { | body.mediawiki .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
color: #333333 !important; | color: #333333 !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: | padding: 6px 10px !important; | ||
font-size: 11px !important; | |||
} | } | ||
| Line 66: | Line 68: | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
color: #333333 !important; | color: #333333 !important; | ||
padding: | padding: 6px 10px !important; | ||
font-size: 11px !important; | |||
} | } | ||
| Line 72: | Line 75: | ||
body.mediawiki .pi-data-value ul { | body.mediawiki .pi-data-value ul { | ||
margin: 0 !important; | margin: 0 !important; | ||
padding-left: 1. | padding-left: 1.2em !important; | ||
font-size: 11px !important; | |||
} | } | ||
Revision as of 00:57, 12 March 2026
/* ============================================================
PORTABLE INFOBOX - KH STYLE (COMPACT VERSION)
============================================================ */
/* Main Container */
body.mediawiki .portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 280px !important; /* Slightly narrower to match smaller text */
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;
line-height: 1.4 !important; /* Tighter line spacing */
}
/* 1. THE TITLE - Scaled down from 20px to 16px */
body.mediawiki .pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 16px !important;
font-weight: bold !important;
text-align: center !important;
padding: 8px !important;
display: block !important;
}
/* 2. SECTION HEADERS - Scaled down to 10px */
body.mediawiki .pi-header {
background-color: #4a4a4a !important;
color: #ffffff !important;
font-weight: bold !important;
text-align: center !important;
padding: 6px 0 !important;
text-transform: uppercase !important;
font-size: 10px !important;
letter-spacing: 1.2px !important;
border-top: 1px solid #333 !important;
display: block !important;
}
/* 3. IMAGE AREA */
body.mediawiki .pi-image {
display: block !important;
background-color: #f8f9fa !important;
text-align: center !important;
padding: 5px !important;
}
body.mediawiki .pi-image img {
max-width: 100% !important;
height: auto !important;
}
/* 4. DATA LABELS & VALUES - Scaled down to 11px */
body.mediawiki .pi-data-label {
background-color: #f2f2f2 !important;
color: #333333 !important;
font-weight: bold !important;
padding: 6px 10px !important;
font-size: 11px !important;
}
body.mediawiki .pi-data-value {
background-color: #ffffff !important;
color: #333333 !important;
padding: 6px 10px !important;
font-size: 11px !important;
}
/* 5. LISTS */
body.mediawiki .pi-data-value ul {
margin: 0 !important;
padding-left: 1.2em !important;
font-size: 11px !important;
}