mediawiki-skins-Citizen/templates/TableOfContents.mustache
alistair3149 58bab74eab
feat(core): switch all icons to OOUI module
Custom icons are no longer needed. This should reduce
an extra ResourceLoader module registration.
2024-05-06 13:48:41 -04:00

32 lines
1.1 KiB
Plaintext

{{#data-toc}}
<div class="citizen-toc citizen-menu-checkbox-container">
<input
type="checkbox"
id="citizen-toc__checkbox"
class="citizen-menu-checkbox-checkbox"
role="button"
aria-labelledby="citizen-toc__buttonCheckbox"
aria-haspopup="true">
<label
id="citizen-toc__buttonCheckbox"
class="citizen-menu-checkbox-button"
for="citizen-toc__checkbox"
title="{{msg-toc}}"
aria-hidden="true">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-listBullet"></span>
<span id="mw-panel-toc-label">{{msg-toc}}</span>
</label>
<nav id="mw-panel-toc" class="citizen-toc__card citizen-menu-checkbox-target" role="navigation" aria-labelledby="mw-panel-toc-label">
<a class="citizen-toc__top citizen-toc__link" title="{{html-citizen-jumptotop}}" href="#top">
<div class="citizen-ui-icon mw-ui-icon-first mw-ui-icon-wikimedia-first"></div>
<div class="citizen-toc__text">{{msg-citizen-jumptotop}}</div>
</a>
<div class="citizen-toc__header">{{msg-toc}}</div>
<ul class="citizen-toc__contents" id="mw-panel-toc-list">
{{#array-sections}}
{{>TableOfContents__line}}
{{/array-sections}}
</ul>
</nav>
</div>
{{/data-toc}}