MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→Parts infobox: .partbox{ float: right; →<-- THIS is the alignment: width: 300px; margin: 0 0 16px 16px; →space from the article text: border: 1px solid #c8ccd1; background: #fff; border-radius: 6px; overflow: hidden; } .partbox-title{ background: #2f3b4a; color: #fff; font-weight: 700; padding: 10px 12px; font-size: 14px; } .partbox-table{ width: 100%; border-collapse: collapse; font-size: 13px; } .partbox-ta..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ===================================================== */ | ||
/* Global tweaks (safe & minimal) */ | |||
/* ===================================================== */ | |||
.mw-body { | |||
max-width: 1200px; | |||
} | |||
/* ===================================================== */ | |||
/* PART INFOBOX */ | |||
/* ===================================================== */ | |||
.partbox{ | .partbox{ | ||
float: right; | float: right; | ||
width: 300px; | width: 300px; | ||
margin: 0 0 16px 16px; | margin: 0 0 16px 16px; | ||
border: 1px solid # | border: 1px solid #d1d5db; | ||
background: # | background: #ffffff; | ||
border-radius: 6px; | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 1px 2px rgba(0,0,0,0.04); | |||
} | } | ||
/* --- Infobox title (SOFT dark gray) --- */ | |||
.partbox-title{ | .partbox-title{ | ||
background: # | background: #4b5563; /* slate gray (soft, not black) */ | ||
color: # | color: #f9fafb; | ||
font-weight: 700; | font-weight: 700; | ||
padding: | padding: 9px 12px; | ||
font-size: | font-size: 13.5px; | ||
border-bottom: 1px solid #374151; | |||
} | } | ||
/* --- Table base --- */ | |||
.partbox-table{ | .partbox-table{ | ||
width: 100%; | width: 100%; | ||
| Line 24: | Line 39: | ||
} | } | ||
/* --- Table cells --- */ | |||
.partbox-table th, | .partbox-table th, | ||
.partbox-table td{ | .partbox-table td{ | ||
padding: 8px 10px; | padding: 8px 10px; | ||
border-top: 1px solid # | border-top: 1px solid #e5e7eb; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
/* --- Left column (labels) --- */ | |||
.partbox-table th{ | .partbox-table th{ | ||
width: 42%; | width: 42%; | ||
text-align: left; | text-align: left; | ||
color: # | background: #f3f4f6; /* light gray */ | ||
color: #111827; | |||
font-weight: 600; | font-weight: 600; | ||
background: # | } | ||
/* --- Right column (values) --- */ | |||
.partbox-table td{ | |||
color: #1f2937; | |||
background: #ffffff; | |||
} | |||
/* ===================================================== */ | |||
/* Mobile safety (prevents layout breakage) */ | |||
/* ===================================================== */ | |||
@media (max-width: 768px){ | |||
.partbox{ | |||
float: none; | |||
width: 100%; | |||
margin: 12px 0; | |||
} | |||
} | |||
/* Two-column grid table – restore borders + zebra striping */ | |||
.twocolgrid { | |||
border-collapse: collapse; | |||
} | |||
/* Grid lines */ | |||
.twocolgrid th, | |||
.twocolgrid td { | |||
border: 1px solid #d1d5db; | |||
padding: 10px; | |||
vertical-align: top; | |||
} | |||
/* Header row */ | |||
.twocolgrid th { | |||
background: #f3f4f6; | |||
font-weight: 600; | |||
} | |||
/* Alternating row colors (body only) */ | |||
.twocolgrid tr:nth-child(even) td { | |||
background: #fafafa; | |||
} | |||
.twocolgrid tr:nth-child(odd) td { | |||
background: #ffffff; | |||
} | } | ||
Latest revision as of 22:47, 29 January 2026
/* ===================================================== */
/* Global tweaks (safe & minimal) */
/* ===================================================== */
.mw-body {
max-width: 1200px;
}
/* ===================================================== */
/* PART INFOBOX */
/* ===================================================== */
.partbox{
float: right;
width: 300px;
margin: 0 0 16px 16px;
border: 1px solid #d1d5db;
background: #ffffff;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
/* --- Infobox title (SOFT dark gray) --- */
.partbox-title{
background: #4b5563; /* slate gray (soft, not black) */
color: #f9fafb;
font-weight: 700;
padding: 9px 12px;
font-size: 13.5px;
border-bottom: 1px solid #374151;
}
/* --- Table base --- */
.partbox-table{
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
/* --- Table cells --- */
.partbox-table th,
.partbox-table td{
padding: 8px 10px;
border-top: 1px solid #e5e7eb;
vertical-align: top;
}
/* --- Left column (labels) --- */
.partbox-table th{
width: 42%;
text-align: left;
background: #f3f4f6; /* light gray */
color: #111827;
font-weight: 600;
}
/* --- Right column (values) --- */
.partbox-table td{
color: #1f2937;
background: #ffffff;
}
/* ===================================================== */
/* Mobile safety (prevents layout breakage) */
/* ===================================================== */
@media (max-width: 768px){
.partbox{
float: none;
width: 100%;
margin: 12px 0;
}
}
/* Two-column grid table – restore borders + zebra striping */
.twocolgrid {
border-collapse: collapse;
}
/* Grid lines */
.twocolgrid th,
.twocolgrid td {
border: 1px solid #d1d5db;
padding: 10px;
vertical-align: top;
}
/* Header row */
.twocolgrid th {
background: #f3f4f6;
font-weight: 600;
}
/* Alternating row colors (body only) */
.twocolgrid tr:nth-child(even) td {
background: #fafafa;
}
.twocolgrid tr:nth-child(odd) td {
background: #ffffff;
}