<commit_before>.select2-container {
  display: block;

  .select2-choice {
    height: $input-height;
    line-height: 2.2;
    border-color: $input-border-color;
    background-image: none;
    background-color: $input-bg;

    &, .select2-arrow {
      border-radius: $border-radius;
    }

    .select2-arrow {
      background-image: none;
      background-color: $input-bg;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      border-left-color: $input-border-color;

      b {
        background-position: 0 7px;
      }
    }

    .select2-chosen {
      line-height: 36px;
      vertical-align: middle;
      display: inline;
    }

    abbr {
      top: 12px;
    }
  }
}

.select2-search input {
  border-color: $input-border-color;
  border-radius: $border-radius;
}

.select2-drop {
  &, &.select2-drop-above {
    border-radius: $border-radius;
    box-shadow: none;
  }
}

.select2-container-active {
  &, & a {
    box-shadow: none !important;
  }
}

.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
  background-image: none;
}

.select2-dropdown-open.select2-drop-above .select2-choice {
  border-radius: 0 0 $border-radius $border-radius;
}

.select2-drop-above,
.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open .select2-choice,
.select2-drop.select2-drop-above.select2-drop-active,
.select2-drop.select2-drop-active {
  border-color: lighten($success, 20);
}

.select2-result-label {
  color: $gray-900;
}

.select2-results .select2-highlighted {
  background-color: $primary;

  .select2-result-label {
    color: white;
  }
}

.select2-container-multi {
  .select2-choices {
    line-height: 1.8;
    border-color: $input-border-color;
    background-image: none;
    background-color: $input-bg;

    .select2-search-choice {
      @extend .badge;
      @extend .badge-info;

      box-shadow: none;
      border: none;
      background-image: none;
      margin: 5px;
      padding: 7px;

      .select2-search-choice-close {
        @extend .glyphicon;
        @extend .glyphicon-remove;

        background-image: none !important;
        font-size: 100%;
        color: white !important;
        position: absolute;
        left: 7px;
        top: 7px;
      }

      div {
        padding-left: 15px;
      }
    }
  }

  &.select2-container-active {
    .select2-choices {
      box-shadow: none;
      border-color: lighten($success, 20);
    }
  }
}
<commit_msg>Fix select2 multiselect badges align<commit_after>.select2-container {
  display: block;

  .select2-choice {
    height: $input-height;
    line-height: 2.2;
    border-color: $input-border-color;
    background-image: none;
    background-color: $input-bg;

    &, .select2-arrow {
      border-radius: $border-radius;
    }

    .select2-arrow {
      background-image: none;
      background-color: $input-bg;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      border-left-color: $input-border-color;

      b {
        background-position: 0 7px;
      }
    }

    .select2-chosen {
      line-height: 36px;
      vertical-align: middle;
      display: inline;
    }

    abbr {
      top: 12px;
    }
  }
}

.select2-search input {
  border-color: $input-border-color;
  border-radius: $border-radius;
}

.select2-drop {
  &, &.select2-drop-above {
    border-radius: $border-radius;
    box-shadow: none;
  }
}

.select2-container-active {
  &, & a {
    box-shadow: none !important;
  }
}

.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
  background-image: none;
}

.select2-dropdown-open.select2-drop-above .select2-choice {
  border-radius: 0 0 $border-radius $border-radius;
}

.select2-drop-above,
.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open .select2-choice,
.select2-drop.select2-drop-above.select2-drop-active,
.select2-drop.select2-drop-active {
  border-color: lighten($success, 20);
}

.select2-result-label {
  color: $gray-900;
}

.select2-results .select2-highlighted {
  background-color: $primary;

  .select2-result-label {
    color: white;
  }
}

.select2-container-multi {
  .select2-choices {
    line-height: 1.8;
    border-color: $input-border-color;
    background-image: none;
    background-color: $input-bg;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    .select2-search-choice {
      @extend .badge;
      @extend .badge-info;

      box-shadow: none;
      border: none;
      background-image: none;
      margin: 5px;
      padding: 7px;

      .select2-search-choice-close {
        @extend .glyphicon;
        @extend .glyphicon-remove;

        background-image: none !important;
        font-size: 100%;
        color: white !important;
        position: absolute;
        left: 7px;
        top: 7px;
      }

      div {
        padding-left: 15px;
      }
    }
  }

  &.select2-container-active {
    .select2-choices {
      box-shadow: none;
      border-color: lighten($success, 20);
    }
  }
}

{'fraction_non_alphanumeric': 0.141295862607338, 'fraction_numerical': 0.027127244340359093, 'mean_word_length': 2.3344176968119714, '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': '3633339', 'n_tokens_mistral': 1904, 'n_tokens_neox': 1803, 'n_words': 302}