Merge "Remove TableOfContents mustache template and mark layout rules"

This commit is contained in:
jenkins-bot 2023-03-01 17:10:02 +00:00 committed by Gerrit Code Review
commit 16e9c8c40d
6 changed files with 19 additions and 20 deletions

View file

@ -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}}

View file

@ -43,8 +43,19 @@
<div class="vector-sitenotice-container"> <div class="vector-sitenotice-container">
<div id="siteNotice">{{{html-site-notice}}}</div> <div id="siteNotice">{{{html-site-notice}}}</div>
</div> </div>
{{#data-toc}}<input type="checkbox" id="vector-toc-collapsed-checkbox" class="mw-checkbox-hack-checkbox">{{/data-toc}} {{#data-toc}}
{{>TableOfContentsPinned}} <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"> <div class="mw-content-container">
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }} {{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
<main id="content" class="mw-body" role="main"> <main id="content" class="mw-body" role="main">

View file

@ -150,3 +150,5 @@ body {
} }
@import 'grid.less'; @import 'grid.less';
@import 'toc/pinned.less';
@import 'toc/unpinned.less';

View file

@ -1,5 +1,5 @@
@import '../../common/variables.less'; @import '../../../common/variables.less';
@import '../../common/mixins.less'; @import '../../../common/mixins.less';
.mw-table-of-contents-container { .mw-table-of-contents-container {
// Needed for Grid-based layout // Needed for Grid-based layout

View file

@ -1,5 +1,5 @@
@import '../../common/variables.less'; @import '../../../common/variables.less';
@import '../../common/mixins.less'; @import '../../../common/mixins.less';
@selector-nojs-collapsed-toc-open: ~'#vector-toc-collapsed-checkbox:checked'; @selector-nojs-collapsed-toc-open: ~'#vector-toc-collapsed-checkbox:checked';

View file

@ -30,8 +30,6 @@
@import './components/StickyHeader.less'; @import './components/StickyHeader.less';
@import './components/TabWatchstarLink.less'; @import './components/TabWatchstarLink.less';
@import './components/TableOfContents.less'; @import './components/TableOfContents.less';
@import './components/TableOfContentsPinned.less';
@import './components/TableOfContentsUnpinned.less';
@import './components/Icon.less'; @import './components/Icon.less';
.vector-feature-page-tools-disabled { .vector-feature-page-tools-disabled {