mediawiki-skins-Vector/resources/skins.vector.zebra.styles/layouts/toc/pinned.less
Jan Drewniak 483c6bb51f [Zebra] Align sidebar TOC with main menu
Aligns the text of the sidebar TOC with the
main menu using negative margins. This only
affects the TOC in the sidebar position.

Bug: T351697
Change-Id: Ie4e78379e8682636ebf72913e995b69e922b4983
2023-11-21 16:02:10 +00:00

20 lines
807 B
Plaintext

.mw-table-of-contents-container.vector-sticky-pinned-container {
// Aligns the text of the sidebar TOC with the main menu.
margin-left: -@toc-list-item-padding-start;
}
.mw-table-of-contents-container {
// Needed for Grid-based layout
align-self: start;
}
&.vector-feature-toc-pinned-clientpref-1 #mw-panel-toc {
// Support: Chrome
// Work around sticky-positioned layers disabling subpixel text rendering (T327460).
// NOTE: This property has an effect similar to 'overflow: hidden', and will prevent elements
// inside of the panel from being rendered outside of its bounding box, even when they would
// be positioned there using absolute positioning, negative margin, transforms, etc.
// That's why the negative margins have to be applied here, instead of on #vector-toc.
contain: paint;
}