MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,197:
font-weight: bold;
background-color: #fff;
padding-bottom: 0.45em; /* air between caption and table */
}
.wikitable.plainrowheaders th[scope=row],
Line 1,231 ⟶ 1,232:
left: 0;
z-index: 1;
box-shadow:
}
.wikitable td:first-child { background-color: #
.wikitable th:first-child { background-color:
/* --- Mobile borders (<= 719px): table border dropped, redrawn per cell --- */
Line 1,244:
table.wikitable > tbody > tr > th,
table.wikitable > tbody > tr > td {
border: 1px solid var(--wt-border
}
}
Line 1,263:
/* ── House table column widths — tunable here, no re-publishing needed ── */
:root {
--wt-col: 6em; /* data columns (class="col") */
--wt-col-wide: 9em; /* wide data columns (class="col-wide") */
--wt-border: #eceef1; /* hairline grid — barely visible */
--wt-edge: #dadde1; /* frozen-column right edge (one notch stronger) */
--wt-th-bg: #f6f7f9; /* header tint (skin default is #eaecf0) */
--wt-pad-y: 0.5em; /* vertical cell padding = row height knob */
}
/* ── Airy look: hairline grid, roomier rows, aligned digits ── */
table.wikitable {
border: 1px solid var(--wt-border);
font-variant-numeric: tabular-nums; /* digits align vertically */
}
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
border: 1px solid var(--wt-border);
padding: var(--wt-pad-y) 0.6em;
}
table.wikitable > * > tr > th { background-color: var(--wt-th-bg); }
/* Row hover — readability across wide rows without permanent zebra weight */
table.wikitable > tbody > tr:hover > td { background-color: #f8f9fa; }
/* Floor for legacy pages published with inline widths (safe to keep wiki-wide) */
.wikitable th:not(:first-child),
| |||