Description
Stack Admin provides flexible navigation component, which allows you to modify navigation colors, appearance of different types of content, components placement etc. This page contain all navigation styling options.
All this functionality is available by setting proper classes to the navigation components and navigation itself. Below table contain all available classes that can be used with the navigation:
All these options can be set via following classes:
Classes | Description |
---|---|
.menu-fixed
|
To create vertical fixed navigation, you need to add .menu-fixed class in navigation <div> tag. Fore more information please check vertical-fixed-navigation.html
|
.menu-static
|
To create vertical static navigation, you need to add .menu-static class in navigation <div> tag. Fore more information please check vertical-static-navigation.html
|
.menu-light
|
To create light vertical navigation, you need to add .menu-light class in navigation <div> tag. Fore more information please check vertical-light-navigation.html
|
.menu-dark
|
To create dark vertical navigation, you need to add .menu-dark class in navigation <div> tag. Fore more information please check vertical-dark-navigation.html
|
.menu-accordion
|
Default vertical navigation type is accordion navigation. To create vertical accordion navigation, you need to add .menu-accordion class in navigation <div> tag. Fore more information please check vertical-accordion-navigation.html
|
.menu-collapsible
|
To create vertical collapsible navigation, you need to add .menu-collapsible class in navigation <div> tag. Fore more information please check vertical-collapsible-navigation.html
|
.menu-flipped
|
Change navigation menu position to right with the help of flipped navigation menu options. You need to add .menu-flipped class in navigation <div> tag. Fore more information please check vertical-flipped-navigation.html
|
.menu-native-scroll
|
To create vertical navigation with native scroll, you need to add .menu-native-scroll class in navigation <div> tag. This navigation class is optional. Fore more information please check vertical-navigation-native-scroll.html
|
.menu-icon-right
|
To create vertical navigation right side icons, you need to add .menu-icon-right class in navigation <div> tag. This navigation class is optional. Fore more information please check vertical-navigation-right-side-icons.html
|
.menu-bordered
|
To create vertical bordered navigation, you need to add .menu-bordered class in navigation <div> tag. This navigation class is optional. Fore more information please check vertical-bordered-navigation.html
|
.disabled
|
To disabled vertical navigation menu link, you need to add .disabled class in navigation <li> tag. This navigation class is optional. Fore more information please check vertical-disabled-navigation-link.html
|
.menu-shadow
|
You can also apply navigation shadow bottom by adding .menu-shadow class in navigation <div> tag. This navigation class is optional.
|
This section contains HTML Markup to demonstrate navigation styling options. This markup define where to add css classes to customize navigation as per your requirements.
-
Line no 12 (Navigation position options): Contain the
.menu-fixed
class to set navigation position fixed, here you can use any one class from.menu-fixed
&.menu-static
. -
Line no 12 (Navigation color options): Contain the
.menu-dark
class to set navigation color dark, here you can use any one class from.menu-light
&.menu-dark
. -
Line no 12 (Accordion / Collapsible): Default vertical navigation type is accordion navigation. For accordion navigation
.menu-accordion
class is optional to use, but if you want to make navigation collapsible you need to add.menu-collapsible
class. -
Line no 12: The rest of the navigation classes like
.menu-native-scroll
,.menu-icon-right
,.menu-bordered
&.menu-shadow
are optional and cab be used on your custom requirements.
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-expanded">
<!-- fixed-top-->
<nav role="navigation" class="header-navbar navbar-expand-sm navbar navbar-with-menu fixed-top navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- BEGIN Navigation-->
<div class="main-menu menu-light menu-shadow menu-bordered">
...
</div>
<!-- END Navigation-->
<!-- BEGIN Content-->
<div class="content app-content">
<div class="content-wrapper">
<!-- content header-->
<div class="content-header row">
...
</div>
<!-- content header-->
<!-- content body-->
<div class="content-body">
...
</div>
<!-- content body-->
</div>
</div>
<!-- END Content-->
<!-- START FOOTER DARK-->
<footer class="footer footer-dark">
...
</footer>
<!-- START FOOTER DARK-->
</body>
</html>
Stack Admin use JADE as template engine to generate pages and whole template quickly using node js, for getting start with JADE usage & template generating process please refer template documentation.
JADE Variables
This table contains required JADE variables to generate vertical navigation with styling options.
Variable | Value | Description | ||
---|---|---|---|---|
verticalMenuConfig
|
menuType
|
string
|
'menu-fixed'
|
To set the navigation position fixed, use menuType variable value as 'menu-fixed' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuType
|
string
|
'menu-static'
|
To set the navigation position static, use menuType variable value as 'menu-static' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuColor
|
string
|
'menu-light'
|
To set the navigation color light, use menuColor variable value as 'menu-light' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuColor
|
string
|
'menu-dark'
|
To set the navigation color dark, use menuColor variable value as 'menu-dark' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuOpenType
|
string
|
'menu-accordion'
|
To set the navigation accordion, use menuOpenType variable value as 'menu-accordion' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuOpenType
|
string
|
'menu-collapsible'
|
To set the navigation collapsible, use menuOpenType variable value as 'menu-collapsible' in verticalMenuConfig block.
|
verticalMenuConfig
|
menuFlipped
|
boolean
|
true/false
|
To set the navigation flipped, use menuFlipped variable value as true/false in verticalMenuConfig block.
|
verticalMenuConfig
|
menuNativeScroll
|
boolean
|
true/false
|
To set the navigation icon on right side, use menuNativeScroll variable value as true/false in verticalMenuConfig block.
|
verticalMenuConfig
|
menuIconRight
|
boolean
|
true/false
|
To set the navigation icon on right side, use menuIconRight variable value as true/false in verticalMenuConfig block.
|
verticalMenuConfig
|
menuDevider
|
boolean
|
true/false
|
To create vertical bordered navigation, use menuDevider variable value as true/false in verticalMenuConfig block.
|
verticalMenuConfig
|
menuShadow
|
boolean
|
true/false
|
You can also apply navigation shadow, use menuShadow variable value as true/false in verticalMenuConfig block.
|