docs/docs/_sass/components/_sidebar.scss
// SIDEBAR
// -----------------------------------------------
// -----------------------------------------------

#wrapper {
    padding-left: $sidebar-width;
    transition: padding 0.4s ease-in-out;

    &.toggled {
        padding-left: 0;
    }
}

#sidebar-wrapper {
    left: 0;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    transition: left 0.4s ease-in-out;
    width: $sidebar-width;
    z-index: 11;

    .sidebar-toggle {
        display: none;
    }
}

#wrapper.toggled {
    #sidebar-wrapper {
        left: -$sidebar-width;
    }
}

.toggle-container {
    display: flex;
    justify-content: end;
    margin-top: ($base-point-grid * 1);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: $brand-tertiary;
    padding: 28px 32px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;

    .menu-icon {
        position: absolute;
        top: 37%;
        left: 38%;
    }

    &:hover {
        color: $brand-primary;
        cursor: pointer;
        transform: scaleX(1.5);
    }
}

.sidebar-brand {
    padding: 60px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;

    .brand-title {
        font-family: $base-font-family;
        font-size: 18px;
        font-weight: $font-medium;
        text-transform: uppercase;
        letter-spacing: 1px;
        line-height: 23px;
        color: $white;
    }
}

.sidebar-nav {
    font-size: $base-docs-font-size;

    .sidebar-nav-item {
        > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            @include links($white, $white, $white, $white);
            padding: ($base-point-grid * 1.5) ($base-point-grid * 4);

            &:hover {
                text-decoration: none;

            }

            .fa {
                  margin-left: ($base-point-grid * 2);
                  font-size: 18px;
                  transition: all .3s;
                  -moz-osx-font-smoothing: unset;
            }
        }

        &.active {
            > a {
                padding-left: 28px;
                .fa {
                     @include rotate(90deg);
                }
            }
        }


        ul {
            display: none;


            li {
                a {
                    display: flex;
                    align-items: flex-start;
                    @include links($white, $white, rgba($white, 0.5), rgba($white, 0.5));
                    padding: $base-point-grid ($base-point-grid * 2);
                    font-size: 15px;


                    &.active {
                        color: $gray-primary;
                    }

                    &:hover {
                        text-decoration: none;
                    }

                }
            }
        }
    }
}

@include bp(medium) {
    #wrapper {
        padding-left: 0;
        transition: all 0.4s ease-in-out;
    }

    #sidebar-wrapper {
        left: -100%;
    }

    #wrapper.toggled {
        #sidebar-wrapper {
            left: 0;
            top: 0;
            width: 100%;

            .sidebar-toggle {
                display: block;
                opacity: 0.7;
                transition: opacity 0.3s ease, transform 0.3s ease;

                &:hover {
                    opacity: 1;
                    transform: rotate(-180deg);
                }
            }
        }

        #doc-wrapper {
            height: 100vh;
            overflow: hidden;
        }
    }
}
