Lambda-School-Labs/kansha-fe

View on GitHub
src/SCSS/components/_mostRecog.scss

Summary

Maintainability
Test Coverage
.most-recog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    .recog-list-container {
        overflow: auto;
        height: 36rem;
        width: 100%;
    }

    .most-recog-title-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 2rem 0rem;

        h3 {
            width: 20rem;
            font-size: 2.4rem;
        }
        .custom-select {
            width: 6rem;
            border: none;
            margin: 0;
            padding-left: 5px;
            font-weight: 300;

            .select-selected {
                padding: 0;
                height: 100%;
                display: flex;
                align-items: center;

                &:after {
                    border: none;
                    content: '\2228';
                    color: $color-black;
                    font-size: 1.5rem;
                    font-weight: 100;
                    top: 25%;
                    right: -10px;
                    transition: 0.5s ease;
                    width: 20px;
                    height: fit-content;
                }
            }

            .select-selected.select-arrow-active:after {
                transform: rotateX(180deg);
            }

            .placeholder-div {
                color: $color-black;
                font-style: normal;
            }

            .select-items {
                width: 6rem;

                > div {
                    padding: 5px;
                    height: 3rem;
                }
            }
        }

        .limit-dropdown-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-left: 1rem;
            label {
                font-weight: 300;
            }

            .custom-select .dashboard {
                width: 8rem;
            }
            select {
                label {
                    font-size: 1.8rem;
                    font-weight: 300;
                }
                .dropdown-view {
                    background-color: #fff;
                    font-weight: 300;
                    border: none;
                    color: black;
                    width: 8rem;
                    font-size: 1.8rem;
                }
            }
        }
    }
    li:nth-child(2n) {
        background-color: #f9f9f9;
    }
    .most-recog-individual {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        padding: 0.8rem;
        .most-rec-profile-pic {
            min-width: 50px;
            height: 50px;
            border-radius: 100%;
        }

        .most-rec-name-to-heart {
            width: 100%;
            display: flex;
            justify-content: space-between;
        }

        .most-recog-name {
            width: 10rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-left: 2rem;
        }
        .most-recog-progress {
            width: 25rem;
            display: flex;
            justify-content: center;
            align-items: center;

            progress {
                border: 0;
                border-radius: 5px;
                width: 100px;
                background: transparent;
            }

            progress::-webkit-progress-bar {
                background-color: transparent;
                border-radius: 2px;
            }

            progress::-webkit-progress-value {
                background-color: $color-primary;
                border-radius: 2px;
                transition: all 0.3s ease;
            }

            progress::-moz-progress-bar {
                background-color: $color-primary;
                border-radius: 2px;
                transition: all 0.3s ease;
            }
        }
        .most-recog-heart {
            display: flex;
            align-items: center;
            width: 5rem;
            p {
                margin-right: 0.3rem;
            }
            .heart-img {
                width: 1.8rem;
                height: 1.8rem;
            }
        }
    }
}

.reports .container-time-dropdown .custom-select .placeholder-div {
    display: block !important;
}