MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 77: | Line 77: | ||
padding: 0 0 0 15px !important; | padding: 0 0 0 15px !important; | ||
font-size: 12px !important; | font-size: 12px !important; | ||
} | |||
/* Update these three sections in your Common.css */ | |||
.portable-infobox * { | |||
font-size: 13px !important; /* The new "Sweet Spot" size */ | |||
line-height: 1.4 !important; | |||
} | |||
.pi-data-label, .pi-data-value { | |||
font-size: 13px !important; | |||
padding: 8px 10px !important; /* Slightly more breathing room */ | |||
} | |||
.pi-header { | |||
font-size: 11px !important; /* Proportional header size */ | |||
padding: 6px 0 !important; | |||
} | } | ||
Revision as of 23:44, 10 March 2026
/* ============================================================
PORTABLE INFOBOX - READABLE COMPACT STYLE
============================================================ */
/* Main Container */
.portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 300px !important; /* Slightly wider for the larger text */
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;
}
/* Base text size - Bumped to 12px */
.portable-infobox * {
font-size: 12px !important;
line-height: 1.4 !important;
}
/* Title Bar - Keeps its prominence */
.pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 16px !important;
font-weight: bold !important;
text-align: center;
padding: 10px !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: 8px !important;
}
/* Section Headers - Slightly larger than before */
.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: 11px !important;
letter-spacing: 1px !important;
}
/* Labels (Left Side) - Clear and readable */
.pi-data-label {
background-color: #f2f2f2 !important;
color: #333 !important;
font-weight: bold !important;
padding: 7px 10px !important;
width: 40% !important;
border-right: 1px solid #ccc !important;
font-size: 12px !important;
}
/* Values (Right Side) */
.pi-data-value {
background-color: #ffffff !important;
padding: 7px 10px !important;
width: 60% !important;
font-size: 12px !important;
}
/* Lists and Bullets */
.pi-data-value ul, .pi-data-value li {
margin: 2px 0 !important;
padding: 0 0 0 15px !important;
font-size: 12px !important;
}
/* Update these three sections in your Common.css */
.portable-infobox * {
font-size: 13px !important; /* The new "Sweet Spot" size */
line-height: 1.4 !important;
}
.pi-data-label, .pi-data-value {
font-size: 13px !important;
padding: 8px 10px !important; /* Slightly more breathing room */
}
.pi-header {
font-size: 11px !important; /* Proportional header size */
padding: 6px 0 !important;
}