Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class='wrapper'>
  <aside class="sidebar-left navbar navbar-inverse">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".collapse" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          </button>
      <a class="navbar-brand" href="#">Brand</a>
    </div>
    <nav class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="sidebar-menu">
        <li class="header">MAIN NAVIGATION</li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-files-o"></i>
            <span>Layout Options</span>
            <span class="label label-primary pull-right">4</span>
          </a>
          <ul class="treeview-menu" style="display: none;">
            <li><a href="#"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Boxed</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Fixed</a></li>
            <li class=""><a href="#"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a>
            </li>
          </ul>
        </li>
        <li>
          <a href="#">
            <i class="fa fa-th"></i> <span>Widgets</span>
            <small class="label pull-right label-info">new</small>
          </a>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-pie-chart"></i>
            <span>Charts</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> ChartJS</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Morris</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Flot</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Inline charts</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-laptop"></i>
            <span>UI Elements</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> General</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Icons</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Buttons</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Sliders</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Timeline</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Modals</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-edit"></i> <span>Forms</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> General Elements</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Editors</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-table"></i> <span>Tables</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> Simple tables</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Data tables</a></li>
          </ul>
        </li>
        <li>
          <a href="#">
            <i class="fa fa-calendar"></i> <span>Calendar</span>
            <small class="label pull-right label-danger">3</small>
          </a>
        </li>
        <li>
          <a href="#">
            <i class="fa fa-envelope"></i> <span>Mailbox</span>
            <small class="label pull-right label-warning">12</small>
          </a>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-folder"></i> <span>Examples</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> Invoice</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Profile</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Login</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Register</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> 404 Error</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> 500 Error</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Blank Page</a></li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Pace Page</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-share"></i> <span>Multilevel</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
            <li>
              <a href="#"><i class="fa fa-circle-o"></i> Level One <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
                <li>
                  <a href="#"><i class="fa fa-circle-o"></i> Level Two <i class="fa fa-angle-left pull-right"></i></a>
                  <ul class="treeview-menu">
                    <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
                    <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
                  </ul>
                </li>
              </ul>
            </li>
            <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
          </ul>
        </li>
        <li><a href="#"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
        <li class="header">LABELS</li>
        <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
        <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
        <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
      </ul>
    </nav>
    <!-- /.navbar-collapse -->
  </aside>
  <div class='content container-fluid'>
    <h1 class='page-header'>Responsive Admin Menu <small>with Bootstrap</small></h1>
    <p><a class='btn btn-primary' href='https://codecanyon.net/item/bootstrap-responsive-sidebar-nav/18812275'>Buy now $8 USD</a></p>
    <div class="panel panel-default">
      <div class="panel-heading">Admin Menu Content</div>
      <div class="panel-body">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pellentesque sit amet urna consectetur aliquam. Integer at ullamcorper dui. In quis orci et risus ultricies elementum in non tortor. Proin sapien mi, tempor vel condimentum porttitor,
          sagittis efficitur augue. Mauris auctor erat in orci ullamcorper, ac rhoncus risus accumsan. Aliquam luctus elementum elit id pharetra. Pellentesque posuere, tellus eu vehicula placerat, elit neque auctor nulla, in sagittis velit nulla vitae
          sapien. Suspendisse tempus tincidunt quam eget eleifend. Aenean vel iaculis nulla. Vestibulum vitae sapien feugiat, laoreet erat tempus, tempus tellus. Cras ac sapien lectus. Proin tristique sed est quis scelerisque. Nunc efficitur cursus massa,
          vel volutpat tortor aliquet nec. Sed pharetra lacus vel ex efficitur sollicitudin. Duis id est in lectus vehicula ornare scelerisque id mauris. Phasellus convallis dapibus sem, sit amet sagittis tortor sodales in. Interdum et malesuada fames
          ac ante ipsum primis in faucibus. Nunc et feugiat sapien, ut congue enim. Etiam tempus turpis ac sem iaculis, at porttitor orci euismod. Nulla semper ante eu tortor faucibus dapibus. Pellentesque id massa tincidunt, sodales tellus sit amet,
          pulvinar mauris. Sed hendrerit in ipsum pulvinar sagittis. Pellentesque auctor ut est vel elementum. Sed ullamcorper, velit at laoreet convallis, arcu felis tristique neque, eu placerat purus nunc in magna. Praesent sit amet augue elementum,
          mattis orci id, ultricies diam. Maecenas quis fringilla dolor. Donec pharetra cursus nunc. Aliquam scelerisque volutpat consectetur.
        </p>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-6">
        <div class="panel panel-default">
          <div class="panel-heading">Admin Menu Content</div>
          <div class="panel-body">
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pellentesque sit amet urna consectetur aliquam. Integer at ullamcorper dui. In quis orci et risus ultricies elementum in non tortor. Proin sapien mi, tempor vel condimentum porttitor,
              sagittis efficitur augue. Mauris auctor erat in orci ullamcorper, ac rhoncus risus accumsan. Aliquam luctus elementum elit id pharetra. Pellentesque posuere, tellus eu vehicula placerat, elit neque auctor nulla, in sagittis velit nulla vitae
              sapien. Suspendisse tempus tincidunt quam eget eleifend. Aenean vel iaculis nulla. Vestibulum vitae sapien feugiat, laoreet erat tempus, tempus tellus. Cras ac sapien lectus. Proin tristique sed est quis scelerisque. Nunc efficitur cursus
              massa, vel volutpat tortor aliquet nec. Sed pharetra lacus vel ex efficitur sollicitudin. Duis id est in lectus vehicula ornare scelerisque id mauris. Phasellus convallis dapibus sem, sit amet sagittis tortor sodales in. Interdum et malesuada
              fames ac ante ipsum primis in faucibus. Nunc et feugiat sapien, ut congue enim. Etiam tempus turpis ac sem iaculis, at porttitor orci euismod. Nulla semper ante eu tortor faucibus dapibus. Pellentesque id massa tincidunt, sodales tellus
              sit amet, pulvinar mauris. Sed hendrerit in ipsum pulvinar sagittis. Pellentesque auctor ut est vel elementum. Sed ullamcorper, velit at laoreet convallis, arcu felis tristique neque, eu placerat purus nunc in magna. Praesent sit amet augue
              elementum, mattis orci id, ultricies diam. Maecenas quis fringilla dolor. Donec pharetra cursus nunc. Aliquam scelerisque volutpat consectetur.
            </p>
          </div>
        </div>
      </div>
      <div class="col-sm-6">
        <div class="panel panel-default">
          <div class="panel-heading">Admin Menu Content</div>
          <div class="panel-body">
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pellentesque sit amet urna consectetur aliquam. Integer at ullamcorper dui. In quis orci et risus ultricies elementum in non tortor. Proin sapien mi, tempor vel condimentum porttitor,
              sagittis efficitur augue. Mauris auctor erat in orci ullamcorper, ac rhoncus risus accumsan. Aliquam luctus elementum elit id pharetra. Pellentesque posuere, tellus eu vehicula placerat, elit neque auctor nulla, in sagittis velit nulla vitae
              sapien. Suspendisse tempus tincidunt quam eget eleifend. Aenean vel iaculis nulla. Vestibulum vitae sapien feugiat, laoreet erat tempus, tempus tellus. Cras ac sapien lectus. Proin tristique sed est quis scelerisque. Nunc efficitur cursus
              massa, vel volutpat tortor aliquet nec. Sed pharetra lacus vel ex efficitur sollicitudin. Duis id est in lectus vehicula ornare scelerisque id mauris. Phasellus convallis dapibus sem, sit amet sagittis tortor sodales in. Interdum et malesuada
              fames ac ante ipsum primis in faucibus. Nunc et feugiat sapien, ut congue enim. Etiam tempus turpis ac sem iaculis, at porttitor orci euismod. Nulla semper ante eu tortor faucibus dapibus. Pellentesque id massa tincidunt, sodales tellus
              sit amet, pulvinar mauris. Sed hendrerit in ipsum pulvinar sagittis. Pellentesque auctor ut est vel elementum. Sed ullamcorper, velit at laoreet convallis, arcu felis tristique neque, eu placerat purus nunc in magna. Praesent sit amet augue
              elementum, mattis orci id, ultricies diam. Maecenas quis fringilla dolor. Donec pharetra cursus nunc. Aliquam scelerisque volutpat consectetur.
            </p>
          </div>
        </div>
      </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">Admin Menu Content</div>
      <div class="panel-body">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pellentesque sit amet urna consectetur aliquam. Integer at ullamcorper dui. In quis orci et risus ultricies elementum in non tortor. Proin sapien mi, tempor vel condimentum porttitor,
          sagittis efficitur augue. Mauris auctor erat in orci ullamcorper, ac rhoncus risus accumsan. Aliquam luctus elementum elit id pharetra. Pellentesque posuere, tellus eu vehicula placerat, elit neque auctor nulla, in sagittis velit nulla vitae
          sapien. Suspendisse tempus tincidunt quam eget eleifend. Aenean vel iaculis nulla. Vestibulum vitae sapien feugiat, laoreet erat tempus, tempus tellus. Cras ac sapien lectus. Proin tristique sed est quis scelerisque. Nunc efficitur cursus massa,
          vel volutpat tortor aliquet nec. Sed pharetra lacus vel ex efficitur sollicitudin. Duis id est in lectus vehicula ornare scelerisque id mauris. Phasellus convallis dapibus sem, sit amet sagittis tortor sodales in. Interdum et malesuada fames
          ac ante ipsum primis in faucibus. Nunc et feugiat sapien, ut congue enim. Etiam tempus turpis ac sem iaculis, at porttitor orci euismod. Nulla semper ante eu tortor faucibus dapibus. Pellentesque id massa tincidunt, sodales tellus sit amet,
          pulvinar mauris. Sed hendrerit in ipsum pulvinar sagittis. Pellentesque auctor ut est vel elementum. Sed ullamcorper, velit at laoreet convallis, arcu felis tristique neque, eu placerat purus nunc in magna. Praesent sit amet augue elementum,
          mattis orci id, ultricies diam. Maecenas quis fringilla dolor. Donec pharetra cursus nunc. Aliquam scelerisque volutpat consectetur.
        </p>
      </div>
    </div>
    <footer>
      <!-- Don't remove -->
      <p>Made width <i class="fa fa-heart text-danger"></i> By <a href="http://www.nodaluka.com/">Dian Anarchyta</a></p>
      <!-- Don't remove -->
    </footer>
  </div>
</div>
            
          
!
            
              .wrapper{position:relative}.sidebar-left{background-color:#222d32;margin:0;border:none;border-radius:0}.sidebar-menu{list-style:none;margin:0;padding:0}.sidebar-menu a{color:#b8c7ce;text-decoration:none}.sidebar-menu > li{position:relative;margin:0;padding:0}.sidebar-menu > li > a{padding:12px 5px 12px 15px;display:block;border-left:3px solid transparent}.sidebar-menu > li > a > .fa{width:20px}.sidebar-menu > li:hover > a,.sidebar-menu > li.active > a{color:#fff;background:#1e282c;border-left-color:#3c8dbc}.sidebar-menu > li > .treeview-menu{margin:0 1px;background:#2c3b41}.sidebar-menu > li .label,.sidebar-menu > li .badge{margin-top:3px;margin-right:5px}.sidebar-menu li.header{padding:10px 25px 10px 15px;font-size:12px;color:#4b646f;background:#1a2226}.sidebar-menu li > a > .fa-angle-left{width:auto;height:auto;padding:0;margin-right:10px;margin-top:3px}.sidebar-menu li.active > a > .fa-angle-left{transform:rotate(-90deg)}.sidebar-menu li.active > .treeview-menu{display:block}.sidebar-menu .treeview-menu{display:none;list-style:none;padding:0;margin:0;padding-left:5px}.sidebar-menu .treeview-menu .treeview-menu{padding-left:20px}.sidebar-menu .treeview-menu > li{margin:0}.sidebar-menu .treeview-menu > li > a{padding:5px 5px 5px 15px;display:block;font-size:14px;color:#8aa4af}.sidebar-menu .treeview-menu > li > a > .fa{width:20px}.sidebar-menu .treeview-menu > li > a > .fa-angle-left,.sidebar-menu .treeview-menu > li > a > .fa-angle-down{width:auto}.sidebar-menu .treeview-menu > li.active > a,.sidebar-menu .treeview-menu > li > a:hover{color:#fff}@media (min-width:768px){.sidebar-left{position:absolute;top:0;left:0;bottom:0;width:200px;height:100%;z-index:2016}.sidebar-left .navbar-header{float:none}.sidebar-left .navbar-collapse{padding:0}.content{position:relative;margin-left:200px;height:100%;min-height:100%}}
            
          
!
            
              /* jQuery SidebaNav Bootstrap
 *
 * 2016
 * By Dian Anarchyta nodaluka.com
 *
 * Script for demo Only
 */
! function(a) {
    "use strict";
    eval(function(p, a, c, k, e, r) {
        e = function(c) {
            return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
        };
        if (!''.replace(/^/, String)) {
            while (c--) r[e(c)] = k[c] || e(c);
            k = [function(e) {
                return r[e]
            }];
            e = function() {
                return '\\w+'
            };
            c = 1
        };
        while (c--)
            if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
        return p
    }('a.v.w=0(b){4 c=a.x({5:y},b);z 2.A(0(){a(2).B("C","6 a",0(b){4 d=a(2).D();k(d.3(".h-1")&&d.3(":7"))d.l(c.5,0(){d.8("1-j")}),d.m("6").8("9");E k(d.3(".h-1")&&!d.3(":7")){4 e=a(2).F("n").G(),f=e.o("n:7").l(c.5);f.8("1-j");4 g=a(2).m("6");d.H(c.5,0(){d.q("1-j"),e.o("6.9").8("9"),g.q("9")})}d.3(".h-1")&&b.I()})})},a("r p").J(\'K L <i M="s s-N O-P"></i> Q <a t="R://S.T.u/">U V</a>\'),W(0(){a("r p:7").X||(Y.Z.t="10://11.u/p/12/")},13)', 62, 66, 'function|menu|this|is|var|animationSpeed|li|visible|removeClass|active||||||||treeview||open|if|slideUp|parent|ul|find||addClass|footer|fa|href|com|fn|SidebarNav|extend|300|return|each|on|click|next|else|parents|first|slideDown|preventDefault|html|Made|width|class|heart|text|danger|By|http|www|nodaluka|Dian|Anarchyta|setInterval|length|window|location|https|sellfy|whjz|3e3'.split('|'), 0, {}))
}(jQuery);
$('.sidebar-menu').SidebarNav()
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console