sidebar.less 2.71 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 23 24 25 26 27 28 29 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
/*
    Component: Sidebar
--------------------------
*/

.sidebar {
    margin-bottom: 5px;
    // remove shadow from form 
    .sidebar-form {
        input:focus {
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
            border-color: transparent!important;
        }
    }
    // Sidebar menu 
    .sidebar-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        > li {
            margin: 0;
            padding: 0;
            > a {
                padding: 12px 5px 12px 15px;
                display: block;
                > .fa, > .glyphicon, > .ion {
                    width: 20px;
                }
            }
        }

        // Tree view menu 
        .treeview-menu {
            display: none;
            list-style: none;
            padding:0;
            margin:0;
            > li {
                margin: 0;
                > a {
                    padding: 5px 5px 5px 15px;
                    display: block;
                    font-size: 14px;
                    margin: 0px 0px;
                    > .fa, > .glyphicon, > .ion {
                        width: 20px;
                    }
                }
            }
        }
    }
}

//Sidebar user panel
.user-panel {
    padding: 10px;
    .clearfix();
    > .image > img {
        width: 45px;
        height: 45px;        
    }
    > .info {
        font-weight: 600;
        padding: 5px 5px 5px 15px;
        font-size: 14px;
        line-height: 1;
    }
    > .info > p {
        margin-bottom: 9px;
    }
    > .info > a {
        text-decoration: none;
        padding-right: 5px;
        margin-top: 3px;
        font-size: 11px;
        font-weight: normal;
        > .fa, > .ion, > .glyphicon {
            margin-right: 3px;
        }
    }
}

/*
 * Off Canvas
 * --------------------------------------------------
 *  Gives us the push menu effect
 */
@media screen and (max-width: @screen-md) {

    .relative {
        position: relative;
    }

    .row-offcanvas-right
    .sidebar-offcanvas {
        right: -@left-side-width;
    }

    .row-offcanvas-left
    .sidebar-offcanvas {
        left: -@left-side-width;
    }

    .row-offcanvas-right.active {
        right: @left-side-width;
    }

    .row-offcanvas-left.active {
        left: @left-side-width;
    }

    .sidebar-offcanvas {
        left: 0;
    }

    body.fixed {
        .sidebar-offcanvas {
            margin-top: 50px;
            left: -@left-side-width;
        }
        .row-offcanvas-left.active {
            .navbar {
                left: @left-side-width!important;
                right: 0;

            }
            .sidebar-offcanvas {
                left: 0px;
            }

        }
    }
}