.badge {
  @include border-radius($badge-border-radius);

  align-items: center;
  display: inline-flex;
  font-size: inherit;
  font-weight: $badge-font-weight;
  line-height: inherit;
  padding-right: $badge-padding-x;
  padding-left: $badge-padding-x;
  text-align: center;
  vertical-align: baseline;
  white-space: nowrap;

  &:empty {
    display: none;
  }

  .btn & {
    margin-top: -1px;
    margin-bottom: -1px;
    padding-top: 1px;
    padding-bottom: 1px;
  }
}

// Colour
@each $color, $values in $theme-colors {
  .badge-#{$color} {
    background-color: map-get(theme-color($color), color);
    color: color-yiq(map-get(theme-color($color), color));
  }
}

.badge-pill {
  @include border-radius(1em);
}

.badge {
  @include border-radius($badge-border-radius);

  align-items: center;
  display: inline-flex;
  font-size: inherit;
  font-weight: $badge-font-weight;
  line-height: inherit;
  padding-right: $badge-padding-x;
  padding-left: $badge-padding-x;
  text-align: center;
  vertical-align: baseline;
  white-space: nowrap;

  &:empty {
    display: none;
  }

  .btn & {
    margin-top: -1px;
    margin-bottom: -1px;
    padding-top: 1px;
    padding-bottom: 1px;
  }
}

// Colour
@each $color, $values in $theme-colors {
  .badge-#{$color} {
    background-color: map-get(theme-color($color), color);
    color: color-yiq(map-get(theme-color($color), color));

    &[href] {
      @include active-focus-hover {
        background-color: map-get(theme-color($color), darker);
        color: color-yiq(map-get(theme-color($color), darker));
        text-decoration: none;
      }
    }
  }
}

.badge-pill {
  @include border-radius(1em);
}

Fix display issues with badge links
Fix display issues with badge links
