mediawiki-skins-Citizen/templates/Drawer.mustache
alistair3149 516ef3a1cb
feat(dropdown): revamp dropdown menu handling
Putting the dropdown content in the details elemenet have been inconsistent.
Transition are not working correctly and different browsers are not handling it well.
Furthermore, the previous implementation does not allow an always visible state of dropdown content.

Fixes: #882
2024-07-03 16:07:19 -04:00

21 lines
650 B
Plaintext

{{!
string msg-citizen-drawer-toggle The label used by the drawer button.
string msg-sitetitle the contents of the sitesubtitle message key
}}
<div class="citizen-drawer citizen-header__item citizen-dropdown">
<details class="citizen-dropdown-details">
{{>Drawer__button}}
</details>
<div id="citizen-drawer__card" class="citizen-drawer__card citizen-menu__card">
<header class="citizen-drawer__header">
{{>Drawer__logo}}
<div class="citizen-drawer__siteinfo">
{{#data-site-stats}}{{>SiteStats}}{{/data-site-stats}}
{{>Wordmark}}
</div>
</header>
{{#data-main-menu}}
{{>MainMenu}}
{{/data-main-menu}}
</div>
</div>