@import '../common/color.css';

:root {

}

.my-upload {
    
}

.my-upload__list {
    margin-top: 8px;
}

.my-upload__item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-height: 0px;
    padding: 0 2px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 22px;
    color: var(--primary-text-color);
    animation: new-file-anim 0.24s forwards;
    overflow: hidden;
    transition: all 0.24s;

    &:hover {
        background-color: var(--background-blue-dark);

        & .icon-x {
            opacity: 1;
        }
    }
}

.my-upload__name {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    & .icon {
        margin-right: 8px;
    }
}

.my-upload__item .icon-x {
    border-radius: 50%;
    color: var(--secondary-text-color);
    cursor: pointer;
    opacity: 0;
    transition: all 0.24s;

    &:hover {
        background: var(--error-color);
        color: white;
    }
}

@keyframes new-file-anim {
    0% {
        
        opacity: 0;
    }

    100% {
        max-height: 22px;
        opacity: 1;
    }
}