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

/* Toggle Styles */

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

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

#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
24
    left: 350px;
25 26
    width: 0;
    height: 100%;
27
    margin-left: -350px;
28 29 30 31 32 33 34 35 36
    overflow-y: auto;
    background: #323544;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled #sidebar-wrapper {
37
    width: 350px;}
38 39 40 41 42 43 44 45

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

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

/* Sidebar Styles */
50
.sidebar-nav {
51 52 53 54 55
    margin: 0;
    padding: 0;
    list-style: none;
}

56
.sidebar-nav > li {
57 58 59 60
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 1px #1c1e2a solid;
}
61
.sidebar-nav > li a {
62 63 64 65 66
    display: block;
    text-decoration: none;
    color: #fff;
}

67
.sidebar-nav > li a:hover {
68 69 70 71
    text-decoration: none;
    color: #fff;
}

72 73
.sidebar-nav > li a:active,
.sidebar-nav > li a:focus {
74 75 76 77 78
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    font-size: 18px;
79
    line-height: 60px;
80 81 82 83 84 85 86 87 88 89 90 91
}

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

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

92
/* Extended Elements */
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
.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 {
115
        padding-left: 350px;
116 117 118 119 120 121 122
    }

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

    #sidebar-wrapper {
123
        width: 350px;    }
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

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

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

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