npm.io
2.0.0 • Published 1 year ago

aitomic-m-nav-mega

Licence
SEE LICENSE IN license.txt
Version
2.0.0
Deps
1
Size
11 kB
Vulns
0
Weekly
0

A template of megamenu. Import {latte} block from the template stored in folder 'control' to 'menuControl.latte' under condition of variable $menuDepth using macro {import '../path-to-latte-template'}, declare this block as {include #m-nav-mega} and set CSS property position: relative to one of parent elements of megamenu selector, which define megamenu width. There are available hooks to customization CSS classes of list, item and link:

{import '../path-to-latte-template'}

{include #m-nav-mega, menuClass => '...', itemClass => '...', linkClass => '...'}

The variable 'state' has options 'inline' and 'columns'.