src/components/select/style.scss
@import 'mo/style/common';

#{$select} {
    align-items: center;
    border: 1px solid;
    box-sizing: border-box;
    display: flex;
    font: inherit;
    height: 26px;
    justify-content: left;
    position: relative;
    width: initial;

    &--active {
        border: 1px solid;
        border-color: var(--focusBorder);
    }

    &__input {
        appearance: none;
        background: var(--input-background);
        border: 0;
        color: var(--input-foreground);
        cursor: default;
        font: inherit;
        font-size: inherit;
        height: 100%;
        margin: 0;
        outline: 0;
        padding: 0 8px;
        width: 100%;

        &:focus {
            outline: none;
        }

        &::placeholder {
            color: var(--input-placeholderForeground);
        }

        &:focus,
        &:active {
            border-color: var(--focusBorder);
            outline-color: var(--focusBorder);
            outline-offset: -1;
            outline-style: solid;
        }
    }

    &__arrow {
        bottom: 0;
        font-size: 14px;
        height: 14px;
        line-height: 14px;
        margin: auto;
        pointer-events: none;
        position: absolute;
        right: 6px;
        top: 0;
        width: 14px;
    }

    &__container {
        align-items: center;
        appearance: none;
        background-color: var(--dropdown-background);
        border-top: 0;
        box-sizing: border-box;
        color: var(--dropdown-foreground);
        display: flex;
        flex-direction: column;
        font-size: 13px;
    }

    &__options,
    &__descriptor {
        text-indent: 6px;
        width: 100%;
    }

    &__descriptor {
        border-top: 1px solid;
        border-top-color: var(--dropdown-border);
        height: 26px;
        line-height: 26px;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
    }

    &__option {
        cursor: pointer;
        height: 20px;
        line-height: 20px;
        width: 100%;

        &:hover {
            background-color: var(--button-hoverBackground);
        }

        &--disabled {
            cursor: not-allowed;
        }
    }
}
