@import "mixins/mixins";
@import "common/var";

@include b(select-dropdown) {
  @include e(item) {
    font-size: $--select-font-size;
    padding: 0 12px;
    position: relative;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    color: $--select-option-color;
    // height: $--select-option-height;
    line-height: $--select-option-height;
    box-sizing: border-box;
    cursor: pointer;

    @include when(disabled) {
      color: $--select-option-disabled-color;
      cursor: not-allowed;

      &:hover {
        background-color: $--color-white;
        color: $--select-option-disabled-color;
      }
    }

    &.hover, &:hover {
      background-color: $--background-color-hover;
    }

    &.selected {
      color: $--select-option-selected-font-color;
      background-color: $--background-color-active;
    }
  }
}
