mediawiki-skins-Vector/resources/skins.vector.styles/layouts/toc/pinned.less
Bartosz Dziewoński cb58da455e Fix workaround for position: sticky disabling subpixel rendering
Follow-up to badd229bab. Moving
`position: sticky` to the same element as `contain: paint` defeated
the workaround. Move it to the parent elements again to make it work.

Bug: T373066
Change-Id: Ic942bfd599661a29cf7b2dbb6c6cc2ec521b8c82
2024-08-22 02:31:19 +02:00

13 lines
566 B
Plaintext

.vector-column-start {
// Aligns the text of the sidebar TOC with the main menu.
// The negative margins must be applied here, because .vector-column-start has
// contain: paint, which 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.
margin-left: -@toc-list-item-padding-start;
.vector-main-menu-container {
margin-left: @toc-list-item-padding-start;
}
}