NOTE: Blocker for this work: T306609
With the new feature flag FEATURE_ARTICLE_TOOLS_MENU in place (T306609) we will begin work on the new article tools feature
The scope of this work is pinning the **existing** more menu. The pinning/hiding functionality should work similarly to the table of contents. No changes should be made to the contents of the menu.
prototype: https://vector-2022.web.app/Moth
| {F35521712 width=300} | {F35521715 width=300}
# TODO
[] When the feature flag is disabled there are no visual changes
[] When the feature flag is enabled, the more menu becomes pinnable to the right side of the screen.
[] When the feature flag is enabled at the top of the menu is the label "pin menu to sidebar".
[] If the menu is pinned it should automatically collapse at 1200px (the same as the table of contents)
[] On resolutions below 1200px it should not be possible to pin the menu (due to lack of space)
[] The pinning mechanism should share the same code as the table of contents so this task should be used to generalize that work.
[] The more menu if empty is not shown
[] When pinned, the menu appears in the right side of the screen
[] When pinned, the menu does not overlap the footer when the page is scrolled to the bottom
[] When the main menu or TOC are in the left sidebar, the content should be [[ https://phabricator.wikimedia.org/T317897#8300629 | left-anchored ]] to the left sidebar
[] When the left sidebar is empty and the right sidebar has the article tools menu in it, [[ https://phabricator.wikimedia.org/T317897#8300629 | center the content + right sidebar as a block ]]