Product Delivery
Targeted Sales
Collicitudin vel metus scelerisque ante commodo.
In Progress25% Completed
Boxed layout with collapsed navigation
The boxed layout has a padding around the main wrapper as well as a background applied to it.
The boxed layout has a padding around the main wrapper as well as a background can be applied to it and all your content will be centered with the background flowing around it.
This table contains all classes related to the boxed layout, by using these layout specific classes you can apply its css.
All these options can be set via following classes:
Classes | Description |
---|---|
.container |
This is the bootstrap class, the .container class provides a responsive fixed width container To create boxed layout you need to add .container class in <body> tag. |
.boxed-layout |
To create boxed-layout you also require to use .boxed-layout class in <body> tag, this class help page to identify the layout type. |
This section contains HTML Markup to create boxed layout page. You need to add the .boxed-layout
class in the <body>
tag as show in below markup on line no 4. This layout has a navigation, content and left sidebar sections with common header & footer.
.container
and .boxed-layout
classes for applying boxed layout css to page.Robust has a ready to use starter kit, you can use this layout directly by using the sk-boxed.html
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-columns container boxed-layout menu-collapsed">
<!-- 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-fixed 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 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.
This table contains required JADE variables to generate 3 column left sidebar layout.
Variable | Value | Description |
---|---|---|
boxedLayout |
true |
You must have to set boxedLayout variable value as true in pageConfig block, this will be used in jade condition to add .boxed-layout and .container class to <body> . |
contentLayout |
'2-columns' |
You need to set contentLayout variable value as '2-columns' in pageConfig block. |
To generate boxed layout page or template, you need to use following JADE code.
pageConfig
block has a template specific configuration variables, in that for boxed layout you need to define variable - var boxedLayout = true
.pageConfig
block also require to define variable - var contentLayout = '2-columns'
as boxed layout use 2 columns.content
block has content section html file included include ../contents/layout-boxed.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 boxed layout boxed-layout.jade
, however you can use it on template level but it will generate whole template as a content left sidebar.
block pageVars
- var pageTitle = "Boxed Layout"
- var pageSubTitle = "Boxed layout with collapsed navigation"
- var description = "The boxed layout has a padding around the main wrapper as well as a background applied to it."
- var activeMenu = "layout-boxed"
extends template
block pageConfig
- var templateCustom = "vertical-layout vertical-menu" //- OPTIONS: menu-flipped
- var dataMenu = "vertical-menu"
- var boxedLayout = true //- OPTIONS:- true, false
- var contentLayout = '2-columns'
append breadcrumbs
include ../includes/mixins
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Starters"}, {name:"Boxed Layout"}])
append page-header
include page-headers/breadcrumb-top
//- Include page content in page block
append content
include ../contents/layout-boxed.html
//- Page specific dependency
//------------------------------
//- Add custom page specific CSS
block pagecss
link(rel='stylesheet', type='text/css', href='robust-assets/css/plugins/ui/prism.min.css')
//- Add custom page specific JS
block pagejs
script(src='robust-assets/js/plugins/ui/prism.min.js', type='text/javascript')