<commit_before>@import "../lib.less";

.@{veui-prefix}-collapse {
  border: 1px solid @dls-collapse-border-color;
  border-radius: @dls-collapse-border-radius-m;
  line-height: @dls-line-height-1;

  &-header {
    position: relative;
    display: flex;
    align-items: center;
    margin: -1px;
    padding: @dls-collapse-header-padding-y @dls-collapse-header-padding-x;
    border: 1px solid @dls-collapse-border-color;
    background-color: @dls-collapse-header-background-color;
    font-size: @dls-collapse-header-font-size-m;
    color: @dls-collapse-header-font-color;
    .border-top-radius(inherit);
    line-height: @dls-collapse-header-line-height;
    .veui-transition(color, background-color, border-color, border-radius);
    outline: none;
    cursor: pointer;

    &:hover {
      background-color: @dls-collapse-header-background-color-hover;
    }

    &[data-focus-visible-added] {
      border-color: @dls-collapse-header-border-color-focus !important;
      box-shadow: @dls-collapse-header-shadow-focus;
      z-index: 1;
    }

    &:active {
      background-color: @dls-collapse-header-background-color-active;
    }
  }

  &-collapsed > &-header {
    .border-bottom-radius(inherit);
  }

  &-toggle {
    .dls-icon-size(@dls-collapse-icon-size-aux);
    color: @dls-collapse-icon-color-aux;
    margin-right: @dls-collapse-header-content-spacing;
    .veui-transition(transform);
  }

  &-toggle-end {
    margin-right: 0;
    margin-left: @dls-collapse-header-content-spacing;
    order: 3;
  }

  &-title-after {
    margin-left: auto;
  }

  &-expanded > &-header &-toggle {
    transform: rotateZ(90deg);
  }

  &.@{veui-prefix}-disabled {
    & > .@{veui-prefix}-collapse {
      &-header {
        background-color: @dls-collapse-header-background-color-disabled;
        color: @dls-collapse-header-font-color-disabled;
        cursor: not-allowed;
      }

      &-toggle {
        color: @dls-collapse-icon-color-aux-disabled;
      }
    }
  }

  &-body {
    background-color: @dls-collapse-body-background-color;
    overflow: hidden;
    will-change: height;
    .veui-transition(height);
    .border-bottom-radius(inherit);
    color: @dls-collapse-body-font-color;
    font-size: @dls-collapse-body-font-size-m;
    line-height: @dls-collapse-body-line-height;
    margin: -1px;
    border: inherit;
  }

  &-content {
    padding: @dls-collapse-body-padding-y @dls-collapse-body-padding-x;
  }

  &[ui~="s"] {
    border-radius: @dls-collapse-border-radius-s;

    & > .@{veui-prefix}-collapse {
      &-header {
        font-size: @dls-collapse-header-font-size-s;
      }

      &-body {
        font-size: @dls-collapse-body-font-size-s;
      }
    }
  }

  &[ui~="basic"] > &-header,
  &[ui~="strong"] > &-header,
  &[ui~="simple"] > &-header {
    border-color: inherit;

    .@{veui-prefix}-collapse-expanded& {
      border-bottom-color: transparent;
    }
  }
<commit_msg>fix: fix content top padding for collapse<commit_after>@import "../lib.less";

.@{veui-prefix}-collapse {
  border: 1px solid @dls-collapse-border-color;
  border-radius: @dls-collapse-border-radius-m;
  line-height: @dls-line-height-1;

  &-header {
    position: relative;
    display: flex;
    align-items: center;
    margin: -1px;
    padding: @dls-collapse-header-padding-y @dls-collapse-header-padding-x;
    border: 1px solid @dls-collapse-border-color;
    background-color: @dls-collapse-header-background-color;
    font-size: @dls-collapse-header-font-size-m;
    color: @dls-collapse-header-font-color;
    .border-top-radius(inherit);
    line-height: @dls-collapse-header-line-height;
    .veui-transition(color, background-color, border-color, border-radius);
    outline: none;
    cursor: pointer;

    &:hover {
      background-color: @dls-collapse-header-background-color-hover;
    }

    &[data-focus-visible-added] {
      border-color: @dls-collapse-header-border-color-focus !important;
      box-shadow: @dls-collapse-header-shadow-focus;
      z-index: 1;
    }

    &:active {
      background-color: @dls-collapse-header-background-color-active;
    }
  }

  &-collapsed > &-header {
    .border-bottom-radius(inherit);
  }

  &-toggle {
    .dls-icon-size(@dls-collapse-icon-size-aux);
    color: @dls-collapse-icon-color-aux;
    margin-right: @dls-collapse-header-content-spacing;
    .veui-transition(transform);
  }

  &-toggle-end {
    margin-right: 0;
    margin-left: @dls-collapse-header-content-spacing;
    order: 3;
  }

  &-title-after {
    margin-left: auto;
  }

  &-expanded > &-header &-toggle {
    transform: rotateZ(90deg);
  }

  &.@{veui-prefix}-disabled {
    & > .@{veui-prefix}-collapse {
      &-header {
        background-color: @dls-collapse-header-background-color-disabled;
        color: @dls-collapse-header-font-color-disabled;
        cursor: not-allowed;
      }

      &-toggle {
        color: @dls-collapse-icon-color-aux-disabled;
      }
    }
  }

  &-body {
    background-color: @dls-collapse-body-background-color;
    overflow: hidden;
    will-change: height;
    .veui-transition(height);
    .border-bottom-radius(inherit);
    color: @dls-collapse-body-font-color;
    font-size: @dls-collapse-body-font-size-m;
    line-height: @dls-collapse-body-line-height;
    margin: 0 -1px;
    border-left: inherit;
    border-right: inherit;
  }

  &-content {
    padding: @dls-collapse-body-padding-y @dls-collapse-body-padding-x;
  }

  &[ui~="s"] {
    border-radius: @dls-collapse-border-radius-s;

    & > .@{veui-prefix}-collapse {
      &-header {
        font-size: @dls-collapse-header-font-size-s;
      }

      &-body {
        font-size: @dls-collapse-body-font-size-s;
      }
    }
  }

  &[ui~="basic"] > &,
  &[ui~="strong"] > &,
  &[ui~="simple"] > & {
    &-header {
      border-color: inherit;

      .@{veui-prefix}-collapse-expanded& {
        border-bottom-color: transparent;
      }
    }

    &-body > .@{veui-prefix}-collapse-content {
      padding-top: 0;
    }
  }

{'fraction_non_alphanumeric': 0.1695847923961981, 'fraction_numerical': 0.0036685009171252294, 'mean_word_length': 2.5596439169139464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '5706370', 'n_tokens_mistral': 2207, 'n_tokens_neox': 2127, 'n_words': 289}