Merge "Table of contents should be hidden at lower resolutions"

This commit is contained in:
jenkins-bot 2022-03-22 15:44:41 +00:00 committed by Gerrit Code Review
commit c951bcbddd
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,7 +321,9 @@ 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 {
margin-left: @margin-toc-start-content;
@media ( min-width: @width-breakpoint-tablet ) {
margin-left: @margin-toc-start-content;
}
}
// Prevent center align when TOC is visible