Sha256: c774c70ba79f39eaa5db5894b670782a8a48931f79b44f93ddf299f9a4dec126

Contents?: true

Size: 1.32 KB

Versions: 1031

Compression:

Stored size: 1.32 KB

Contents

@import "../tokens/colors";

$additional_colors: (
  "gradient": linear-gradient(135deg, $gradient_start 0%, $gradient_end 100%),
  "dark": $bg_dark,
  "light": $bg_light,
  "white": $white,
  "primary": $primary_action,
  "shadow": $shadow,
);

$merge_kits1: map-merge($status_colors, $category_colors);
$merge_kits2: map-merge($merge_kits1, $product_colors);
$merge_kits3: map-merge($merge_kits2, $text_colors);
$merge_kits4: map-merge($merge_kits3, $card_colors);
$merge_kits5: map-merge($merge_kits4, $status_colors);
$merge_kits6: map-merge($merge_kits5, $data_colors);
$merge_kits7: map-merge($merge_kits6, $border_colors);
$background_colors: map-merge($additional_colors, $merge_kits7);

[class^=pb_background_kit] {
  max-width: 100%;
  max-height: 100%;
  background-size: cover;

  @each $name, $color in $background_colors {
    &.pb_background_color_#{$name} {
      background: $color;
    }
  };

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

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

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

Version data entries

1,031 entries across 1,031 versions & 1 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_background/_background.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_background/_background.scss