@import "../common/var";
@import "../mixins/mixins";

@include b(time-spinner) {
  &.has-seconds {
    .#{$namespace}-time-spinner_wrap {
      width: 33.3%;
    }
  }

  @include e(wrap) {
    max-height: 190px;
    overflow: auto;
    display: inline-block;
    width: 50%;
    vertical-align: top;
    position: relative;

    & .#{$namespace}-scrollbar_wrap:not(.#{$namespace}-scrollbar_wrap-hidden-default) {
      padding-bottom: 15px;
    }

    @include pf(arrow) {
      box-sizing: border-box;
      text-align: center;
      overflow: hidden;

      .#{$namespace}-time-spinner_list {
        transform: translateY(-32px);
      }

      .#{$namespace}-time-spinner_item:hover:not(.disabled):not(.active) {
        background: $color-white;
        cursor: default;
      }
    }
  }

  @include e(arrow) {
    font-size: 12px;
    color: $text-color-default;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: $z-index-normal;
    text-align: center;
    height: 30px;
    line-height: 30px;
    cursor: pointer;

    &:hover {
      color: $info-color;
    }

    &.#{$namespace}-icon-arrow-up-bold {
      top: 10px;
    }
    &.#{$namespace}-icon-arrow-down-bold {
      bottom: 10px;
    }
  }

  @include e(input) {
    &.#{$namespace}input {
      width: 70%;

      .#{$namespace}-input_inner {
        padding: 0;
        text-align: center;
      }
    }
  }

  @include e(list) {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    overflow: hidden;

    &::before, &::after {
      content: '';
      display: block;
      width: 100%;
      height: 80px;
    }
  }

  @include e(item) {
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: $text-color-gradual-3;

    &:hover:not(.disabled):not(.active) {
      background: $bg-color;
      cursor: pointer;
    }

    &.active:not(.disabled) {
      color: $text-color-default;
      font-weight: bold;
    }

    &.disabled {
      color: $text-color-placeholder;
      cursor: not-allowed;
    }

  }
}
