Lambda-School-Labs/kansha-fe

View on GitHub
src/SCSS/components/_landing-sidebar.scss

Summary

Maintainability
Test Coverage
.nav {
    .side-nav-landing {
        height: 413px;
        width: 200px;
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        background-color: $color-primary-nav;
        overflow-x: hidden;
        transition: 1s;
        color: $color-white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 1.5rem 1.5rem;
        border-radius: 5px;

        .title-nav {
            display: flex;
            align-items: center;
            margin-top: 5rem;
            margin-left: 1.5rem;

            h3 {
                font-size: 3.6rem;
                font-weight: normal;
            }
        }

        nav {
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            margin-top: 8.4rem;
            margin-left: 1.5rem;
            a {
                font-size: 2.4rem;
                font-weight: normal;
                margin-bottom: 3rem;
                cursor: pointer;
                transition: all 300ms ease;
                &:hover {
                    color: $color-primary;
                }
            }
            .login {
                margin-top: 5rem;
                font-size: 1.8rem;
            }
        }
    }

    .hidden {
        height: 413px;
        width: 0px;
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        background-color: $color-primary-nav;
        overflow-x: hidden;
        transition: 1s;
        color: $color-white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0 1.5rem 0rem;
        border-radius: 5px;
        .title-nav {
            display: flex;
            align-items: center;
            margin-top: 5rem;
            margin-left: 1.5rem;

            h3 {
                font-size: 3.6rem;
                font-weight: normal;
            }
        }

        nav {
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            margin-top: 8.4rem;
            margin-left: 1.5rem;
            a {
                font-size: 2.4rem;
                font-weight: normal;
                margin-bottom: 3rem;

                &:hover {
                    color: $color-primary;
                }
            }
            .login {
                margin-top: 5rem;
                font-size: 1.8rem;
            }
        }
    }
}

.nav-hamburger-landing {
    z-index: 3;
    background-color: $color-primary-nav;
    cursor: pointer;

    > button {
        padding: 5px;
    }
}

.hamburger-landing {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}