Sha256: b6fc0a0413a635c97b38d0eda10fea0b0ca4ea45af3d1b48fc4bc8c77b4f9db7

Contents?: true

Size: 1.11 KB

Versions: 187

Compression:

Stored size: 1.11 KB

Contents

@import "../tokens/border_radius";
@import "../tokens/colors";
@import "../tokens/opacity";
@import "../tokens/spacing";
@import "../tokens/typography";

[class^=pb_badge_kit] {
  $pb_badge_height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: $border_rad_light;
  padding: 0 $space_xs/2;
  border-width: 1px;
  border-style: solid;
  border-color: $card_light;

  span {
    transform: translateY(1px);
    display: inline-block;
    font-size: $font_smaller - 1;
    font-weight: $bolder;
  }

  @each $color_name, $color_value in $status_colors {
    &[class*=_#{$color_name}]  {
      background: rgba($color_value, $opacity_1);
      color: map-get($status_color_text, $color_name);
    }
  }

  &[class*=_rounded] {
    height: $pb_badge_height;
    min-height: $pb_badge_height;
    min-width: $pb_badge_height;
    border-radius: $pb_badge_height / 2;
  }

  &.dark {
    border-width: 0;

    @each $color_name, $color_value in $status_colors {
      &[class*=_#{$color_name}]  {
        background: rgba(mix($bg_dark, $color_value, 10%), $opacity_2);
      }
    }
  }
}

Version data entries

187 entries across 187 versions & 1 rubygems

Version Path
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.4.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0.alpha.inline2 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0.alpha.inline1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0.pre.alpha.password.strength.1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.3.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.2.2.pre.alpha.margin app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.2.2 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.2.1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.2.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.1.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-9.0.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-8.3.0 app/pb_kits/playbook/pb_badge/_badge.scss