Sha256: 80b19f05a3260b8d8f5ee397dbbd6963c38d577c95b7244da9a3b8206d12ad4b

Contents?: true

Size: 1.39 KB

Versions: 382

Compression:

Stored size: 1.39 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;
  }

  &[class*=_notification] {
    background: $primary;
    color: $white;
  }

  &[class*=_notification_error] {
    background: $error;
  }

  &.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);
      }
    }

    &[class*=_notification_error]  {
      background: $error_dark;
      color: $white;
    }
  }
}

Version data entries

382 entries across 382 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.rc.18 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.17 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.16 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4901 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4898 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4891 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4890 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4889 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-14.10.0.pre.rc.12 app/pb_kits/playbook/pb_badge/_badge.scss