bootstrap-sidebar.css 2.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*!
 * Start Bootstrap - Simple Sidebar (http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */


/* Toggle Styles */

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

#wrapper.toggled {
    padding-left: 300px;
}

#sidebar-wrapper {
23
    z-index: 2;
24 25 26 27 28
    position: fixed;
    /*left: 350px;*/
    /*width: 0;*/
    height: 100%;
    /*margin-left: -350px;*/
29
    /*overflow-y: auto;*/
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
    background: #fff;
    -moz-transition: left 0.3s;
    -o-transition: left 0.3s;
    -webkit-transition: left 0.3s;
    transition: left 0.3s;
}

#wrapper.toggled #sidebar-wrapper {
    /*width: 350px;*/
}

#page-content-wrapper {
    width: 100%;
    position: absolute;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -350px;
}


/* Sidebar Styles */

.sidebar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav>li {
    line-height: 50px;
    padding: 5px 20px;
    border-bottom: 1px #1c1e2a solid;
}

.sidebar-nav>li a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.sidebar-nav>li a:hover {
    text-decoration: none;
    color: #fff;
}

.sidebar-nav>li a:active,
.sidebar-nav>li a:focus {
    text-decoration: none;
}

.sidebar-nav>.sidebar-brand {
    font-size: 18px;
    line-height: 50px;
}

.sidebar-nav>.sidebar-brand a {
    color: #ddd;
    letter-spacing: 1px;
}

.sidebar-nav>.sidebar-brand a:hover {
    color: #fff;
    background: none;
}


/* Extended Elements */

.sidebar-input .input-group {
    margin: 10px 0px;
}

.sidebar-input .form-control,
.sidebar-input .input-group-addon {
    background-color: transparent;
    border-radius: 0px;
}

.sidebar-input .form-control {
    border-right: none;
    color: #eee;
}

.sidebar-input .input-group-addon {
    border-left: none;
    color: #ccc;
}

.sidebar-input .form-control:focus+.input-group-addon {
    border-color: #66afe9;
}

@media(min-width:768px) {
    #wrapper {
        padding-left: 350px;
    }

    #wrapper.toggled {
        padding-left: 0;
    }

    #sidebar-wrapper {
        /*width: 350px;*/
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 0;
        padding: 0;
    }

    #page-content-wrapper {
        position: relative;
    }

    #wrapper.toggled #page-content-wrapper {
        position: relative;
        margin-right: 0;
    }
}