MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 427: | Line 427: | ||
} | } | ||
/* TOC list item — flex so link and toggle sit on same line */ | /* TOC list item — flex so link and toggle sit on same line. | ||
flex-wrap: nowrap prevents rows from stacking/overlapping. */ | |||
.vector-toc .vector-toc-list-item { | .vector-toc .vector-toc-list-item { | ||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
flex-wrap: | flex-wrap: nowrap !important; | ||
min-height: 0 !important; | |||
} | } | ||
| Line 441: | Line 443: | ||
/* Sublist takes full width on its own line */ | /* Sublist takes full width on its own line */ | ||
.vector-toc .vector-toc-list-item > .vector-toc-list { | .vector-toc .vector-toc-list-item > .vector-toc-list { | ||
flex: | flex: none !important; | ||
width: 100% !important; | |||
display: block !important; | |||
} | } | ||
/* Toggle button — | /* Toggle button — fixed px dimensions so it's immune to the parent's | ||
large font-size (1.1em) and line-height (2). align-self: center | |||
ensures it vertically centres in the flex row regardless of how | |||
tall the link text is. */ | |||
.vector-toc .cdx-button.vector-toc-toggle { | .vector-toc .cdx-button.vector-toc-toggle { | ||
flex: 0 0 auto !important; | flex: 0 0 auto !important; | ||
| Line 455: | Line 462: | ||
min-width: 0 !important; | min-width: 0 !important; | ||
min-height: 0 !important; | min-height: 0 !important; | ||
width: | width: 24px !important; | ||
height: | height: 24px !important; | ||
align-self: center !important; | |||
cursor: pointer !important; | cursor: pointer !important; | ||
opacity: 0.5; | opacity: 0.5; | ||
| Line 498: | Line 506: | ||
} | } | ||
/* min-height (not fixed height) so the link can grow with its content. | |||
.vector-toc- | The toggle no longer inherits this as a constraint. */ | ||
height: 2rem; | .vector-toc-link { | ||
min-height: 2rem; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.gr-doc-teekas { margin-bottom: 1em; } | .gr-doc-teekas { margin-bottom: 1em; } | ||