mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
864a1766a7
This patch refactors the markup and JS associated with the page actions menu in order to achieve greater flexibility in its presentation. The menu items are now positioned via flexbox and rendered using a mustache template in PHP. The goal of this refactor is to accommodate both AMC mode and default mode with the same markup. No changes should be visible for non-AMC users with this refactor. No changes to AMC mode have been made in this patch either. This patch includes temporary workarounds to avoid problems caused by HTML caching. Changes include: - Changing the data structure of the page_actions property in SkinMinerva.php - Passing that modified data structure into a new mustache template, PageActionMenu.mustache - Adding new CSS for the new page actions menu HTML - changing the query selectors in JS to match the new markup - Making the JS-modified page-actions compatible with the new markup - Keeping existing CSS and JS to avoid breaking cached HTML Bug: T213352 Depends-On: I95cf726c4b6d8c3895a26aa6e07f4b1747ee30fe Change-Id: I5a7d73b20617cb3c6d6379084ac4bea23ec3bc74 |
||
---|---|---|
.. | ||
skins.minerva.amc.styles | ||
skins.minerva.base.styles | ||
skins.minerva.content.styles | ||
skins.minerva.content.styles.images | ||
skins.minerva.icons.images | ||
skins.minerva.icons.images.scripts | ||
skins.minerva.icons.images.scripts.misc | ||
skins.minerva.icons.images.variants | ||
skins.minerva.icons.loggedin | ||
skins.minerva.icons.page.issues.default.color | ||
skins.minerva.icons.page.issues.medium.color | ||
skins.minerva.icons.page.issues.uncolored | ||
skins.minerva.loggedin.styles | ||
skins.minerva.mainMenu.icons | ||
skins.minerva.mainMenu.styles | ||
skins.minerva.mainPage.styles | ||
skins.minerva.notifications | ||
skins.minerva.notifications.badge | ||
skins.minerva.options | ||
skins.minerva.scripts | ||
skins.minerva.talk | ||
skins.minerva.toggling | ||
skins.minerva.userpage.icons | ||
skins.minerva.userpage.styles | ||
skins.minerva.watchstar |