Sha256: 568ebffd04cd4329725790f482fd31fb38f8fc546053edcee904584a2cc93d23

Contents?: true

Size: 1.93 KB

Versions: 13

Compression:

Stored size: 1.93 KB

Contents

@import "../tokens/spacing";
@import "../tokens/colors";
@import "../tokens/opacity";
@import "../tokens/shadows";
@import "../pb_avatar/avatar";

$selector: ".pb_form_pill";
$pb_form_pill_height: 37px;
$form_pill_colors: (
  primary: map-get($status_color_text, "primary"),
);


[class^=pb_form_pill_kit] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 $space-sm/3;
  height: $pb_form_pill_height;
  border-radius: $pb_form_pill_height/2;
  margin-bottom: 2px;
  margin-top: 2px;
  cursor: pointer;
  @each $color_name, $color_value in $form_pill_colors {
    &[class*=_#{$color_name}]  {
      background-color: rgba($color_value, $opacity-1);
      transition: background-color 0.2s ease;
      box-shadow: none;
      @media (hover:hover) {
        &:hover {
          background-color: rgba($color_value, $opacity-2);
        }
      }
      #{$selector}_text {
        color: $color_value;
        padding-left: $space-sm;
        padding-right: $space-sm/4;
      }
      #{$selector}_close {
        color: $color_value;
        padding-left: $space-sm/2;
        padding-right: $space-sm/4;
        display: flex;
        align-items: center;
        height: 100%;
        cursor: pointer;
      }
      #{$selector}_tag {
        color: $color_value;
        padding-left: $space-sm;
      }
    }
  }
  &.small {
    height: fit-content;
    height: -moz-fit-content;
    .pb_form_pill_text, .pb_form_pill_close, .pb_form_pill_tag {
      font-size: $font_base;
      font-weight: $regular;
    }
    .pb_form_pill_text, .pb_form_pill_tag {
      line-height: 1.7;
      padding-left: $space_xs;
      padding-right: 2px;
    }
    [class^=pb_avatar_kit], [class^=pb_avatar_kit] .avatar_wrapper {
      width: 20px;
      height: 20px;
      flex-basis: 20px;
      &::before { line-height: 21px; }
    }
  }
  &[class*=lowercase] {
    text-transform: lowercase;
  }

  &[class*=none] {
    text-transform: none;
  }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.32.0 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.31.0.pre.alpha.powercentrainplaybookpt23212 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.18.0.pre.alpha.powercentrainplaybookpt22201 app/pb_kits/playbook/pb_form_pill/_form_pill.scss
playbook_ui-13.16.0.pre.alpha.powercentrainplaybookpt22125 app/pb_kits/playbook/pb_form_pill/_form_pill.scss