Fix table of contents when sidebar is open

Bug: T309807
Change-Id: If370246d13984981f4c3477fda2b2dce45337d91
This commit is contained in:
Jon Robson 2022-06-27 14:55:19 -07:00
parent a47f46009e
commit 393928a280
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ body {
// ensuring the TOC is 1.5em (24px) from the top of the viewport
// unless .mw-sticky-header-element overrides it.
top: ~'calc( 1.5em - @{top-margin-sidebar-toc_title_inline} )';
@{selector-workspace-container-sidebar-open} & {
top: 0;
}
.vector-layout-legacy & {
clear: both;