MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 72: | Line 72: | ||
margin: 12px 0; | 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;
}