Update ToC selector to account for page tools

Change-Id: Ib2504bf16969d3b6af2a827ae7b7cfd8aa5fc468
This commit is contained in:
bwang 2022-11-18 11:12:45 -06:00
parent 1e69e2de1e
commit 6eb5bd05fb

View file

@ -169,7 +169,9 @@
// Align with vector-toc-collapsed-button which uses core flush classes
// using temporary hardcoded value.
// FIXME: Remove this entire selector as part of T318013
.vector-feature-visual-enhancement-next-enabled.vector-toc-collapsed:not( .vector-sticky-header-visible ) .sidebar-toc {
.vector-feature-visual-enhancement-next-enabled {
&.vector-feature-page-tools-disabled.vector-toc-collapsed:not( .vector-sticky-header-visible ) .sidebar-toc,
&.vector-feature-page-tools-enabled.vector-toc-unpinned:not( .vector-sticky-header-visible ) .sidebar-toc {
@media ( min-width: @width-breakpoint-desktop ) {
// Copied from mediawiki.ui.icons,
// (Ifccaadabd72a12814d3d4d01200931f7254c6cd5)
@ -177,6 +179,7 @@
left: -5px;
}
}
}
// Show the "move to sidebar/hide" buttons
.vector-feature-page-tools-disabled.vector-toc-collapsed .vector-toc-uncollapse-button,