akveo/ngx-admin

MenuComponent - Styling

Open

#1377 aperta il 7 nov 2017

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)TypeScript (7916 fork)batch import
actions: replyhelp wantedquestion

Metriche repository

Star
 (24.990 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello,

I'm trying to make customizations to the template-provided menu component but am having some issues.

  • I'm trying to adjust the amount of space between the sidebar and the header, but am unable to find the selector.

  • I'm trying to override the menu.item expanded and collapsed behavior.

    • remove the max-height and change behavior from overflow:hidden. Or, alternatively, making it so that only one root level 1 or level 2 menu item can be expanded at a given time.

    • change the border styling for child items. If presenting a menu with 3 levels of children, levels 2 and 3 are designated as "active", resulting in a border on both levels... trying to override so only the outermost level is highlighted.

I've attempted making changes to the menu.component.scss file without luck.

Thank you in advance for adding any insight / documentation on customizing your menu component.

Guida contributor