[Grid] Remove vector-layout-legacy selector from sidebar rules
These should actually be retained in the new design. Bug: T303484 Change-Id: Ie1755e3cf5dec5da64615084ddc815fab7eb8bb1
This commit is contained in:
parent
d75fd2d963
commit
e801f917ae
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue