$types: ( inf, scs, dgr, wrn );

.ubx-toast-slice {
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0 0 15px 0 rgba(color(blk), 0.5);
    overflow: hidden;

    &__bar {
        width: 0;
        height: 100%;
        animation-name: fill;
        animation-fill-mode: forwards;
        animation-timing-function: linear;
        animation-delay: 1000ms;
    }
    &__close {
        color: color(lte);
        transition: 0.5s ease;

        &:hover {
            color: rgba(color(drk), 0.75);
        }
    }
}

@keyframes fill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
