<commit_before>.input-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;

  > .custom-file,
  > .custom-select,
  > .floating-label,
  > .form-control,
  > .textfield-box {
    flex: 1 1 auto;
    margin-bottom: 0;
    width: 1%;

    + .custom-file,
    + .custom-select,
    + .floating-label,
    + .form-control,
    + .textfield-box {
      margin-left: $input-group-inner-spacer-x;
    }
  }
}

// Addons

.input-group-append,
.input-group-prepend {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: $textfield-height;

  .btn {
    min-width: 0;

    + .btn {
      margin-left: ($btn-group-inner-spacer-x * -1);
    }
  }
}

.input-group-append {
  margin-left: $input-group-inner-spacer-x;
}

.input-group-prepend {
  margin-right: $input-group-inner-spacer-x;
}

.input-group-text {
  color: inherit;
  font-size: $textfield-font-size;
  line-height: $textfield-line-height;
  margin-right: ($input-group-inner-spacer-x / 2);
  margin-bottom: 0;
  margin-left: ($input-group-inner-spacer-x / 2);
  white-space: nowrap;
}

// Border radius

.input-group > .input-group-append > .btn,
.input-group > .input-group-prepend > .btn {
  &:not(:first-of-type) {
    @include border-left-radius(0);
  }

  &:not(:last-of-type) {
    @include border-right-radius(0);
  }
}

// Size

.input-group-lg {
  > .form-control {
    @extend %form-control-lg;
  }

  > .floating-label {
    @extend .floating-label-lg;

    &.has-value label,
    &.is-focused label {
      line-height: 1;
      top: 0;
    }
  }

  > .input-group-append,
  > .input-group-prepend {
    min-width: $textfield-height-lg;

    > .btn {
      @extend %btn-lg;
    }

    > .input-group-text {
      font-size: $textfield-font-size-lg;
      line-height: $textfield-line-height-lg;
    }
  }

  > .textfield-box {
    @extend .textfield-box-lg;

    &.floating-label {
      &.has-value label,
      &.is-focused label {
        top: $textfield-box-label-spacer-y;
      }

      .form-control {
        padding-bottom: ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem);
      }
    }
  }
}

.input-group-sm {
  > .form-control {
    @extend %form-control-sm;
  }

  > .floating-label {
    @extend .floating-label-sm;

    &.has-value label,
    &.is-focused label {
      line-height: 1;
      top: 0;
    }
  }

  > .input-group-append,
  > .input-group-prepend {
    min-width: $textfield-height-sm;

    > .btn {
      @extend %btn-sm;
    }

    > .input-group-text {
      font-size: $textfield-font-size-sm;
      line-height: $textfield-line-height-sm;
    }
  }

  > .textfield-box {
    @extend .textfield-box-sm;

    &.floating-label {
      &.has-value label,
      &.is-focused label {
        top: $textfield-box-label-spacer-y;
      }

      .form-control {
        padding-bottom: ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem);
      }
    }
  }
}<commit_msg>Tighten input group text margin<commit_after>.input-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;

  > .custom-file,
  > .custom-select,
  > .floating-label,
  > .form-control,
  > .textfield-box {
    flex: 1 1 auto;
    margin-bottom: 0;
    width: 1%;

    + .custom-file,
    + .custom-select,
    + .floating-label,
    + .form-control,
    + .textfield-box {
      margin-left: $input-group-inner-spacer-x;
    }
  }
}

// Addons

.input-group-append,
.input-group-prepend {
  align-items: center;
  display: flex;
  justify-content: center;

  .btn {
    min-width: 0;

    + .btn {
      margin-left: ($btn-group-inner-spacer-x * -1);
    }
  }
}

.input-group-append {
  margin-left: $input-group-inner-spacer-x;
}

.input-group-prepend {
  margin-right: $input-group-inner-spacer-x;
}

.input-group-text {
  color: inherit;
  font-size: $textfield-font-size;
  line-height: $textfield-line-height;
  margin-bottom: 0;
  white-space: nowrap;

  + .input-group-text {
    margin-left: ($input-group-inner-spacer-x / 2);
  }
}

// Border radius

.input-group > .input-group-append > .btn,
.input-group > .input-group-prepend > .btn {
  &:not(:first-of-type) {
    @include border-left-radius(0);
  }

  &:not(:last-of-type) {
    @include border-right-radius(0);
  }
}

// Size

.input-group-lg {
  > .form-control {
    @extend %form-control-lg;
  }

  > .floating-label {
    @extend .floating-label-lg;

    &.has-value label,
    &.is-focused label {
      line-height: 1;
      top: 0;
    }
  }

  > .input-group-append,
  > .input-group-prepend {
    > .btn {
      @extend %btn-lg;
    }

    > .input-group-text {
      font-size: $textfield-font-size-lg;
      line-height: $textfield-line-height-lg;
    }
  }

  > .textfield-box {
    @extend .textfield-box-lg;

    &.floating-label {
      &.has-value label,
      &.is-focused label {
        top: $textfield-box-label-spacer-y;
      }

      .form-control {
        padding-bottom: ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem);
      }
    }
  }
}

.input-group-sm {
  > .form-control {
    @extend %form-control-sm;
  }

  > .floating-label {
    @extend .floating-label-sm;

    &.has-value label,
    &.is-focused label {
      line-height: 1;
      top: 0;
    }
  }

  > .input-group-append,
  > .input-group-prepend {
    > .btn {
      @extend %btn-sm;
    }

    > .input-group-text {
      font-size: $textfield-font-size-sm;
      line-height: $textfield-line-height-sm;
    }
  }

  > .textfield-box {
    @extend .textfield-box-sm;

    &.floating-label {
      &.has-value label,
      &.is-focused label {
        top: $textfield-box-label-spacer-y;
      }

      .form-control {
        padding-bottom: ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem);
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.17475398710553106, 'fraction_numerical': 0.00661689854088904, 'mean_word_length': 2.0370942812983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 49, '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': '5210281', 'n_tokens_mistral': 2406, 'n_tokens_neox': 2306, 'n_words': 342}