Light color horizontal navigation with custom light color options. In this page you can experience it. If you want to create a light color horizontal navigation use the following customization options.
This page has light horizontal navbar & examples below, You can also check horizontal layout templates light navigation example to experience it live. horizontal-nav-light.html
Classic white
Light amber
Teal without shadow
Light red
This table contains all classes which can be used in light horizontal navigation. You can combine them as per horizontal navigation light template requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.navbar-light |
To set horizontal navigation light color you need to add .navbar-light class in horizontal navigation <div> tag. Refer HTML markup line no 13. |
.bg-[color] |
To set the light horizontal navigation background color use |
.bg-lighten-[*] |
To set the selected background color lighten use
|
.border-[color] |
To set the light horizontal navigation border color use |
.border-lighten-[color] |
To set the selected border color lighten use
|
This section contains HTML Markup to create light horizontal navigation. This markup define where to add css classes to make horizontal navigation light.
.navbar-light
class for adjusting horizontal navigation color light. It has also .bg-teal
& bg-lighten-5
to set lighten background color and border-teal
& border-lighten-4
to set lighten border.
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-expanded">
<!-- START Navbar-->
<nav role="navigation" class="header-navbar navbar-expand-sm navbar navbar-with-menu fixed-bottom navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- END Navbar-->
<!-- START Horizontal navigation -->
<div role="navigation" data-menu="menu-wrapper" class="header-navbar navbar-expand-sm navbar navbar-horizontal navbar-light navbar-shadow border-grey border-lighten-2">
...
</div>
<!-- END Horizontal 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>
Modern Admin use PUG as template engine to generate pages and whole template quickly using node js, for getting start with PUG usage & template generating process please refer template documentation.
This table contains required PUG variables to generate horizontal navigation layout.
Block | Variable | Datatype | Value | Description |
---|---|---|---|---|
horizontalMenuConfig |
menuColor |
string |
'navbar-light' |
horizontalMenuConfig block has a menuColor variable, it contains horizontal navigation 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 |
To generate horizontal navigation light page or template, you need to use following PUG code.
menuColor
variable value as 'navbar-light'
in horizontalMenuConfig
block, it contains horizontal navigation 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
.content
block has content section html file included include ../contents/horizontal-light-navigation.html
, which can be customizable on page level.If you want to use this layout on page level you need to define it on page it self. This template has one example pug file for light horizontal navigation horizontal-light-navigatioin.pug
, however you can use it on template level but it will generate whole template horizontal navigation light.
block pageVars
- var pageTitle = "Navigation Light"
- var pageSubTitle = "Horizontal light navigation"
- var description = "The horizontal light navigation, light template usage & customization option."
- var activeMenu = "horizontal-nav-light"
extends template
append horizontalMenuConfig
- var horizontalMenuColor = "navbar-light"
append breadcrumbs
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Horizontal Navigation"}, {name:"Navigation Light"}])
//- Include page content in page block
append content
include ../contents/horizontal-nav-light.html
//- Vendor CSS
//------------------------------
//- Add Vendor specific CSS
append vendorcss
link(rel='stylesheet', type='text/css', href='../../../app-assets/vendors/css/ui/prism.min.css')
//- Page CSS
//------------------------------
//- Add custom page specific CSS
append pagecss
//- Vendor JS
//------------------------------
//- Add vendor specific JS
append vendorjs
script(type='text/javascript' ,src='../../../app-assets/vendors/js/ui/prism.min.js')
//- Page JS
//------------------------------
//- Add custom page specific JS
append pagejs