Merge "[Grid] Remove vector-layout-legacy selector from sidebar rules"

This commit is contained in:
jenkins-bot 2022-06-03 22:05:34 +00:00 committed by Gerrit Code Review
commit 3bc8b3a40e
1 changed files with 6 additions and 11 deletions

View File

@ -46,7 +46,7 @@
}
}
.vector-layout-legacy .sidebar-toc {
.sidebar-toc {
margin-top: @top-margin-sidebar-toc_title_inline;
}
@ -62,6 +62,10 @@
@selector-checkbox-hack: ~'.mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container';
// T305069 Apply different top spacing to the topmost sidebar element during menu toggling when sidebar is open.
@{selector-checkbox-hack} {
.sidebar-toc {
margin-top: @top-margin-sidebar-toc;
}
@media ( max-width: @width-breakpoint-desktop ) {
.mw-sidebar {
margin-top: 0;
@ -70,22 +74,13 @@
.sidebar-toc {
display: none;
margin-top: 0;
}
}
}
.vector-layout-legacy @{selector-checkbox-hack} {
.sidebar-toc {
.vector-layout-legacy {
margin-top: @top-margin-sidebar-toc;
}
}
}
// T305069 When scrolling down, override the top margin of the sticky TOC
// so that the top of sticky TOC remains at the top of the viewport with normal padding.
&.vector-sticky-header-visible .vector-layout-legacy .sidebar-toc {
&.vector-sticky-header-visible .sidebar-toc {
margin-top: @top-margin-sidebar-toc;
}
}