@import "../vars.less";

.hive-select {
  cursor: pointer;
}

.hive-select-input {
  cursor: pointer;
  .hive-input__input-icon {
    font-size: 14px;
  }
  .hive-input__input-icon .hive-icon--carret_down {
    transition: transform 0.3s;
  }

  &--popupshow {
    .hive-input__input-icon .hive-icon--carret_down {
      transform: rotate(180deg);
    }
  }
}

.hive-select-options {
  max-height: 400px;
  overflow-y: auto;
  outline: none;
}

.hive-select-option {
  padding: 0 10px;
  line-height: 48px;
  cursor: pointer;

  .hive-checkbox {
    margin-right: 8px;
  }

  &--selected {
    color: @primary-color;
  }
  &:hover:not(.hive-select-option--disabled), 
  &:focus:not(.hive-select-option--disabled), 
  .hive-select-option--focused:not(.hive-select-option--disabled) {
    background: @primary-color-ligher-7;
  }
  // 禁用
  &--disabled {
    color: @disabled-color;
    cursor: not-allowed;
  }
}

.hive-select__popup {
  &.hive-popup {
    padding: 0;
  }
  &--size-small {
    .hive-select-option {
      line-height: 40px;
    }
  }
}
