Sha256: 1ec52e1e23e95d16d7ff443062bef65a6c85daa699cf866e5a8f5ce1d317d6a5

Contents?: true

Size: 1.94 KB

Versions: 250

Compression:

Stored size: 1.94 KB

Contents

@import "card_mixin";
@import "../utilities/colors";

[class^=pb_card_kit] {
  @include pb_card;
  padding: $space_md;

  &[class*=_selected] {
    @include pb_card_selected;
  }

  &.dark {
    @include pb_card_dark;

    &[class*=_selected] {
      @include pb_card_selected_dark;
    }
  }

  &[class*=_border_none] {
    border-width: 0px;
  }

  [class^=pb_card_header_kit] {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    min-height: 1px;
    padding: $space_sm;
    border: 0;
    border-radius: $pb_card_header_border_radius $pb_card_header_border_radius 0px 0px;
    @each $color_name, $color_value in $pb_card_header_colors {
      &[class*=_#{$color_name}] {
        @include pb_card_header_color($color_value);
        color: lightenText($color_value);
      }
    }
    @each $color_name, $color_value in $pb_card_header_colors {
      &[class*=_#{$color_name}_striped] {
        @if ((type-of($color_value) == color)) {
          background: repeating-linear-gradient(
            45deg,
            $color_value,
            $color_value 10px,
            lighten( $color_value, 5% ) 10px,
            lighten( $color_value, 5% ) 20px
          );
        }
      }
    }
    &[class*=_white] {
      border-bottom: 1px solid $border_light;
    }
  }

  [class^=pb_card_body_kit] {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    min-height: 1px;
    border: 0;
    padding: $space_md;
  }

  &[class*=_highlight] {
    overflow: hidden;
  }

  &[class*=_highlight_top] {
    @each $color_name, $color_value in $pb_card_highlight_colors {
      &[class*=_highlight_#{$color_name}]::before {
        @include pb_card_highlight(100%, $pb_card_highlight_size, $color_value);
      }
    }
  }

  &[class*=_highlight_side] {
    @each $color_name, $color_value in $pb_card_highlight_colors {
      &[class*=_highlight_#{$color_name}]::before {
        @include pb_card_highlight($pb_card_highlight_size, 100%, $color_value);
      }
    }
  }
}

Version data entries

250 entries across 250 versions & 1 rubygems

Version Path
playbook_ui-13.29.0.pre.alpha.removeduplicatekitexampleclass3063 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.29.0.pre.alpha.testingcollapsibleissue3052 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.29.0 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.PBNTR297gradientoverlay3029 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.dialogturbostreameventlistener3017 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.PLAY1338alpha3001 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.27.0 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12816 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.25.0.pre.alpha.PBNTR291Dropdownrailsv22812 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.26.0 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 app/pb_kits/playbook/pb_card/_card.scss
playbook_ui-13.25.0.pre.alpha.barchartfix2766 app/pb_kits/playbook/pb_card/_card.scss