Sha256: 47ae563a3201346fed06b342dcc0af6a7dce46411e56011b4b5f6dde4cef3caa

Contents?: true

Size: 1.86 KB

Versions: 122

Compression:

Stored size: 1.86 KB

Contents

@import "../tokens/shadows";
@import "../tokens/border_radius";
@import "../tokens/spacing";
@import "../tokens/colors";
@import "../tokens/transition";
@import "../tokens/animation-curves";

$pb_card_border_width: 1px;
$pb_card_border_radius: $border_rad_heavier;
$pb_card_highlight_colors: map-merge(map-merge($status_colors, $product_colors), $category_colors);
$pb_card_highlight_size: 4px;
$pb_card_header_colors: map-merge($category_colors, $product_colors);
$pb_card_header_border_radius: $border_rad_heavy;
$pb_card_padding:(
  none: 0,
  xs: $space_xs,
  sm: $space_sm,
  md: $space_md,
  lg: $space_lg,
  xl: $space_xl,
);

@mixin pb_card_selected($border_color: $primary) {
  border-color: $border_color;
  border-width: $pb_card_border_width * 2;
}

@mixin pb_card_selected_dark {
  @include pb_card_selected($primary_action);
}

@mixin pb_card($background: $card_light, $border_color: $border_light) {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: $background;
  background-clip: border-box;
  border-width: $pb_card_border_width;
  border-style: solid;
  border-color: $border_color;
  border-radius: $pb_card_border_radius;
  transition-property: all;
  transition-duration: $transition_short;
  transition-timing-function: $easeIn;

  @each $name, $shadow in $box_shadows {
    &[class*=_#{$name}] {
      box-shadow: $shadow;
    }
  }

  @each $name, $radius in $border_radius {
    &[class*=_#{$name}] {
      border-radius: $radius;
    }
  }
}

@mixin pb_card_dark {
  color: $white;
  @include pb_card($card_dark, $border_dark);
}

@mixin pb_card_highlight($width, $height, $background){
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: $width;
  height: $height;
  background: $background;
  z-index: 10;
}

@mixin pb_card_header_color($header_color) {
  background: $header_color;
}

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
playbook_ui-10.14.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.13.1 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.13.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.12.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.11.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.10.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.9.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.8.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.7.1 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.7.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.6.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.5.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.4.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.3.0 app/pb_kits/playbook/pb_card/_card_mixin.scss
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_card/_card_mixin.scss