CSS Classes
This table contains all classes related to the fixed navbar layout. This is a custom layout classes for fixed navbar layout page requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.navbar-fixed-top |
To set navbar fixed you need to add .navbar-fixed-top class in navbar <nav> tag. Refer HTML markup line no 7. |
This section contains HTML Markup to create fixed navbar layout. This markup define where to add css classes to make navbar fixed.
- Line no 7: Contain the
.navbar-fixed-top
class for adjusting navbar fixed on top.
Robust has a ready to use starter kit, you can use this layout directly by using the fixed-navbar.html
<!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 Navigation-->
<div class="main-menu menu-dark menu-shadow">
...
</div>
<!-- END 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 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>
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 fixed navbar layout.
Variable | Value | Description |
---|---|---|
headerCustom |
'navbar-fixed-top' |
You need to add navbar fixed class to headerCustom variable value as 'navbar-fixed-top' in headerConfig block. |
JADE Code
To generate fixed navbar layout page or template, you need to use following JADE code.
- Line no 20-21:
headerConfig
block has aheaderCustom
variable, it contains navbar specific classes in that you need to addnavbar-fixed-top
- Line no 36-37:
content
block has content section html file includedinclude ../contents/fixed-navbar.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 fixed fixed-navbar.jade
, however you can use it on template level but it will generate whole template as a fixed navbar layout.
block pageVars
- var pageTitle = "Fixed Navbar"
- var pageSubTitle = "Fixed navbar with fixed navigation"
- var description = "Fixed navbar page structure have fixed navbar, static navigation and footer."
- var activeMenu = "layout-fixed-navbar"
extends template
append navbarConfig
- var navbarPosition = "navbar-fixed-top"
append breadcrumbs
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Page Layouts"}, {name:"Fixed Navbar"}])
//- Include page content in page block
append content
include ../contents/layout-fixed-navbar.html
//- Vendor CSS
append vendorcss
link(rel='stylesheet', type='text/css', href='../app-assets/vendors/css/ui/prism.min.css')
//- Vendor JS
append vendorjs
script(src='../app-assets/vendors/js/ui/prism.min.js', type='text/javascript')
Refer following links for detailed documentation, configuration options, methods and examples:
Type | URL |
---|---|
Fixed Navbar | http://demo.pixinvent.com/robust-admin/ltr/vertical-menu-template/layout-fixed-navbar.html |