content logo

Bootstrap Sidebars:

Bootstrap Sidebar with Blue Color Spectrum

Have you ever thought to yourself, what I need to do to ensure I’m getting maximum views on my website? Well, you are not alone. Many web owners ask this question from themselves but what they don’t know is that although getting more views is kind of hard without the right knowledge, but you can add little features to your site that will make your pages look more professional. People tend to like websites that are both visually appealing and offer good knowledge. One of the most popular ways to do such thing is by adding a Bootstrap sidebar.

With that said, here is a code designed to add a Responsive sidebar to the left of your web page. This is not as simple as other free codes out there and in fact it features a beautiful blue colour spectrum. The colour starts light at the top and grows darker as the list goes down. The subcategories are also based on the colour of the main categories in this beautiful sidebar so you can distinguish them with such ease. The categories all have their own little icons too so the users will probably like to click on it. moreover, you can get this colourful spectrum sidebar for free which is even better.

#

Bootstrap Sidebar

#

Color Spectrum

#

Beautiful Sidebar

#

Responsive Sidebar

#

Colorful Spectrum Sidebar

<!-- This script got from frontendfreecode.com -->
<div id="navbar-wrapper">
    <header>
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                        <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="#">Sidebar Template</a>
                </div>
                <div id="navbar-collapse" class="collapse navbar-collapse">
                    <form class="navbar-form navbar-left" role="search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
                            </span>
                        </div>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a id="flag" href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <img src="http://frontendfreecode.com/img/gb.png" alt="English" width="28px" height="18px">
                            </a>
                            <ul class="dropdown-menu dropdown-menu-flag" role="menu">
                                <li>
                                    <a href="#">
                                        <img src="http://frontendfreecode.com/img/gf.png" alt="Français" width="28px" height="18px">
                                        <span>Français</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a id="user-profile" href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="http://frontendfreecode.com/img/girl.jpg" class="img-responsive img-thumbnail img-circle"> Username</a>
                            <ul class="dropdown-menu dropdown-block" role="menu">
                                <li><a href="#">Profil edition</a></li>
                                <li><a href="#">Admin</a></li>
                                <li><a href="#">Logout</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
</div>
<div id="wrapper">
    <div id="sidebar-wrapper">
        <aside id="sidebar">
            <ul id="sidemenu" class="sidebar-nav">
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-dashboard"></i></span>
                        <span class="sidebar-title">Home</span>
                    </a>
                </li>
                <li>
                    <a class="accordion-toggle collapsed toggle-switch" data-toggle="collapse" href="#submenu-2">
                        <span class="sidebar-icon"><i class="fa fa-users"></i></span>
                        <span class="sidebar-title">Management</span>
                        <b class="caret"></b>
                    </a>
                    <ul id="submenu-2" class="panel-collapse collapse panel-switch" role="menu">
                        <li><a href="#"><i class="fa fa-caret-right"></i>Users</a></li>
                        <li><a href="#"><i class="fa fa-caret-right"></i>Roles</a></li>
                    </ul>
                </li>
                <li>
                    <a class="accordion-toggle collapsed toggle-switch" data-toggle="collapse" href="#submenu-3">
                        <span class="sidebar-icon"><i class="fa fa-newspaper-o"></i></span>
                        <span class="sidebar-title">Blog</span>
                        <b class="caret"></b>
                    </a>
                    <ul id="submenu-3" class="panel-collapse collapse panel-switch" role="menu">
                        <li><a href="#"><i class="fa fa-caret-right"></i>Posts</a></li>
                        <li><a href="#"><i class="fa fa-caret-right"></i>Comments</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-database"></i></span>
                        <span class="sidebar-title">Data</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-terminal"></i></span>
                        <span class="sidebar-title">Console</span>
                    </a>
                </li>
            </ul>
        </aside>
    </div>
    <main id="page-content-wrapper" role="main">
    </main>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
body {
    background: lightgray;
}
.navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
}
.navbar-default .navbar-nav #user-profile {
    height: 50px;
    padding-top: 15px;
    padding-left: 58px;
}
.navbar-default .navbar-nav #user-profile img {
    height: 45px;
    width: 45px;
    position: absolute;
    top: 2px;
    left: 8px;
    padding: 1px;
}
#wrapper {
    padding-top: 50px;
    padding-left: 0;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}
@media (min-width: 992px) {
#wrapper {
    padding-left: 225px;
}
}
@media (min-width: 992px) {
#wrapper #sidebar-wrapper {
    width: 225px;
}
}
#sidebar-wrapper {
    border-right: 1px solid #e7e7e7;
}
#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 225px;
    width: 0;
    height: 100%;
    margin-left: -225px;
    overflow-y: auto;
    background: #f8f8f8;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}
#sidebar-wrapper .sidebar-nav {
    position: absolute;
    top: 0;
    width: 225px;
    font-size: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#sidebar-wrapper .sidebar-nav li {
    text-indent: 0;
    line-height: 45px;
}
#sidebar-wrapper .sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #428bca;
}
.sidebar-nav li:first-child a {
    background: #92bce0 !important;
    color: #fff !important;
}
#sidebar-wrapper .sidebar-nav li a .sidebar-icon {
    width: 45px;
    height: 45px;
    font-size: 14px;
    padding: 12px 2px;
    display: inline-block;
    text-indent: 7px;
    margin-right: 10px;
    color: #fff;
    float: left;
}
#sidebar-wrapper .sidebar-nav li a .caret {
    position: absolute;
    right: 23px;
    top: auto;
    margin-top: 20px;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse {
    list-style: none;
    -moz-padding-start: 0;
    -webkit-padding-start: 0;
    -khtml-padding-start: 0;
    -o-padding-start: 0;
    padding-start: 0;
    padding: 0;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse li i {
    margin-right: 10px;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse li {
    text-indent: 15px;
}
@media (max-width: 992px) {
#wrapper #sidebar-wrapper {
    width: 45px;
}
#wrapper #sidebar-wrapper #sidebar #sidemenu li ul {
    position: fixed;
    left: 45px;
    margin-top: -45px;
    z-index: 1000;
    width: 200px;
    height: 0;
}
}
.sidebar-nav li:first-child a {
    background: #92bce0 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(2) a {
    background: #6aa3d5 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(3) a {
    background: #428bca !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(4) a {
    background: #3071a9 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(5) a {
    background: #245682 !important;
    color: #fff !important;
}
$('#footerSlideButton').click(function () {
    if (open === false) {
        $('.navbar-fixed-bottom').animate({ height: '200px' });
        $(this).css('backgroundPosition', 'bottom left');
        open = true;
    } else {
        $('.navbar-fixed-bottom').animate({ height: '0px' });
        $(this).css('backgroundPosition', 'top left');
        open = false;
    }
});
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<style>
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
body {
    background: lightgray;
}
.navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
}
.navbar-default .navbar-nav #user-profile {
    height: 50px;
    padding-top: 15px;
    padding-left: 58px;
}
.navbar-default .navbar-nav #user-profile img {
    height: 45px;
    width: 45px;
    position: absolute;
    top: 2px;
    left: 8px;
    padding: 1px;
}
#wrapper {
    padding-top: 50px;
    padding-left: 0;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}
@media (min-width: 992px) {
#wrapper {
    padding-left: 225px;
}
}
@media (min-width: 992px) {
#wrapper #sidebar-wrapper {
    width: 225px;
}
}
#sidebar-wrapper {
    border-right: 1px solid #e7e7e7;
}
#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 225px;
    width: 0;
    height: 100%;
    margin-left: -225px;
    overflow-y: auto;
    background: #f8f8f8;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}
#sidebar-wrapper .sidebar-nav {
    position: absolute;
    top: 0;
    width: 225px;
    font-size: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#sidebar-wrapper .sidebar-nav li {
    text-indent: 0;
    line-height: 45px;
}
#sidebar-wrapper .sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #428bca;
}
.sidebar-nav li:first-child a {
    background: #92bce0 !important;
    color: #fff !important;
}
#sidebar-wrapper .sidebar-nav li a .sidebar-icon {
    width: 45px;
    height: 45px;
    font-size: 14px;
    padding: 12px 2px;
    display: inline-block;
    text-indent: 7px;
    margin-right: 10px;
    color: #fff;
    float: left;
}
#sidebar-wrapper .sidebar-nav li a .caret {
    position: absolute;
    right: 23px;
    top: auto;
    margin-top: 20px;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse {
    list-style: none;
    -moz-padding-start: 0;
    -webkit-padding-start: 0;
    -khtml-padding-start: 0;
    -o-padding-start: 0;
    padding-start: 0;
    padding: 0;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse li i {
    margin-right: 10px;
}
#sidebar-wrapper .sidebar-nav li ul.panel-collapse li {
    text-indent: 15px;
}
@media (max-width: 992px) {
#wrapper #sidebar-wrapper {
    width: 45px;
}
#wrapper #sidebar-wrapper #sidebar #sidemenu li ul {
    position: fixed;
    left: 45px;
    margin-top: -45px;
    z-index: 1000;
    width: 200px;
    height: 0;
}
}
.sidebar-nav li:first-child a {
    background: #92bce0 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(2) a {
    background: #6aa3d5 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(3) a {
    background: #428bca !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(4) a {
    background: #3071a9 !important;
    color: #fff !important;
}
.sidebar-nav li:nth-child(5) a {
    background: #245682 !important;
    color: #fff !important;
}
</style>

</head>
<body>
<div id="navbar-wrapper">
    <header>
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                        <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="#">Sidebar Template</a>
                </div>
                <div id="navbar-collapse" class="collapse navbar-collapse">
                    <form class="navbar-form navbar-left" role="search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
                            </span>
                        </div>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a id="flag" href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <img src="http://frontendfreecode.com/img/gb.png" alt="English" width="28px" height="18px">
                            </a>
                            <ul class="dropdown-menu dropdown-menu-flag" role="menu">
                                <li>
                                    <a href="#">
                                        <img src="http://frontendfreecode.com/img/gf.png" alt="Français" width="28px" height="18px">
                                        <span>Français</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a id="user-profile" href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="http://frontendfreecode.com/img/girl.jpg" class="img-responsive img-thumbnail img-circle"> Username</a>
                            <ul class="dropdown-menu dropdown-block" role="menu">
                                <li><a href="#">Profil edition</a></li>
                                <li><a href="#">Admin</a></li>
                                <li><a href="#">Logout</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
</div>
<div id="wrapper">
    <div id="sidebar-wrapper">
        <aside id="sidebar">
            <ul id="sidemenu" class="sidebar-nav">
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-dashboard"></i></span>
                        <span class="sidebar-title">Home</span>
                    </a>
                </li>
                <li>
                    <a class="accordion-toggle collapsed toggle-switch" data-toggle="collapse" href="#submenu-2">
                        <span class="sidebar-icon"><i class="fa fa-users"></i></span>
                        <span class="sidebar-title">Management</span>
                        <b class="caret"></b>
                    </a>
                    <ul id="submenu-2" class="panel-collapse collapse panel-switch" role="menu">
                        <li><a href="#"><i class="fa fa-caret-right"></i>Users</a></li>
                        <li><a href="#"><i class="fa fa-caret-right"></i>Roles</a></li>
                    </ul>
                </li>
                <li>
                    <a class="accordion-toggle collapsed toggle-switch" data-toggle="collapse" href="#submenu-3">
                        <span class="sidebar-icon"><i class="fa fa-newspaper-o"></i></span>
                        <span class="sidebar-title">Blog</span>
                        <b class="caret"></b>
                    </a>
                    <ul id="submenu-3" class="panel-collapse collapse panel-switch" role="menu">
                        <li><a href="#"><i class="fa fa-caret-right"></i>Posts</a></li>
                        <li><a href="#"><i class="fa fa-caret-right"></i>Comments</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-database"></i></span>
                        <span class="sidebar-title">Data</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <span class="sidebar-icon"><i class="fa fa-terminal"></i></span>
                        <span class="sidebar-title">Console</span>
                    </a>
                </li>
            </ul>
        </aside>
    </div>
    <main id="page-content-wrapper" role="main">
    </main>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>
<script>
$('#footerSlideButton').click(function () {
    if (open === false) {
        $('.navbar-fixed-bottom').animate({ height: '200px' });
        $(this).css('backgroundPosition', 'bottom left');
        open = true;
    } else {
        $('.navbar-fixed-bottom').animate({ height: '0px' });
        $(this).css('backgroundPosition', 'top left');
        open = false;
    }
});
</script>

</body>
<script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'},{'ap':'cpbh-mt'},{'server':'p3plmcpnl484880'},{'dcenter':'p3'},{'cp_id':'765442'},{'cp_cl':'8'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/traffic-assets/js/tccl.min.js'></script></html>
Preview