/* New Sidebar Option */
.sidebar-active {
    padding-left: 50px;
    box-sizing: border-box;

    .is-section-tool {
        width: 40px !important;
        height: 80px;
        left: auto !important;
        right: 0px !important;
        top: 150px !important;
        margin-left: 0 !important;

        .is-section-edit {
            width: 40px;
            height: 40px;
            border-radius: 0;
            line-height: 40px;
        }
        .is-section-duplicate {
            width: 40px;
            height: 40px;
            border-radius: 0;
            line-height: 40px;
        }
        .is-section-remove {
            width: 40px;
            height: 40px;
            border-radius: 0;
            line-height: 40px;
        }

    }

    #rte-toolbar {
        margin: 0 0 0 50px;
    }
}

.is-sidebar {
    z-index: 10003;
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: #111111;
    color: #aaaaaa;

    .is-sidebar-button {
        width: 100%;
        display: table;
        float: left;
        height: 50px;
        background: none;
        text-align: center;
        cursor: pointer;
        font-size: 16px;
        line-height: 50px !important;
        position: relative;

        i {
            display: table-cell;
            vertical-align: middle;
        }
        &:hover {
            background: #222222;
        }
        &.active {
            background: #222222;
        }
    }
}

.is-sidebar-content {
    z-index: 10002;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    background: #f2f2f2;
    color: rgba(0, 0, 0, 0.8);
    padding: 0;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transform: translate3d(-120%, 0, 0);
    transform: translate3d(-120%, 0, 0);
    box-shadow: 1px -2px 20px 0px rgba(0, 0, 0, 0.40);

    &.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    > div {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
    textarea:focus {
        outline: none
    }
    select:focus {
        outline: none
    }

    .is-selectbox {
        background: #dddddd;
        &:hover {
            background: #CCCCCC;
        }
    }

    button {
        margin: 0;
        padding: 19px;
        border: none;
        line-height: 1.7;
        font-family: sans-serif;
        font-size: 11px !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        cursor: pointer;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background: rgba(0, 0, 0, 0.8);
        color: rgba(255, 255, 255, 0.6);

        &.primary {
            background: rgb(63, 63, 63);
            color: rgba(255, 255, 255, 0.6);
            &:hover {
                background: rgb(73, 73, 73);
                color: rgba(255, 255, 255, 0.83);
            }
        }
        &.secondary {
            background: rgb(80, 80, 80);
            color: rgba(255, 255, 255, 0.73);
            &:hover {
                background: rgb(90, 90, 90);
                color: rgba(255, 255, 255, 0.9);
            }
        }
    }
}

.sidebar-sections {
    width: 100%;
    @media all and (min-width: 640px) {
        max-width: 550px;
    }
    @media all and (min-width: 1024px) {
        max-width: 1005px;
    }
    @media all and (min-width: 1440px) {
        max-width: 1005px;
    }
    > div {
        padding: 0 0 0 50px;
        box-sizing: border-box;
    }
}

#divSidebarTypography {
    max-width: 450px;
    > div {
        padding: 0 0 0 50px;
        box-sizing: border-box;
    }
}

#divSidebarSnippets {
    max-width: 316px;

    > div:first-child {
        width: 100%;
        height: 40px;
        position: absolute;
        background: #f3f3f3;
        padding: 0 0 0 50px;
        box-sizing: border-box;

        > #divSnippetCat {
            position: relative;
            width: 100%;
            height: 50px;
            line-height: 50px;
        }
        > #divSnippetCatOptions {
            top: auto;
            width: 262px;
        }
    }

    .is-snippet-list {
        padding: 25px 12px 0 75px;
        border-top: 50px transparent solid;
        div {
            background: #000;
            margin: 0 12px 12px 0;
            img {
                outline: #ddd 1px solid;
                box-shadow: none;
                opacity: 1;
            }
            &:hover img {
                opacity: 0.95;
            }
        }
    }
}

#divSidebarSections {
    width: 100%;
    @media all and (min-width: 640px) {
        max-width: 550px
    }
    @media all and (min-width: 1024px) {
        max-width: 1005px
    }
    @media all and (min-width: 1440px) {
        max-width: 1020px
    }
    > div {
        padding: 0 0 0 50px;
        box-sizing: border-box;
    }
}

#divSidebarSource {
    width: 100%;
    @media all and (min-width: 640px) {
        max-width: 550px;
    }
    @media all and (min-width: 1024px) {
        max-width: 1005px;
    }
    @media all and (min-width: 1440px) {
        max-width: 1005px;
    }
    > div {
        padding: 0 0 0 50px;
        box-sizing: border-box;
    }
    .CodeMirror {
        height: 100% !important;
    }
    .CodeMirror-sizer {
        padding-top: 12px;
    }
}

.svg-icon {
    width: 16px;
    height: 16px;
    fill: #aaaaaa;
}
