@import "../common/var";

@include b(year-month-spinner) {
  display: flex;
  // width: $--size-50;
  white-space: nowrap;
  justify-content: space-between;
  margin: 0;

  @include e(wrapper) {
    max-height: 244px;
    overflow: auto;
    display: inline-block;
    width: 50%;
    vertical-align: top;
    position: relative;
    &:first-child{
      // box-shadow: inset -1px 0px 0px 0px $--border-color-base;
    }

    .el-scrollbar__bar {
      display: none;
    }
    .el-scrollbar__wrap {
      overflow-x: hidden;
      .el-time-spinner__item {
        width: calc(100% - 8px)
      }
    }

    & .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default) {
      padding-bottom: 15px;
    }
  }

  @include e(input) {
    &.el-input {
      width: 70%;

      .el-input__inner {
        padding: 0;
        text-align: center;
      }
    }
  }

  @include e(list) {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;

    &::after{
      content: '';
      display: block;
      width: 100%;
      // 如果没调整好会导致年月最后一个的位置不正常
      height: 183px;
    }
  }

  @include e(item) {
    height: 24px;
    line-height: 24px;
    font-size: $--font-size-body-3;
    border-radius: $--border-radius-small;
    width: 91px;
    margin: 8px 4px;
    color: $--datepicker-font-color;

    &:hover:not(.disabled):not(.active) {
      background: $--color-secondary;
      cursor: pointer;
    }

    &.active:not(.disabled) {
      color: $--color-white;
      background: $--color-primary;
    }

    &.disabled {
      color: $--color-secondary-active;
      cursor: not-allowed;
    }
  }
}
