@import "common/var";
@import 'mixins/mixins';
@import "./date-picker/picker.scss";
@import "./date-picker/date-picker.scss";
@import "./scrollbar.scss";
@import "./popper";

@include b(time-select){
  .el-picker-panel__content {
    max-height: 200px;
    margin: 0;
  }
  .el-scrollbar__view{
    padding: 6px 0;
  }
  .time-select-item {
    padding: 0 10px;
    font-size: 14px;
    height: 34px;
    line-height: 34px;
  }
  .time-select-item.selected:not(.disabled) {
    color: $--color-primary;
    &::after {
      position: absolute;
      right: 10px;
      font-family: 'element-icons';
      content: "\e7f0";
      font-size: 12px;
      font-weight: $--font-weight-strengthen;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  }
  
  .time-select-item.disabled {
    color: $--datepicker-border-color;
    cursor: not-allowed;
  }
  
  .time-select-item:not(.disabled):hover {
    background-color:$--select-option-hover-background;
    cursor: pointer;
  }
}

@include b(time-select-panel){
  @include m(medium) {
    .time-select-item{
      height: 32px;
      line-height: 32px;
    }
  }
  @include m(small) {
    .time-select-item{
      font-size: 12px;
      height: 30px;
      line-height: 30px;
    }
  }
  @include m(mini) {
    .time-select-item{
      font-size: 12px;
      height: 28px;
      line-height: 28px;
    }
  }
}