src/components/select/select.scss
@import '../../styles/config';
@import '../../styles/theme';

.select {
    position: relative;

    &__focus-receiver {
        width: 0;
        height: 0;
        display: block;
        border: none;
        background: transparent;
    }

    &__value {
        position: relative;
        padding: 8px 20px 8px 0;
        font-size: 15px;
        transition: border .2s;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        @include themify($themes) {      
            border-bottom: 2px solid themed('border');;
        }
    }
    
    &__value-arrow {
        // right most, vertically centered
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    
    &__options {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
        overflow: auto;
        max-height: 320px;
        background-color: $white-color;
        box-shadow: 0 0 4px rgba(#000, .2);
        transition: opacity .2s, transform .2s, visibility .2s;
    
        &.to-top {
            top: auto;
            bottom: 0;
        }
    
        &:not(.opened) {
            transform: translateY(-30%);
            opacity: 0;
            visibility: hidden;
            transition: opacity .2s, transform .2s .2s, visibility .2s;
        }
    }
    
    &__search {
        width: 100%;
        padding: 10px 12px;
        color: $argo-color-gray-5;
        border: 0;
        background: transparent;
    
        &::placeholder {
            color: $argo-color-gray-4;
        }
    }
    
    &__option {
        padding: 10px 12px;
        color: $argo-color-gray-6;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    
        &:hover {
            background-color: $argo-color-gray-1;
        }
    
        &.selected {
            background-color: $argo-color-gray-2;
        }
    }
    
    &__empty {
        padding: 10px 12px;
        color: $argo-color-gray-4;
    }
    
}
