Navbar Light

Description

Light color navbar with custom light color options. If you want to create a light color navbar use the following customization options.

Examples

CSS Classes

This table contains all classes which can be used in light navbar. You can combine them as per navbar light template requirements.

All these options can be set via following classes:

Classes Description
.navbar-light To set navbar light color you need to add .navbar-light class in navbar <nav>tag. Refer HTML markup line no 2.
.bg-[color]

To set the light navbar background color use .bg-[color] class where [color]is the value of your selected color from stack color pallette. So for blue color background class will be .bg-blue. Refer HTML markup line no 2. Background color class is a optional if you don't it will take white background default.

.bg-lighten-[*]

To set the selected background color lighten use .bg-lighten-[*] class where [*]is the value between '1-5' of your selected lighten color from stack color pallette. So for color lighten 4 background class will be .bg-lighten-4. Refer HTML markup line no 2. Background lighten color class is a optional if you don't it will take white background default.

.bg-lighten-[*]class will work only if you have used .bg-[color].

.border-[color]

To set the light navbar border color use .border-[color] class where [color]is the value of your selected color from stack color pallette. So for blue color border class will be .bg-blue. Refer HTML markup line no 2. Border color class is a optional.

.border-lighten-[color]

To set the selected border color lighten use .border-lighten-[*] class where [*]is the value between '1-5' of your selected lighten color from stack color pallette. So for color lighten 4 border class will be .border-lighten-4. Refer HTML markup line no 2. Border lighten color class is a optional.

.border-lighten-[*]class will work only if you have used .border-[color].

HTML Markup

This section contains HTML Markup to create light navbar. This markup define where to add css classes to make navbar light.

  • Line no 1:Contain the .navbar-lightclass for adjusting navbar color light. It has also .bg-blue & bg-lighten-5to set lighten background color and border-blue& border-lighten-4to set lighten border.
<!-- fixed-top-->                <nav  class="header-navbar navbar-expand-sm navbar navbar-with-menu navbar-light bg-blue bg-lighten-5 border-blue border-lighten-4">                    <div class="navbar-wrapper">                        <div class="navbar-header">                            <ul class="nav navbar-nav mr-auto">                                <li class="nav-item mobile-menu d-md-none float-left">                                    <button class="nav-link menu-toggle hamburger hamburger--arrow js-hamburger is-active"><span class="hamburger-box"></span><span class="hamburger-inner"></span></button>                                </li>                                <li class="nav-item">                                    <a href="index.html" class="navbar-brand nav-link"><img src="../../../app-assets/images/logo/stack-logo-dark.png"></a>                                </li>                                <li class="nav-item d-md-none float-right"><a data-toggle="collapse" data-target="#navbar-mobile" class="nav-link open-navbar-container collapsed" aria-expanded="false"><i class="icon-ellipsis pe-2x icon-rotate-right"></i></a></li>                            </ul>                        </div>                        <div class="navbar-container content">                            <div id="navbar-mobile" class="collapse navbar-collapse">                                <ul class="nav navbar-nav mr-auto">                                    <li class="nav-item"><a class="nav-link active" href="#">Active</a></li>                                                                    </ul>                                <ul class="nav navbar-nav float-right">                                    <li class="nav-item"><a class="nav-link" href="#">Link</a></li>                                </ul>                            </div>                        </div>                    </div>                </nav>                <!--/ fixed-top-->

JADE Configuration

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 light layout.

Block Variable Datatype Value Description
pageConfig logoType string 'dark' pageConfigblock has a logoType variable, it contains logo version specific classes in that you need to add 'dark'.
navbarConfig navbarColor string 'navbar-light' navbarConfigblock has a navbarColor variable, it contains navbar specific classes in that you need to add 'navbar-light'. It also contain optional classes like 'bg-blue bg-lighten-5 border-blue border-lighten-4'.
JADE Code

To generate navbar light page or template, you need to use following JADE code.

  • Line no 21-22:Set logo version dark class to logoType variable value as 'dark'in pageConfig block as navbar color is light.
  • Line no 23-24:You need set navbar light class to navbarColor variable value as 'navbar-light'in navbarConfig block, it contains navbar color specific classes. It can also contain optional classes like 'bg-blue bg-lighten-5 border-blue border-lighten-4' for light color options from stack admin color pallet.
  • Line no 30-31:contentblock has content section html file included include ../contents/navbar-light.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 jade file for light navbar navbar-light.jade, however you can use it on template level but it will generate whole template navbar light.

                    block pageVars                        - var pageTitle    = "Navbar Light"                        - var pageSubTitle = "Light color navbar"                        - var description  = "The light color navbar with custom light color options & other styling options."                        - var activeMenu   = "navbar-light"                    extends template                    append pageConfig                        - var logoType = 'dark'                    append navbarConfig                        - var navbarColor = "navbar-light"                    append breadcrumbs                        +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Navbars"}, {name:"Navbar Light"}])                    //- Include page content in page block                    append content                        include ../contents/navbar-light.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