Description
Stack Admin provides flexible navbar component, which allows you to modify navbar colors, appearance of different types of content, components placement etc. This page contain all navbar styling options.
All this functionality is available by setting proper classes to the navbar components and navbar itself. Below table contain all available classes that can be used with the navbar:
Classes | Description |
---|---|
.fixed-top
|
To set navbar fixed at top you need to add .fixed-top class in navbar <nav> tag. For more information please check fixed-top.html.
|
.fixed-bottom
|
To set navbar fixed at bottom you need to add .fixed-bottom class in navbar <nav> tag.
|
.navbar-static-top
|
Create a full-width navbar that scrolls away with the page by adding .navbar-static-top . Unlike the .navbar-fixed-* classes, you do not need to change any padding on the body .
|
.navbar-brand-center
|
This class allow you to set navbar branding portion at center. Add .navbar-brand-center class in navbar <nav> tag. For more information please check navbar-brand-center.html. This is optional class.
|
.navbar-light
|
To set navbar light color you need to add .navbar-light class in navbar <nav> tag. For more information please check navbar-light.html
|
.navbar-dark
|
To set navbar dark color you need to add .navbar-dark class in navbar <nav> tag. For more information please check navbar-dark.html
|
.navbar-semi-dark
|
To set navbar semi dark color you need to add .navbar-semi-dark class in navbar <nav> tag. For more information please check navbar-semi-dark.html
|
.navbar-border
|
You can add navbar border bottom by adding .navbar-border class in navbar <nav> tag. This navbar class is optional.
|
.navbar-shadow
|
You can also apply navbar shadow bottom by adding .navbar-shadow class in navbar <nav> tag. This navbar class is optional.
|
.disabled
|
To disabled navbar menu item 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
|
This section contains HTML Markup to demonstrate navbar styling options. This markup define where to add css classes to customize navbar as per your requirements.
-
Line no 7 (Navbar position options):Contain the
.fixed-top
class for adjusting navbar fixed on top, here you can use any one class from.fixed-top
,.fixed-bottom
&.navbar-static-top
as per your navbar position requirement. -
Line no 7 (Navbar color options):Contain the
.navbar-dark
class for adjusting navbar color dark, here you can use any one class from.navbar-dark
,.navbar-light
&.navbar-semi-dark
as per your navbar color requirement. You can also use custom colors i.e blue, red, cyan etc.. from Stack Admin color pallets, for more information of custom navbar color usage please refer navbar-light.html, navbar-dark.html & navbar-semi-dark.html -
Line no 7:If you want to set navbar branding at center you can add
.navbar-brand-center
class to this line, its optional class. -
Line no 7:Also contain the
.navbar-border
&.navbar-shadow
classes that can be use together and both are the optional.
<!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="navbar header-navbar navbar-with-menu fixed-top navbar-dark navbar-shadow navbar-border"> ... </nav> <!-- BEGIN Navigation--> <div class="main-menu menu-dark menu-shadow"> ... </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 right--> <div class="content-right"> ... </div> <!-- content right--> </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 custom navbar.
Block | Variable | Datatype | Value | Description |
---|---|---|---|---|
navbarConfig
|
navbarPosition
|
string
|
'fixed-top'
|
To set navbar fixed top, use navbarCustom variable value as 'fixed-top' in navbarConfig block.
|
navbarConfig
|
navbarPosition
|
string
|
'fixed-bottom'
|
To set navbar fixed bottom, use navbarCustom variable value as 'fixed-bottom' in navbarConfig block.
|
navbarConfig
|
navbarPosition
|
string
|
'navbar-static-top'
|
To set navbar static top, use navbarCustom variable value as 'navbar-static-top' in navbarConfig block.
|
navbarConfig
|
navbarColor
|
string
|
'navbar-light'
|
You need add navbar light class to navbarCustom variable value as 'navbar-light' in navbarConfig block, it contains navbar specific classes in that you need to add navbar-light . It also contain optional classes like bg-teal bg-lighten-5 border-teal border-lighten-4 .
|
navbarConfig
|
navbarColor
|
string
|
'navbar-dark'
|
You need add navbar dark class to navbarCustom variable value as 'navbar-dark' in navbarConfig block, it contains navbar specific classes in that you need to add navbar-dark . It also contain optional classes like bg-teal bg-darken-5 border-teal border-darken-4 .
|
navbarConfig
|
navbarColor
|
string
|
'navbar-semi-dark'
|
You need add navbar semi dark class to navbarCustom variable value as 'navbar-semi-dark' in navbarConfig block, it contains navbar specific classes in that you need to add navbar-semi-dark . It also contain optional classes like bg-grey bg-lighten-5 border-grey border-darken-2 .
|
navbarConfig
|
navbarBrandCenter
|
boolean
|
true/false
|
Navbar brand center settings allow you to set navbar branding at center, use navbarBrandCenter variable value as true/false in navbarConfig block.
|
navbarConfig
|
navbarHideOnScroll
|
boolean
|
true/false
|
This navbar settings allow you to set navbar hide on scroll, use navbarHideOnScroll variable value as true/false in navbarConfig block.
|
navbarConfig
|
navbarBorder
|
boolean
|
true/false
|
This navbar settings allow you to set navbar border, use navbarBorder variable value as true/false in navbarConfig block.
|
navbarConfig
|
navbarShadow
|
boolean
|
true/false
|
This navbar settings allow you to set navbar bottom shadow, use navbarShadow variable value as true/false in navbarConfig block.
|