<commit_before>@import "mixins";

$prefixCls: $prefixCls-switch;

.#{$prefixCls} {
  &-input {
    position: relative;
    width: $switch-width;
    height: $switch-height;
    border: 1px solid $switch-border-color;
    border-radius: $radius-round;
    background-color: $switch-background;
    vertical-align: middle;
    transition: background-color 0.1s, border 0.1s;
    outline: 0;
    -webkit-appearance: none;

    &:before,
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      height: $switch-height - 2;
      border-radius: $radius-round;
    }

    &:before {
      width: $switch-width - 2;
      background-color: $switch-background;
      transition: transform 0.35s cubic-bezier(0.45, 1, 0.4, 1), -webkit-transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);
    }

    &:after {
      width: $switch-height - 2;
      background-color: #fff;
      box-shadow: 0 r(1) r(3) rgba(0, 0, 0, 0.4);
      transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35), -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
    }

    &:checked {
      border: 1px solid $theme-primary;
      background-color: $theme-primary;

      &:before {
        transform: scale(0);
      }

      &:after {
        transform: translateX($switch-width - $switch-height);
      }
    }
  }

  &-small {
    @include switch-size($switch-width-sm, $switch-height-sm, $radius-round );
  }

  &.disabled {
    cursor: not-allowed;
    opacity: $opacity-disabled;
  }

  &.theme-primary {
    @include switch-theme($theme-primary);
  }

  &.theme-success {
    @include switch-theme($theme-success);
  }

  &.theme-warning {
    @include switch-theme($theme-warning);
  }

  &.theme-error {
    @include switch-theme($theme-error);
  }
}<commit_msg>chore: hide switch size style<commit_after>@import "mixins";

$prefixCls: $prefixCls-switch;

.#{$prefixCls} {
  &-input {
    position: relative;
    width: $switch-width;
    height: $switch-height;
    border: 1px solid $switch-border-color;
    border-radius: $radius-round;
    background-color: $switch-background;
    vertical-align: middle;
    transition: background-color 0.1s, border 0.1s;
    outline: 0;
    -webkit-appearance: none;

    &:before,
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      height: $switch-height - 2;
      border-radius: $radius-round;
    }

    &:before {
      width: $switch-width - 2;
      background-color: $switch-background;
      transition: transform 0.35s cubic-bezier(0.45, 1, 0.4, 1), -webkit-transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);
    }

    &:after {
      width: $switch-height - 2;
      background-color: #fff;
      box-shadow: 0 r(1) r(3) rgba(0, 0, 0, 0.4);
      transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35), -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
    }

    &:checked {
      border: 1px solid $theme-primary;
      background-color: $theme-primary;

      &:before {
        transform: scale(0);
      }

      &:after {
        transform: translateX($switch-width - $switch-height);
      }
    }
  }

  // &-small {
  //   @include switch-size($switch-width-sm, $switch-height-sm, $radius-round );
  // }

  &.disabled {
    cursor: not-allowed;
    opacity: $opacity-disabled;
  }

  &.theme-primary {
    @include switch-theme($theme-primary);
  }

  &.theme-success {
    @include switch-theme($theme-success);
  }

  &.theme-warning {
    @include switch-theme($theme-warning);
  }

  &.theme-error {
    @include switch-theme($theme-error);
  }
}
{'fraction_non_alphanumeric': 0.16448650153075425, 'fraction_numerical': 0.03729473977177846, 'mean_word_length': 2.3969754253308126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1673530', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1276, 'n_words': 258}