@import "../common/var";

@include b(time-spinner) {
  &.has-seconds {
    .yk-time-spinner__wrapper {
      width: 33.3%;
    }
  }

  @include e(header){
    height: 48px;
    box-sizing: border-box;
    padding: 12px 37px;
    text-align: center;
    margin-bottom: 12px;
    span{
      color:rgba(44, 40, 54, 1);
      font-size: 16px;
      line-height: 24px;
      font-weight: bold;
    }
  }

  @include e(wrapper) {
    max-height: 260px;
    overflow: auto;
    display: inline-block;
    width: 50%;
    vertical-align: top;
    position: relative;

    & .yk-scrollbar__wrap:not(.yk-scrollbar__wrap--hidden-default) {
      padding-bottom: 15px;
    }

    @include when(arrow) {
      box-sizing: border-box;
      text-align: center;
      overflow: hidden;

      .yk-time-spinner__list {
        transform: translateY(-40px);
      }

      .yk-time-spinner__item:hover:not(.disabled):not(.active) {
        background: rgba(44, 40, 54, 0.04);
        cursor: default;
      }
    }
  }



  @include e(input) {
    &.yk-input {
      width: 70%;

      .yk-input__inner {
        padding: 0;
        text-align: center;
      }
    }
  }

  @include e(list) {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;

    &::after,
    &::before {
      content: '';
      display: block;
      width: 100%;
      height: 105px;
    }
  }

  @include e(arrow) {
    font-size: 12px;
    color: $--color-text-secondary;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: $--index-normal;
    text-align: center;
    height: 30px;
    line-height: 40px;
    cursor: pointer;

    &:hover {
      color: $--color-primary;
    }

    &.el-icon-arrow-up {
      top: 0px;
    }

    &.el-icon-arrow-down {
      bottom: 10px;
    }
  }

  @include e(item) {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    color: $--color-text-regular;

    &:hover:not(.disabled):not(.active) {
      background:rgba(44, 40, 54, 0.04);
      cursor: pointer;
    }

    &.active:not(.disabled) {
      color: #2E63FD;
      font-weight: bold;
      background: rgba(46, 99, 253, 0.06);
    }

    &.disabled {
      color: $--color-text-placeholder;
      cursor: not-allowed;
    }
  }
}

.yk-time-range-picker {
  .yk-time-panel__footer{
    text-align: right;
  }
}

.is-arrow{
  @include e(header) {
    margin-bottom: 0;
  }
  @include e(list) {
    &::after,
    &::before {
      height: 70px;
    }
  }
}
