Sha256: e80e71d9b53e4f5ec0f7b25af1d0f8d11e500d42909563bbde2ef1bb09965c4d

Contents?: true

Size: 1.52 KB

Versions: 33

Compression:

Stored size: 1.52 KB

Contents

//
// badge.scss
// Extended from Bootstrap
//


// Soft variants

@each $color, $value in $theme-colors {
  .badge-#{$color}-soft {
    @include badge-variant-soft($value, $badge-soft-bg-opacity);
  }
}

.badge-gray-700-soft {
  @include badge-variant-soft($gray-700, $badge-soft-bg-opacity);
}


// Color options

.badge-gray-600 {
  background-color: $gray-600;
  color: $white;
}


// Sizing

.badge-lg {
  padding: $badge-padding-y-lg $badge-padding-x-lg;
}


// Rounded circle

.badge-rounded-circle {
  height: calc(1em + #{$badge-padding-y * 2});
  padding-left: $badge-padding-y;
  padding-right: $badge-padding-y;
  border-radius: $badge-pill-border-radius;

  > * {
    display: block;
    width: 1em;
  }


  &.badge-lg {
    height: calc(1em + #{$badge-padding-y-lg * 2});
    padding-left: $badge-padding-y-lg;
    padding-right: $badge-padding-y-lg;
  }
}


// Positioning

.badge-float {
  position: absolute;
  z-index: $zindex-dropdown;
}

.badge-float-outside {
  top: -.5rem;
  right: -.5rem;
}

.badge-float-inside {
  top: 1rem;
  right: 1rem;
}


// Active

.badge-white-soft.active {
  background-color: $white;
  color: $primary;

  @include hover-focus {
    background-color: darken($white, 5%);
    color: $primary;
  }
}

.badge-secondary-soft.active {
  background-color: $primary;
  color: color-yiq($primary);

  @include hover-focus {
    background-color: darken($primary, 5%);
    color: color-yiq(darken($primary, 5%));
  }
}

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
viniBaxter-desk_front-31.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-desk_front-30.0.1 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-desk_front-26 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-14 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-desk_front-25.1 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.8 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.7 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.6 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.4 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.3 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.2 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-13.1 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-desk_front-25 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-11 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-10.0 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-desk_front-24.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-spa_landing-0.9 lib/viniBaxter/sass/spa_landing/theme/_badge.scss
viniBaxter-desk_front-22.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-desk_front-21.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss
viniBaxter-desk_front-20.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/_badge.scss