mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
Merge "Table of contents should be hidden at lower resolutions"
This commit is contained in:
commit
c951bcbddd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue