mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Merge "Remove TableOfContents mustache template and mark layout rules"
This commit is contained in:
commit
16e9c8c40d
|
@ -1,12 +0,0 @@
|
|||
{{#data-toc}}
|
||||
<nav id="mw-panel-toc" role="navigation" aria-label="{{ msg-vector-toc-label }}" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark">
|
||||
{{! T313060 Additional container div needed to prevent the sticky element from being siblings with the footer }}
|
||||
{{#data-toc-pinnable-container}}
|
||||
{{>PinnableContainer/Pinned/Open}}
|
||||
{{#is-pinned}}
|
||||
{{#data-toc}}{{>TableOfContents}}{{/data-toc}}
|
||||
{{/is-pinned}}
|
||||
{{>PinnableContainer/Close}}
|
||||
{{/data-toc-pinnable-container}}
|
||||
</nav>
|
||||
{{/data-toc}}
|
|
@ -43,8 +43,19 @@
|
|||
<div class="vector-sitenotice-container">
|
||||
<div id="siteNotice">{{{html-site-notice}}}</div>
|
||||
</div>
|
||||
{{#data-toc}}<input type="checkbox" id="vector-toc-collapsed-checkbox" class="mw-checkbox-hack-checkbox">{{/data-toc}}
|
||||
{{>TableOfContentsPinned}}
|
||||
{{#data-toc}}
|
||||
<input type="checkbox" id="vector-toc-collapsed-checkbox" class="mw-checkbox-hack-checkbox">
|
||||
<nav id="mw-panel-toc" role="navigation" aria-label="{{ msg-vector-toc-label }}" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark">
|
||||
{{! T313060 Additional container div needed to prevent the sticky element from being siblings with the footer }}
|
||||
{{#data-toc-pinnable-container}}
|
||||
{{>PinnableContainer/Pinned/Open}}
|
||||
{{#is-pinned}}
|
||||
{{#data-toc}}{{>TableOfContents}}{{/data-toc}}
|
||||
{{/is-pinned}}
|
||||
{{>PinnableContainer/Close}}
|
||||
{{/data-toc-pinnable-container}}
|
||||
</nav>
|
||||
{{/data-toc}}
|
||||
<div class="mw-content-container">
|
||||
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
||||
<main id="content" class="mw-body" role="main">
|
||||
|
|
|
@ -150,3 +150,5 @@ body {
|
|||
}
|
||||
|
||||
@import 'grid.less';
|
||||
@import 'toc/pinned.less';
|
||||
@import 'toc/unpinned.less';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@import '../../common/variables.less';
|
||||
@import '../../common/mixins.less';
|
||||
@import '../../../common/variables.less';
|
||||
@import '../../../common/mixins.less';
|
||||
|
||||
.mw-table-of-contents-container {
|
||||
// Needed for Grid-based layout
|
|
@ -1,5 +1,5 @@
|
|||
@import '../../common/variables.less';
|
||||
@import '../../common/mixins.less';
|
||||
@import '../../../common/variables.less';
|
||||
@import '../../../common/mixins.less';
|
||||
|
||||
@selector-nojs-collapsed-toc-open: ~'#vector-toc-collapsed-checkbox:checked';
|
||||
|
|
@ -30,8 +30,6 @@
|
|||
@import './components/StickyHeader.less';
|
||||
@import './components/TabWatchstarLink.less';
|
||||
@import './components/TableOfContents.less';
|
||||
@import './components/TableOfContentsPinned.less';
|
||||
@import './components/TableOfContentsUnpinned.less';
|
||||
@import './components/Icon.less';
|
||||
|
||||
.vector-feature-page-tools-disabled {
|
||||
|
|
Loading…
Reference in a new issue