Sha256: 2499b0484a8569911e23921e5870ad1fdcdf8996ca7b3e0a2744416c599a31b1

Contents?: true

Size: 1.34 KB

Versions: 1200

Compression:

Stored size: 1.34 KB

Contents

[class^=pb_avatar_action_button_kit] {

  $icon_size: 0px;
  $border_size: 0px;

  $action-colors: (
    "add": $primary,
    "remove": $error,
  );

  @each $key, $value in $action-colors {
    &[class*=_#{$key}] a {
      color: $value;
    }
  }
  
  @mixin icon-base {
    &.dark{
        background-color: $bg_dark
    }
    width: $icon_size;
    height: $icon_size;
    position: absolute;
    background-color: $white;
    border-radius: $icon_size;
    font-size: ($icon_size - $border_size * 2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }

  @each $name, $size in $avatar-sizes {
    
    &[class*=_#{$name}] {
      
      $avatar_size: map-get($avatar-sizes, $name);
      $icon_size: $avatar_size / 2;
      $border_size: $icon_size / 10;

      position: relative;
      width: $avatar_size * 1.25;
      height: $avatar_size * 1.1;
      display: flex;
    
      [class^=pb_tooltip_kit] {
        justify-self: center;
      }
    
      &[class*=_bottom] .icon {
        @include icon-base;
        top: $icon_size * 1.27;
      }
      &[class*=_top] .icon {
        @include icon-base;
        bottom: $icon_size * 1.27;
      }
      &[class*=_right] .icon {
        left: $icon_size * 1.5;
      }
      &[class*=_left] [class^=pb_avatar_kit] {
        padding-left: $icon_size / 2;
      }
    }
  }
}

Version data entries

1,200 entries across 1,200 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY1720phonenumberinputformatAsYouType5377 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.play17725374 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.play17725372 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.12.0.pre.rc.4 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.hfhbrakemanplaybook5370 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.responsivetablerails5364 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.responsivetablerails5362 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.PBNTR769sticky5359 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.PBNTR573datepickerinvestigation5355 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5341 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.12.0.pre.rc.2 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.12.0.pre.rc.1 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.12.0.pre.rc.0 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5315 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5314 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
playbook_ui-14.11.1 app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss