Detached Left Sticky Sidebar

content layoutDetached left sticky sidebar

The content detached left sticky sidebar layout with navigation, content area and detched left sticky sidebar.

Description

Content layout with detached left sticky sidebar provides more navigations options on page level. For the larger screen this layout provides best usability. This layout use the third column as a sticky sidebar section.

CSS Classes

This table contains all classes related to the content detached left sticky sidebar layout. This is a custom layout classes for content detached left sticky sidebar layout page requirements.

All these options can be set via following classes:

Classes Description
.content-detached-left-sidebar You can create 3 column detached left layout by adding .content-detached-left-sidebar class in <body> tag.
.content-detached In this layout content section is detached from left sticky sidebar, for that .content-detached class needs to add in content wrapper. Refer HTML markup line no 27.
.content-right In this layout content should be float in right side, so .content-right class needs to add in content wrapper. Refer HTML markup line no 27.
.sidebar-detached In this layout left sticky sidebar section is detached from content, for that .sidebar-detached class needs to add in sidebar wrapper. Refer HTML markup line no 33.
.sidebar-left In this layout sidebar should be float in left side, so .sidebar-right class needs to add in sidebar wrapper. Refer HTML markup line no 33.
.sidebar-sticky To create sticky sidebar add .sidebar-sticky class. Refer HTML markup line no 34.

HTML Markup

This section contains HTML Markup to create 3 column detached left sticky sidebar layout. You need to add the .content-detached-left-sidebar class in the <body> tag as show in below markup on line no 4. This layout has a navigation, content and left detached sidebar sections with common header & footer.

  • Line no 27: Contain the .content-detached and .content-right classes for adjusting detached content section in right side.
  • Line no 33: Contain the .sidebar-detached and .sidebar-left classes for adjusting detached sidebar section in left side.
  • Line no 34: Contain the .sidebar-sticky class, that will make the detached left sidebar sticky.

Robust has a ready to use starter kit, you can use this layout directly by using the sk-content-detached-left-sticky-sidebar.html

        
            <!DOCTYPE html>
              <html lang="en">
                <head></head>
                <body data-menu="vertical-menu" class="vertical-layout vertical-menu content-detached-left-sidebar 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-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 detached right-->
                          <div class="content-detached content-right">
                              ...
                          </div>
                          <!-- content detached right-->
                          
                          <!-- sidebar detached left-->
                          <div class="sidebar-detached sidebar-left">
                              <div class="sidebar sidebar-sticky">
                                  ...
                              </div>
                          </div>
                          <!-- sidebar detached left-->
                          
                      </div>
                  </div>
                  <!-- END Content-->


                  <!-- START FOOTER DARK-->
                  <footer class="footer footer-dark">
                      ...
                  </footer>
                  <!-- START FOOTER DARK-->

                </body>
              </html>
        
        

JADE Configuration

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 3 column detached left sticky sidebar layout.

Variable Value Description
contentLayout 'content-detached-left-sidebar' You need to set contentLayout variable value as 'content-detached-left-sidebar' in pageConfig block.
sidebarSticky true You need to set sidebarSticky variable value as true in pageConfig block to enable left sticky sidebar.
JADE Code

To generate content detached left sticky sidebar layout page or template, you need to use following JADE code.

  • Line no 20-24: pageConfig block has a template specific configuration variables, in that for 3 column layout need to define variable - var contentLayout = 'content-detached-left-sidebar'
  • Line no 25: To make left sticky sidebar pageConfig block also require - var sidebarSticky = true configuration variables, set value as true to enable it.
  • Line no 33-34: content block has content section html file included include ../contents/sk-content-detached-left-sticky-sidebar.html, which can be customizable on page level.
  • Line no 36-37: sidebar block has sidebar section html file included include ../contents/sidebar-common.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 content detached left sticky sidebar layout-content-detached-left-sticky-sidebar.jade, however you can use it on template level but it will generate whole template as a content detached left sticky sidebar.

            
                block pageVars
                  - var pageTitle    = "Content"
                  - var pageSubTitle = "Detached left sticky sidebar"
                  - var description  = "The full width content detached left sticky sidebar layout have navigation, content area and detached left sticky sidebar."
                  - var activeMenu   = "content-detached-left-sidebar"
                
                extends template
                
                block pageConfig
                  - var templateCustom = "vertical-layout vertical-menu" //- OPTIONS: menu-flipped
                  - var dataMenu = "vertical-menu"
                  - var boxedLayout = false  //- OPTIONS:- true, false
                  - var contentLayout = 'content-detached-left-sidebar'
                  - var sidebarSticky = true
                
                append breadcrumbs
                  include ../includes/mixins
                  +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Starters"}, {name:"Content detached left sticky sidebar"}])
                
                append page-header
                  include page-headers/breadcrumb-top
                
                append content
                  include ../contents/sk-content-detached-left-sticky-sidebar.html
                
                append sidebar
                  include ../contents/sidebar-common.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')