Description
Robust Admin provides flexible horizontal 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 horizontal 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 |
---|---|
.navbar-fixed |
To create horizontal fixed navigation, you need to add .navbar-fixed class in navigation <div> tag. Fore more information please check horizontal-nav-fixed.html |
.navbar-flipped |
To create horizontal flipped navigation, you need to add .navbar-flipped class in navigation <div> tag. Fore more information please check horizontal-nav-flipped.html |
.navbar-light |
To create light horizontal navigation, you need to add .navbar-light class in navigation <div> tag. Fore more information please check horizontal-nav-light.html |
.navbar-dark |
To create dark horizontal navigation, you need to add .navbar-dark class in navigation <div> tag. Fore more information please check horizontal-nav-dark.html |
.navbar-without-dd-arrow |
To remove the horizontal navigation dropdown arrow, you need to add .navbar-without-dd-arrow class in navigation <div> tag. This navigation class is optional. Fore more information please check horizontal-nav-no-dropdown.html |
.navbar-icon-right |
To create horizontal navigation with right side icons, you need to add .navbar-icon-right class in navigation <div> tag. This navigation class is optional. Fore more information please check horizontal-nav-right-side-icons.html |
.navbar-border |
Add horizontal navigation border bottom by adding .navbar-border class in navbar <nav> tag. This navigation class is optional. |
.navbar-shadow |
Add horizontal navigation shadow by adding .navbar-shadow class in navbar <nav> tag. This navigation class is optional. |
.disabled |
To disabled horizontal navigation menu link, you need to add .disabled class in navigation <li> tag. This navigation class is optional. Fore more information please check horizontal-nav-disabled.html |
This section contains HTML Markup to demonstrate horizontal 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
.navbar-fixed
class to set navigation position fixed, here you can use any one class from.navbar-fixed
&.navbar-static
. - Line no 12 (Navigation color options): Contain the
.navbar-dark
class to set navigation color dark, here you can use any one class from.navbar-light
&.navbar-dark
. - Line no 12: The rest of the navigation classes like
.navbar-icon-right
,.navbar-border
&.navbar-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">
<!-- navbar-fixed-top-->
<nav role="navigation" class="header-navbar navbar navbar-with-menu navbar-fixed-top navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- BEGIN Horizontal Navigation-->
<div role="navigation" data-menu="menu-wrapper" class="header-navbar navbar navbar-horizontal navbar-light navbar-border navbar-without-dd-arrow"">
...
</div>
<!-- END Horizontal Navigation-->
<!-- BEGIN Content-->
<div class="content robust-content container-fluid">
<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>
Robust 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 horizontal navigation with styling options.
Variable | Value | Description |
---|---|---|
headerCustom |
'navbar-fixed' |
To set the horizontal navigation position fixed, use headerCustom variable value as 'navbar-fixed' in headerConfig block. |
headerCustom |
'navbar-static' |
To set the horizontal navigation position static, use headerCustom variable value as 'navbar-static' in headerConfig block. |
headerCustom |
'navbar-light' |
To set the horizontal navigation color light, use headerCustom variable value as 'navbar-light' in headerConfig block. |
headerCustom |
'navbar-dark' |
To set the horizontal navigation color dark, use headerCustom variable value as 'navbar-dark' in headerConfig block. |
headerCustom |
'navbar-without-dd-arrow' |
To remove the horizontal navigation dropdown arrow, use headerCustom variable value as 'navbar-without-dd-arrow' in headerConfig block. |
headerCustom |
'navbar-icon-right' |
To create horizontal navigation with right side icons, use headerCustom variable value as 'navbar-icon-right' in headerConfig block. |
headerCustom |
'navbar-border' |
To create horizontal bordered navigation, use headerCustom variable value as 'navbar-border' in headerConfig block. |
headerCustom |
'navbar-shadow' |
You can also apply horizontal navigation shadow, use headerCustom variable value as 'navbar-light' in headerConfig block. |
JADE Code
Use following JADE code to generate page or template having vertical light navigation.
- Line no 20-21:
headerConfig
block has aheaderCustom
variable, it contains navigation specific classes shown in above JADE Configuration table. - Line no 31-32:
content
block has content section html file includedinclude ../contents/horizontal-navigation-styling.html
, which can be customizable on page level.
From the above JADE Configuration table, you can choose navigation customization variable value as per your requirement and generate template or page with the help of JADE.
block pageVars
- var pageTitle = "Horizontal Nav Styling"
- var pageSubTitle = "Custom horizontal navigation styling options"
- var description = "The horizontal navigation styling options provides horizontal navigation customization such as border, shadow, position and color."
- var activeMenu = "horizontal-navigation-styling"
extends template
block headerConfig
- var headerCustom = "navbar-light navbar-shadow navbar-without-dd-arrow"
append breadcrumbs
include ../includes/mixins
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Navbars"}, {name:"Navbar Styling"}])
append page-header
include page-headers/breadcrumb-top
//- Include page content in page block
append content
include ../contents/horizontal-navigation-styling.html
//- Page specific dependency
//------------------------------
//- Add custom page specific CSS
block pagecss
//- Add custom page specific JS
block pagejs