"Sidebar"
Bootstrap 3.3.0 Snippet by JoeEarly

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="left"> <div class="item"> <span class="glyphicon glyphicon-th-large"></span> </div> <div class="item active"> <span class="glyphicon glyphicon-th-list"></span> Все документы</div> <div class="item"> <span class="glyphicon glyphicon-log-out"></span> Расходные накладные</div> <div class="item"> <span class="glyphicon glyphicon-log-in"></span> Приходные накладные</div> <div class="item"> <span class="glyphicon glyphicon-random"></span> Акты переоценки</div> <div class="item"> <span class="glyphicon glyphicon-remove"></span> Акты списания</div> </div>
.left { float:left; height:100vh; } .left { background: #337ab7; display: inline-block; white-space: nowrap; width: 50px; transition: width 1s ; } .left:hover { width: 250px; } .item:hover { background-color:#ccc; } .left .glyphicon { margin:15px; width:20px; color:#fff; } span.glyphicon{ font-size:17px; vertical-align: middle !important; } .item { height:50px; overflow:hidden; color:#fff; }

Related: See More


Questions / Comments: