mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
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:
parent
eb0e05dff1
commit
826a97db0e
|
@ -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,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 {
|
||||
|
|
Loading…
Reference in a new issue