Table of contents should be hidden at lower resolutions

There should be no left margin on article content.

Bug: T298898
Change-Id: I92dafcc8f1bbd0dc4a21c20035b829198c18e8cb
This commit is contained in:
Jon Robson 2022-03-17 15:58:44 -07:00 committed by Jdlrobson
parent eb0e05dff1
commit 826a97db0e
2 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,7 @@
@subcategory-indent: 8px;
.sidebar-toc {
display: none;
width: @width-sidebar;
max-height: 90vh;
padding: 20px 12px 20px 26px;
@ -101,3 +102,9 @@
}
}
}
@media ( min-width: @width-breakpoint-tablet ) {
.sidebar-toc {
display: block;
}
}

View file

@ -321,8 +321,10 @@ body {
.vector-toc-visible .mw-workspace-container .mw-article-toolbar-container,
.vector-toc-enabled .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container,
.vector-toc-enabled .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-article-toolbar-container {
@media ( min-width: @width-breakpoint-tablet ) {
margin-left: @margin-toc-start-content;
}
}
// Prevent center align when TOC is visible
.vector-toc-visible .mw-workspace-container {