mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2025-01-07 12:24:18 +00:00
483c6bb51f
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
20 lines
807 B
Plaintext
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;
|
|
}
|