MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,194:
table.wikitable.wt-freeze-2 td:first-child { background-color: #fff; }
table.wikitable.wt-freeze-2 th:first-child { background-color: var(--wt-th-bg); }
 
/* ── wt-bleed add-on: a .fintable that BREAKS OUT to the right instead of scrolling in its wrapper — it
differs from plain fintable ONLY in the overflow. The emitter wraps every table in an inline
<div style="overflow-x:auto">; for a .wt-bleed table we set that wrapper back to overflow:visible (via
:has), so a table wider than the content column paints past the right edge at its natural width and the
PAGE gains a horizontal scroll (default MediaWiki wide-table behavior) instead of a per-table scrollbar.
`!important` beats the wrapper's INLINE overflow-x:auto. Everything else — column widths, frame, header
tint, the frozen first column — stays exactly fintable. The TOC sits in the left grid column, so a
right-edge breakout never reaches it. Apply by adding `wt-bleed` to the table class (Module:TermMap does
this for the Datacheck review tables). ── */
.mw-parser-output div[style*="overflow-x"]:has(table.wikitable.wt-bleed) {
overflow-x: visible !important;
}
 
@media screen and (max-width: 719px) {
Line 2,027 ⟶ 2,040:
.rt-status-validated { background: #e6f3ea; color: #137333; }
.rt-status-redo { background: #faf0dc; color: #8a5300; }
 
/* Datacheck review tables (namespace ns-3006) OVERFLOW rather than fit. The Module wraps every table in a
<div style="overflow-x:auto">, so we let the review table keep its natural .fintable column widths and
scroll horizontally instead of crushing every column to fit the (high-DPI, ~1120px) viewport. The first
column (Term) therefore stays FROZEN — sticky, via the .fintable bundle — so the item name is always
visible while you scroll the data columns; the Validate/Redo/Status controls sit right after it (Module:
TermMap column order), reachable at the left scroll position. No ns-3006 table overrides are needed:
default .fintable behavior IS what a wide review table wants — this comment is the only thing kept so a
future reader knows the fit-to-viewport hack was removed deliberately, not lost. */
 
.rt-btn {