MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - | PORTABLE INFOBOX - COMPACT KH STYLE | ||
============================================================ */ | ============================================================ */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #ffffff; | background-color: #ffffff; | ||
border: 2px solid #003366; | border: 2px solid #003366; | ||
width: | width: 270px; /* Slightly narrower */ | ||
float: right; | float: right; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
| Line 13: | Line 12: | ||
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; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* | /* Make the title slightly smaller but still bold */ | ||
.pi-title { | .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-size: | font-size: 14px; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 8px; | ||
border-bottom: 2px solid #000; | border-bottom: 2px solid #000; | ||
} | } | ||
.pi-image { | .pi-image { | ||
display: block !important; | display: block !important; | ||
| Line 34: | Line 31: | ||
border-bottom: 1px solid #ddd !important; | border-bottom: 1px solid #ddd !important; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 5px; | ||
} | } | ||
/* | /* SHRUNK TEXT: Section Headers */ | ||
.pi-header { | .pi-header { | ||
background-color: #4a4a4a !important; | background-color: #4a4a4a !important; | ||
| Line 50: | Line 40: | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 4px 0 !important; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
font-size: | font-size: 9px; /* Smaller header */ | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
border-top: 1px solid #333; | border-top: 1px solid #333; | ||
} | } | ||
/* | /* SHRUNK TEXT: 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; | ||
padding: 8px; | padding: 5px 8px; /* Tighter padding */ | ||
width: | width: 40% !important; | ||
font-size: 10px; /* Shrunk from 12px */ | |||
border-right: 1px solid #ccc !important; | border-right: 1px solid #ccc !important; | ||
line-height: 1.2; | |||
} | } | ||
/* SHRUNK TEXT: Values (Right Side) */ | |||
.pi-data-value { | .pi-data-value { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
padding: 8px; | padding: 5px 8px; | ||
width: | width: 60% !important; | ||
font-size: 10px; /* Shrunk from 12px */ | |||
line-height: 1.2; | |||
} | |||
/* Adjust lists inside the infobox to be smaller too */ | |||
.pi-data-value ul { | |||
margin: 0; | |||
padding-left: 15px; | |||
} | |||
.pi-data-value li { | |||
font-size: 10px; | |||
} | } | ||
Revision as of 23:33, 10 March 2026
/* ============================================================
PORTABLE INFOBOX - COMPACT KH STYLE
============================================================ */
.portable-infobox {
background-color: #ffffff;
border: 2px solid #003366;
width: 270px; /* Slightly narrower */
float: right;
margin: 0 0 1em 1em;
padding: 0;
box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
font-family: "Georgia", serif;
overflow: hidden;
}
/* Make the title slightly smaller but still bold */
.pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 14px;
font-weight: bold;
text-align: center;
padding: 8px;
border-bottom: 2px solid #000;
}
.pi-image {
display: block !important;
background-color: #f8f9fa !important;
border-bottom: 1px solid #ddd !important;
text-align: center;
padding: 5px;
}
/* SHRUNK TEXT: Section Headers */
.pi-header {
background-color: #4a4a4a !important;
color: #ffffff !important;
font-weight: bold;
text-align: center;
padding: 4px 0 !important;
text-transform: uppercase;
font-size: 9px; /* Smaller header */
letter-spacing: 1px;
border-top: 1px solid #333;
}
/* SHRUNK TEXT: Labels (Left Side) */
.pi-data-label {
background-color: #f2f2f2 !important;
color: #333 !important;
font-weight: bold;
padding: 5px 8px; /* Tighter padding */
width: 40% !important;
font-size: 10px; /* Shrunk from 12px */
border-right: 1px solid #ccc !important;
line-height: 1.2;
}
/* SHRUNK TEXT: Values (Right Side) */
.pi-data-value {
background-color: #ffffff !important;
padding: 5px 8px;
width: 60% !important;
font-size: 10px; /* Shrunk from 12px */
line-height: 1.2;
}
/* Adjust lists inside the infobox to be smaller too */
.pi-data-value ul {
margin: 0;
padding-left: 15px;
}
.pi-data-value li {
font-size: 10px;
}