Sha256: 7a31147436cca6d84e65521850ec5dac0505d9e679e8b0784e04fe8562436ddb

Contents?: true

Size: 1 KB

Versions: 1058

Compression:

Stored size: 1 KB

Contents

@import "../tokens/border_radius";
@import "../tokens/colors";

$image-sizes: (
  "xs": 60px,
  "sm": 80px,
  "md": 100px,
  "lg": 120px,
  "xl": 140px,
);

[class^=pb_image_kit] {
  position: relative;
  object-fit: cover;

  @each $name, $size in $image-sizes {
    &[class*=size_#{$name}] {
      width: $size;
      height: $size;
      object-fit: cover;
      position: relative;
      flex-shrink: 0;
      flex-grow: 0;
      flex-basis: $size;
    }

    &[class*= rounded] {
      border-radius: $border-rad-heaviest;
    }

    &.fade {
      opacity: 0;
      &.lazyloaded {
        opacity: 1;
        transition: opacity 300ms ease-in;
      }
    }

    &.blur {
      filter: blur(5px);
      &.lazyloaded {
        -webkit-filter: blur(0);
        filter: blur(0);
        transition: filter 300ms ease-in;
      }
    }

    &.scale {
      opacity: 0;
      transform: scale(0.9);
      &.lazyloaded {
        opacity: 1;
        transform: scale(1);
        transition: 700ms ease-in;
      }
    }
  }
}

Version data entries

1,058 entries across 1,058 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.rc.2 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4766 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.10.0.pre.rc.1 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.alpha.PBNTR686advancedtablepaginationpoc4747 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.alpha.pbntr700newresettodefaultprop4736 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.10.0.pre.rc.0 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.18 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.17 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.16 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.15 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.14 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.13 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.12 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.11 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.10 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.8.0.pre.alpha.PBNTR713dropdowncustomtriggerbug4696 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_image/_image.scss