// cd builder-service/src/main/resources/templates/book/assets
// lessc style.less style.css && lessc sidemenu.less sidemenu.css

// CORE PALETTE
@MYRTLE: #197278; // green with a hint of blue
@MULBERRY: #7D4664; // purple
@DEEP_SEA: #506E8C; // pale dark blue
@RUST: #BE1128; // dull red
@VERMILION: #F05A28; // dull orange
@SUN: #F0AD28; // dull yellow
@SKY: #6EB0DC; // twitter blue
// SHADES
@ONYX: #373737; // darkest
@SLATE: #595959; // darker
@BETON: #909090; // darkish
@PEARL: #E9E9E9; // silver
// SERVICES
@KHAKI: #828C64; // army dull green
@SAND: #B4AA96; // dull grayish tan
@NAVY: #45556A; // dark dull blue


.sidebar {
    z-index: 999999;
    position: fixed;
    top: -1px;
    bottom: -1px;
    padding: 0;
    width: auto;
    /*background-color: rgba(0, 0, 0, 0.8);*/
    background-color: @ONYX;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 0px solid @ONYX;

    > .row {
        margin: 0;
        > .col-xs-12,
        > .col-sm-12,
        > .col-md-12,
        > .col-lg-12 {
            padding: 0;
            position: absolute;
            bottom: 0;
            top: 0;
            overflow: auto;
            z-index: 1;
        }
    }
    &.opened{
        > .row {
            > .col-xs-12,
            > .col-sm-12,
            > .col-md-12,
            > .col-lg-12 {
                -webkit-box-shadow: 2px 0px 15px rgba(0, 0, 0, 0.75);
                box-shadow: 2px 0px 15px rgba(0, 0, 0, 0.75);
            }
        }
    }
    &.closed{
        > .row {
            > .col-xs-12,
            > .col-sm-12,
            > .col-md-12,
            > .col-lg-12 {
                -webkit-box-shadow: 2px 0px 15px rgba(0, 0, 0, 0);
                box-shadow: 2px 0px 15px rgba(0, 0, 0, 0);
            }
        }
    }

    h4{
        background-color: @ONYX;
        color: #FFFFFF;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 8px;
    }
    img.brand-logo{
        max-width: 100%;
        max-height: 53px;
        margin: 0 auto;
        padding: 14px;
    }
    &.sidebar-left {
        left: 0;
        /* THis was a real issue with making the sidebar hid away.*/
        /*right: 20px;*/
        > .toggler {
            -webkit-border-top-right-radius: 4px;
            -webkit-border-bottom-right-radius: 4px;
            -moz-border-radius-topright: 4px;
            -moz-border-radius-bottomright: 4px;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            border-left: 1px  @ONYX;
            right: -51px;
            padding: 12px 12px;
            > span {
                margin: 15px 2px;
                &.icon-bar {
                    margin: 5px 2px;
                    display: block;
                    width: 22px;
                    height: 2px;
                    border-radius: 1px;
                    background-color: #FFF;
                }
            }
        }
    }

    &.sidebar-right {
        right: 0;
        left: 20px;
        > .toggler {
            -webkit-border-top-left-radius: 4px;
            -webkit-border-bottom-left-radius: 4px;
            -moz-border-radius-topleft: 4px;
            -moz-border-radius-bottomleft: 4px;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
            border-right: 1px solid #fff;
            -webkit-box-shadow: -1px 0px 8px rgba(0, 0, 0, .175);
            box-shadow: -1px 0px 8px rgba(0, 0, 0, .175);
            left: -20px;
            > span {
                margin: 15px 2px;
            }
        }
    }

    /*Native BootStrap Hack*/


    .list-group {
        margin-bottom: 0;
        .collapse a {
            padding-left: 25px;
        }
    }


    a.list-group-item{
        color: #FFFFFF;
        background-color: @ONYX;
        border-color: @ONYX;
        font-size: 1em;
        padding: 13px;
        &.active{
            background-color: @MYRTLE;
            border-color: @MYRTLE;
            &:focus, &:hover{
                color: #FFFFFF;
                text-decoration: none;
                background-color: @MYRTLE;
                border-color: @MYRTLE;
            }
        }
        border-left: 0;
        border-right: 0;
        margin-bottom: 0;
        text-transform: uppercase;
        // margin-top: -1px;
        &:last-child,
        &:first-child {
            border-radius: 0;
        }
        .glyphicon {
            margin-right: 5px;
        }
        &:focus, &:hover{
            color: #FFFFFF;
            text-decoration: none;
            background-color: transparent;
            border-color: @BETON;
        }
        span{
            vertical-align: middle;
            &.count{
                color: @BETON;
                font-size :  1.5em;
                padding-right: 10px;
            }
        }
    }
}

.toggler {
    -webkit-background-clip: padding-box;
    position: absolute;
    top: 0%;
    cursor: pointer;
    background-clip: padding-box;
    border: 1px solid @ONYX;
    width: 50px;
    height: 51px;
    position: absolute;
    top: 0%;
    cursor: pointer;
    background-color:  @ONYX;
}








@media (min-width: 400px) {
    .sidebar {
        width: 80%;
        &.sidebar-left {
            left: 0;
            right: auto;
        }

        &.sidebar-right {
            right: 0;
            left: auto;
        }
    }
}

@media (min-width: 528px) {
    .sidebar {
        width: 300px;
        &.sidebar-left {
            left: 0;
            right: auto;
        }
        &.sidebar-right {
            right: 0;
            left: auto;
        }
    }


}

@media (min-width: 768px) {
    .sidebar {
        width: 230px;
        &.sidebar-left {
            left: 0;
            right: auto;
        }
        &.sidebar-right {
            right: 0;
            left: auto;
        }
    }
}

// @media (min-width: 992px) {
//     .sidebar {
//         width: 230px;
//         &.sidebar-left {
//             left: 0;
//             right: auto;
//         }
//         &.sidebar-right {
//             right: 0;
//             left: auto;
//         }
//     }
// }

// @media (min-width: 1200px) {
//     .sidebar {
//         width: 230px;
//         &.sidebar-left {
//             left: 0;
//             right: auto;
//         }
//         &.sidebar-right {
//             right: 0;
//             left: auto;
//         }
//     }
// }