.#{$input-number-prefix-cls} {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: $input-number-width;
  height: $input-number-height;
  padding: 0 $input-number-control-width;
  font-size: $input-number-font-size;
  vertical-align: middle;

  //input
  .input-number__input{
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 5px;
    line-height: 1;
    color: $input-number-color;
    text-align: center;
    border-radius: 0;
    outline: none;
  }

  //control
  .input-number__control {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: $input-number-control-width;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    background: $input-number-control-bg;
    border-top: 1px solid $input-border-color;
    border-bottom: 1px solid $input-border-color;
    outline: none;
    &::before{
      @extend %aid-icon;
    }
  }
  .input-number--decrease{
    left: 0;
    border-right: 0;
    border-left: 1px solid $input-border-color;
    border-radius: $border-radius 0 0 $border-radius;
    &::before{
      content: "\F58A";
    }
  }
  .input-number--increase {
    right: 0;
    border-right: 1px solid $input-border-color;
    border-left: 0;
    border-radius: 0 $border-radius  $border-radius 0;
    &::before{
      content: "\f666";
    }
  }

  //size
  &--lg {
    @include input-number-size($input-lg-number-width, $input-lg-number-height, $input-lg-number-font-size);
  }
  &--sm {
    @include input-number-size($input-sm-number-width, $input-sm-number-height, $input-sm-number-font-size);
  }

  //disabled
  &--disabled,
  &[disabled],
  &:disabled{
    .input-number__control {
      cursor: $cursor-disabled;
      filter: alpha(opacity=45);
      opacity: .45;
    }
  }
}
