Sha256: 6b5d5ea32ef3496d92111ddbb186d865bc3d6dc4ab8fc4b914f3170259cc2ad3

Contents?: true

Size: 1.23 KB

Versions: 308

Compression:

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

  &.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

308 entries across 308 versions & 1 rubygems

Version Path
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.34.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.1 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.33.0 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_badge/_badge.scss
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_badge/_badge.scss