// size

@mixin slider-size($height,$handle-size,$handle-border-width, $mark-font-size:$slider-mark-font-size) {

  .#{$slider-prefix-cls}__wrap {
    //height: $handle-size + ($handle-border-width * 2);
    margin: ($handle-size * 2) 0;
  }
  .#{$slider-prefix-cls}__track,
  .#{$slider-prefix-cls}__step {
    height: $height;
  }

  .#{$slider-prefix-cls}__handle{
    margin-top: -#{($handle-size + $handle-border-width) /2};
    //@if($height< $handle-size/2) {
    //  margin-top: -#{$handle-size/2 + $handle-border-width - $slider-height/2 + 2};
    //} @else {
    //  margin-top: -#{$handle-size/2 + $handle-border-width - $slider-height/2};
    //}
    &-button {
      width: $handle-size;
      height: $handle-size;
      border: $handle-border-width solid $slider-handle-border-color;
    }
  }

  .#{$slider-prefix-cls}__mark{
    font-size: $mark-font-size;
  }
}

@mixin slider-disable($prefix: &){
  @at-root {
    #{$prefix}--disabled,
    #{$prefix}[disabled],
    #{$prefix}:disabled {
      @content;
      cursor: $cursor-disabled;
      &:hover,
      &:focus,
      &:active {
        @content;
      }
    }
  }
}

