sphinx_rtd_theme
sphinx_rtd_theme copied to clipboard
Decouple menu expand and collapse from active item
This PR introduces the ability to expand and collapse menu items independent of the current active item. Before this, collapsing and expanding a menu item was coupled to the styling and logic that colored and highlighted the active item.
-
Makes hover colors and expand/collapse icon colors consistent over all menu items:
Old New 

-
Expanding a non-active menu item no longer collapses the active menu item. Collapsing the active menu item no longer makes it look inactive.
Old New 

-
Clicking the active item no longer makes it look inactive (#306)
-
Adds some comments and slight cleanup of the menu CSS.
Fixes #306 amongst others. Prerequisite for #455.
Overall I really like this change. I haven't had much chance to go over code yet.
Looking forward to this for #455! :)
Is there any chance that this MR gets accepted anytime soon? Thanks
@jessetan any chance that you can update this to master? And revert the changes to the background/hover colors. I am not against that change but rather it be in a separate PR.