Sha256: 1d2e1a2cee8659b4b7b39d42b603eda265ceeafbe9f0575a4076486f44f80b27

Contents?: true

Size: 765 Bytes

Versions: 3

Compression:

Stored size: 765 Bytes

Contents

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

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

[class^=pb_image_kit] {
  position: relative;

  @each $name, $size in $image-sizes {
    &[class*=_#{$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;
    }

    .blur_up {
      -webkit-filter: blur(6px);
      filter: blur(6px);
      transition: filter 550ms, -webkit-filter 550ms;
    }

    .blur_up.lazyloaded {
      -webkit-filter: blur(0);
      filter: blur(0);
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-7.6.1 app/pb_kits/playbook/pb_image/_image.scss
playbook_ui-7.6.0 app/pb_kits/playbook/pb_image/_image.scss