mediawiki-skins-Vector/includes/templates/MainMenuDropdown.mustache
bwang 46f17487fd Update main menu templates and classes to be consistent with other pinnable elements
- Rename data-portlets-main-menu to data-main-menu
- Rename MainMenuContents.mustache to MainMenu
- Replace usage of .vector-main-menu-contents in favor of .vector-main-menu
- Add classes to PinnableContainer
- Use PinnableContainer and PinnableElement in main menu
- Remove MainMenuDropdown.less

Bug: T317900
Change-Id: I59b3acd3d56cd5761e5978607634dfb9a88f60e3
2022-12-16 17:34:23 +00:00

9 lines
407 B
Plaintext

{{#data-main-menu-dropdown}}{{>Dropdown/Open}}{{/data-main-menu-dropdown}}
{{#data-main-menu}}
{{>PinnableContainer/Unpinned/Open}}
{{! Use `.vector-main-menu-unpinned-container .vector-main-menu` to target styles at this element}}
{{^is-pinned}}{{>MainMenu}}{{/is-pinned}}
{{>PinnableContainer/Close}}
{{/data-main-menu}}
{{#data-main-menu-dropdown}}{{>Dropdown/Close}}{{/data-main-menu-dropdown}}