Sha256: 51b54dae86e71bc86c9b05f0d2f9cf74324088f89abcda950eda666c3963f644

Contents?: true

Size: 1.16 KB

Versions: 112

Compression:

Stored size: 1.16 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;
  white-space: nowrap;

  span {
    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);
        color: map-get($status_color_text_dark, $color_name);
      }
    }
  }
}

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
playbook_ui-12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop917 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop916 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1.pre.alpha.hovertesting914 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop912 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1.pre.alpha.PLAY802responsivetitlekit909 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.0.pre.alpha.PLAY906multilevelselectedidsprop902 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.30.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.29.0.pre.alpha.play716popoverkitcloseonclickissue893 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.29.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.PLAY863multilevelv2877 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.PLAY863multilevelv2876 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.PLAY814removemomentjs871 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown869 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.PLAY837MapCustomButton868 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0.pre.alpha.20230613implementbakesupport865 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.28.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.27.0.pre.alpha.expandednotworking853 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-12.27.0 app/pb_kits/playbook/pb_badge/_badge.scss