Lifetime updates on every purchase Support replies within 24 hours Secure checkout via Gumroad 8,500+ sales since 2016

Styling

Updated 1 min read 1 view

Class names follow BEM with the vlt- prefix (block vlt-layer-menu). The plugin stylesheet contains structure only, so the menu inherits your fonts and colors.

ClassElement
.vlt-layer-menuThe container
.vlt-layer-menu--clipContainer modifier when clip: true
.vlt-layer-menu__panelEvery level (<ul>)
.vlt-layer-menu__panel--root / --leavingThe root level / the level leaving during a transition
.vlt-layer-menu__item / __item--parentEvery <li> / an <li> with a submenu
.vlt-layer-menu__linkEvery item link or button (including the back button)
.vlt-layer-menu__triggerA link that opens a submenu
.vlt-layer-menu__arrow / __arrow--backChevrons (CSS borders, currentColor)
.vlt-layer-menu__back / __back-btn / __back-textBack item
.vlt-layer-menu__titleLevel title (showTitle)

All names are also available in JS as CLASSES (ESM/CJS export).

SCSS

The source dist/_layer-menu.scss exposes !default variables:

@use 'vlt-layer-menu/scss' with (
  $vlt-layer-menu-perspective: 800px,
  $vlt-layer-menu-arrow-size: 0.5em,
  $vlt-layer-menu-arrow-width: 1.5px,
);

Theme example

.site-menu {
  .vlt-layer-menu__link { padding: 16px 24px; font-size: 20px; }
  .vlt-layer-menu__back-btn { background: #15131f; color: #ffc900; }
}
Was this article helpful?