Dark color horizontal navigation with custom dark color options. In this page you can experience it. If you want to create a dark color horizontal navigation use the following customization options.
This page has dark horizontal navbar & examples below, You can also check horizontal layout templates dark navigation example to experience it live. horizontal-nav-dark.html
Classic white
Dark amber
Teal without shadow
Dark red
This table contains all classes which can be used in dark horizontal navigation. You can combine them as per horizontal navigation dark template requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.navbar-dark |
To set horizontal navigation dark color you need to add .navbar-dark class in horizontal navigation <div> tag. Refer HTML markup line no 13. |
.bg-[color] |
To set the dark horizontal navigation background color use |
.bg-darken-[*] |
To set the selected background color darken use
|
.border-[color] |
To set the dark horizontal navigation border color use |
.border-darken-[color] |
To set the selected border color darken use
|
This section contains HTML Markup to create dark horizontal navigation. This markup define where to add css classes to make horizontal navigation dark.
.navbar-dark
class for adjusting horizontal navigation color dark. It has also .bg-teal
& bg-darken-5
to set darken background color and border-teal
& border-darken-4
to set darken 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-dark navbar-shadow border-grey border-darken-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-dark' |
horizontalMenuConfig block has a menuColor variable, it contains horizontal navigation 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 |
To generate horizontal navigation dark page or template, you need to use following PUG code.
menuColor
variable value as 'navbar-dark'
in horizontalMenuConfig
block, it contains horizontal navigation 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
.content
block has content section html file included include ../contents/horizontal-dark-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 dark horizontal navigation horizontal-dark-navigatioin.pug
, however you can use it on template level but it will generate whole template horizontal navigation dark.
block pageVars
- var pageTitle = "Navigation Dark"
- var pageSubTitle = "Horizontal dark navigation"
- var description = "The horizontal dark navigation, dark template usage & customization option."
- var activeMenu = "horizontal-nav-dark"
extends template
append horizontalMenuConfig
- var horizontalMenuColor = "navbar-dark"
append breadcrumbs
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Horizontal Navigation"}, {name:"Navigation Dark"}])
//- Include page content in page block
append content
include ../contents/horizontal-nav-dark.html
//- Vendor CSS
//------------------------------
//- Add Vendor specific CSS
append vendorcss
//- Page CSS
//------------------------------
//- Add custom page specific CSS
append pagecss
//- Vendor JS
//------------------------------
//- Add vendor specific JS
append vendorjs
//- Page JS
//------------------------------
//- Add custom page specific JS
append pagejs