ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
115 stars 63 forks source link

Add classes to NavMenu elements based on section/menu-id #349

Closed mdoggydog closed 1 year ago

mdoggydog commented 1 year ago

This adds section-specific classes to the links/toggles created by NavMenu, following the model of Toolbox. This allows for more CSS customizations, e.g., adding icons to NavMenu dropdown-toggles in the navbar.

For a section with menuid as its id:

The existing code already assigns class menuid to the <div> containing the menu items (for sections that have a non-empty list of items). This behavior has not been changed.

For example, the navigation section has id p-navigation, so: