@import '../style/var';

.vm-stepper {
  display: inline-block;
  font-size: 0;
  height: 25px;
  box-sizing: border-box;
  border: 1px solid @border-color;
  &-minus,
  &-plus {
    -webkit-appearance: none;
    width: 23px;
    height: 23px;
    box-sizing: border-box;
    background-color: @white;
    border: none;
    border-width: 0;
    position: relative;
    padding: 5px;
    vertical-align: top;

    &::before {
      width: 9px;
      height: 1px;
    }

    &::after {
      width: 1px;
      height: 9px;
    }

    &::before,
    &::after {
      content: '';
      position: absolute;
      margin: auto;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #6c6c6c;
    }

    &:active {
      background-color: @active-color;
    }

    &-disabled {
      background-color: @background-color;

      &::before,
      &::after {
        background-color: @gray;
      }
    }

    &-disabled:active {
      background-color: @background-color;
    }
  }

  &-minus {
    // border-radius: 2px 0 0 2px;
    border-right: 1px solid @border-color;
    &::after {
      display: none;
    }
  }

  &-plus {
    border-left: 1px solid @border-color;
  }

  &-input {
    vertical-align: top;
    width: 37px;
    height: 23px;
    line-height: 23px;
    padding: 1px;
    border: none;
    border-radius: 0;
    border-width: 0;
    box-sizing: border-box;
    color: @gray-darker;
    font-size: 14px;
    text-align: center;
    -webkit-appearance: none;
    &[disabled] {
      color: @gray;
      background-color: @background-color;
    }
  }

  input[type='number']::-webkit-inner-spin-button,
  input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}
