MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,362:
table.wikitable caption { background-color: transparent; }
table.wikitable > tbody > tr:hover > td { background-color: #f2ede5; }
/* the frozen first column carries its own paper bg (below) at higher
specificity, so it needs its OWN hover rule to warm with the row */
table.wikitable.fintable > tbody > tr:hover > td:first-child,
table.wikitable:has(.col, .col-wide) > tbody > tr:hover > td:first-child {
background-color: #f2ede5;
}▼
table.wikitable.fintable td:first-child,
Line 1,382 ⟶ 1,388:
table.wikitable:has(.col, .col-wide) { border-left: none; }
/*
every table in <div style="overflow-x:auto">): top margin gives air
before the eyebrow caption + separates consecutive tables; the scrollbar
goes thin and quiet in the header-row tint */
.mw-parser-output div[style*="overflow-x"],
.copy-table-scroll {
margin: 1.8em 0 2em;
scrollbar-width: thin;
scrollbar-color: var(--wt-th-bg) transparent;
}▼
/* caption = the table's TITLE as a quiet EYEBROW (the shared kicker
treatment — breadcrumb / infobox header): uppercase sans, letter-spaced,
secondary ink, with air below before the grid. No glyph. */
table.wikitable caption {
font-size: 0.
font-weight: 600;
letter-spacing: 0.08em;
▲}
text-transform: uppercase;
color: var(--ed-secondary);
}
Line 1,583 ⟶ 1,601:
--toc-header-inset: 0.6rem;
}
.vector-toc .vector-toc-list-item.vector-toc-level-2 { --toc-numb-gutter: 2.8rem; }
/* ^ the level-2 box (gutter - 0.35rem gap) must fit "12.1." (~39px @13px
tabular) —
butted against the text */
.vector-toc .vector-toc-list-item {▼
position: relative; /* the number's anchor */▼
padding: 0.22rem 0 0.22rem var(--toc-numb-gutter) !important;▼
font-size: var(--ed-small); /* li, link text and the abspos number must▼
share ONE font size: the number's static▼
position is computed from the LI's line▼
metrics — a larger li strut seats the▼
number ~1px above the 13px text */▼
▲}
/* CONTENTS header: label + 1px ink rule on the title rule's line
Line 1,635 ⟶ 1,643:
list-style: none;
}
▲.vector-toc .vector-toc-list-item {
▲ position: relative; /* the number's anchor */
▲ padding: 0.22rem 0 0.22rem var(--toc-numb-gutter) !important;
▲ font-size: var(--ed-small); /* li, link text and the abspos number must
▲ share ONE font size: the number's static
▲ position is computed from the LI's line
▲ metrics — a larger li strut seats the
▲ number ~1px above the 13px text */
}
.vector-toc .vector-toc-list-item > .vector-toc-list { margin-top: 0.1rem; }
| |||