<commit_before>$prefixCls: $prefixCls-collapse;

.#{$prefixCls} {
  &-item {
    &-title {
      position: relative;
      height: $collapse-height;
      line-height: $collapse-height;
      padding: 0 $collapse-padding;
      @include onepx(bottom);
    }

    &-content {
      position: relative;
      height: 0;
      overflow: hidden;
      @include onepx(bottom);

      &-inner {
        padding: $padding-v-lg $collapse-padding;
      }
    }

    &-content-anim {
      transition: all 0.15s ease-out;
    }

    &-arrow {
      position: absolute;
      width: r(10);
      height: r(10);
      top: r(17);
      right: $collapse-padding;
      border-right: r(2) solid $collapse-arrow-color;
      border-bottom: r(2) solid $collapse-arrow-color;
      transform: rotate(45deg);
      transition: transform 0.15s ease-out;

      &-disabled {
        border-right: r(2) solid $collapse-arrow-disabled-color;
        border-bottom: r(2) solid $collapse-arrow-disabled-color;
      }
    }

    &.active {
      .#{$prefixCls}-item-content {
        height: auto;
      }

      .#{$prefixCls}-item-arrow {
        transform: rotate(-135deg);
      }
    }

    @media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
      &-title,
      &-content {
        &:after {
          width: 200%;
          height: 200%;
          transform: scale(0.5);
        }
      }
    }
  }
}
<commit_msg>perf: adjust the rotate origin of arrow<commit_after>$prefixCls: $prefixCls-collapse;

.#{$prefixCls} {
  &-item {
    &-title {
      position: relative;
      height: $collapse-height;
      line-height: $collapse-height;
      padding: 0 $collapse-padding;
      @include onepx(bottom);
    }

    &-content {
      position: relative;
      height: 0;
      overflow: hidden;
      @include onepx(bottom);

      &-inner {
        padding: $padding-v-lg $collapse-padding;
      }
    }

    &-content-anim {
      transition: all 0.15s ease-out;
    }

    &-arrow {
      position: absolute;
      width: r(10);
      height: r(10);
      top: r(17);
      right: $collapse-padding;
      border-right: r(2) solid $collapse-arrow-color;
      border-bottom: r(2) solid $collapse-arrow-color;
      transform: rotate(45deg);
      transform-origin: 50% 50%;
      transition: transform 0.15s ease-out;

      &-disabled {
        border-right: r(2) solid $collapse-arrow-disabled-color;
        border-bottom: r(2) solid $collapse-arrow-disabled-color;
      }
    }

    &.active {
      .#{$prefixCls}-item-content {
        height: auto;
      }

      .#{$prefixCls}-item-arrow {
        transform: rotate(-135deg);
        transform-origin: 60% 75%;
      }
    }

    @media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
      &-title,
      &-content {
        &:after {
          width: 200%;
          height: 200%;
          transform: scale(0.5);
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.1479835953520164, 'fraction_numerical': 0.025290498974709502, 'mean_word_length': 1.8611925708699901, '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': '4998443', 'n_tokens_mistral': 1041, 'n_tokens_neox': 941, 'n_words': 190}