MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,627:
color: var(--text-dark) !important;
}
/* h6 = bold BODY text (serif, body size), not a sans heading; normal paragraph*/
spacing to the content below (no heading gap, no rule) */
.mw-body-content h6 {
font-family: var(--ed-serif);
Line 1,634 ⟶ 1,633:
font-weight: 700;
color: var(--text-dark) !important;
}
margin: 1em 0 0.4em;
/* h6 spacing: MORE before, LESS after. This wiki wraps headings in a
.mw-heading<N> div that owns the layout margin (cf. the .mw-heading2 rule
above), so the margin MUST sit on the wrapper — also on the bare h6 as a
fallback for un-wrapped DOM. */
.mw-body-content h6,
.mw-body-content .mw-heading6 {
margin: 1em1.8em 0 0.4em2em !important;
}
/* pull the block right after an h6 up close, so "less space after" holds even
before a table. The emitter wraps every table in an overflow-x div (1.8em top
margin); the copy-table gadget later injects .copy-table-scroll INSIDE it
(also 1.8em) — the overflow div is a block-formatting context, so that inner
margin can't collapse away. Reset both wrappers, plus a following paragraph. */
.mw-body-content .mw-heading6 + div[style*="overflow-x"],
.mw-body-content h6 + div[style*="overflow-x"],
.mw-body-content .mw-heading6 + div[style*="overflow-x"] > .copy-table-scroll,
.mw-body-content h6 + div[style*="overflow-x"] > .copy-table-scroll,
.mw-body-content .mw-heading6 + p,
.mw-body-content h6 + p {
margin-top: 0.2em !important;
}
/* the inner spans are pinned #202122 !important by old skin CSS — make
Line 1,743 ⟶ 1,762:
font-weight: 500 !important; /* the "current" cue (dark + bold on one row) */
}
/* hideNB: level-6hiding headingsh6 from the TOC. Bodyis headingsdone arein H2.Common.H6js and(pruneTocH6) pages areMediaWiki's
H2-topped,TOC soencodes MediaWikionly numbersa bycompacted nesting depth H2=(vector-toc-level-1N), NOT H6=level-5;the
level-5original targetsheading ONLYtag, H6so (H5CSS =cannot level-4reliably istarget untouched)h6. */
.vector-toc .vector-toc-level-5 { display: none !important; }
 
/* lists flush on the component edge; hanging indent carried on every li */