"Nav Sidebar With Toggle Button"
Bootstrap 2.3.2 Snippet by ths93

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <head> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> </head> <div class="container"> <div class="row"> <div class="span3 sidebar"> <div class="mini-submenu"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </div> <div class="list-group"> <span href="#" class="list-group-item active"> Submenu <span class="pull-right" id="slide-submenu"> <i class="fa fa-times"></i> </span> </span> <p> hello</p> </div> </div> <div class="span9 map-container"> <p>asdjhsadfhadsfhasdf</p> </div> </div> </div>
.mini-submenu{ display:none; background-color: rgba(0, 0, 0, 0); border: 1px solid rgba(0, 0, 0, 0.9); border-radius: 4px; padding: 9px; /*position: relative;*/ width: 22px; } .mini-submenu:hover{ cursor: pointer; } .mini-submenu .icon-bar { border-radius: 1px; display: block; height: 2px; width: 22px; margin-top: 3px; } .mini-submenu .icon-bar { background-color: #000; } #slide-submenu{ background: rgba(0, 0, 0, 0.45); display: inline-block; padding: 0 8px; border-radius: 4px; cursor: pointer; }
$(function(){ $('#slide-submenu').on('click',function() { $(this).closest('.list-group').hide(); $('.sidebar').removeClass('span3').addClass('span1') $('.map-container').removeClass('span9').addClass('span11') $('.mini-submenu').show(); }); $('.mini-submenu').on('click',function(){ $('.mini-submenu').hide(); $('.map-container').removeClass('span11').addClass('span9') $('.sidebar').removeClass('span1').addClass('span3') $(this).next('.list-group').show(); }) })

Related: See More


Questions / Comments: