Sha256: 533b5738399994df0d1ef67cacea8ae18997256ecac8ce536289a150f8de0815

Contents?: true

Size: 1.82 KB

Versions: 36

Compression:

Stored size: 1.82 KB

Contents

/*
  Cards

  Structure:

  titles
  lists
*/

/// @Foundation.settings
// Card
$card-background: #fff !default;
$card-color: isitlight($card-background) !default;
$card-border: 1px solid smartscale($card-background, 7%) !default;
$card-radius: $global-radius !default;
$card-shadow: 0 1px 2px rgba(#000, 0.2) !default;
$card-padding: $global-padding !default;
$card-margin: 0.5rem !default;

$card-divider-background: smartscale($card-background, 7%) !default;
///

@mixin card-container(
  $background: $card-background,
  $color: $card-color,
  $border: $card-border,
  $radius: $card-radius,
  $shadow: $card-shadow,
  $padding: $card-padding,
  $margin: $card-margin
) {
  border: $border;
  margin-bottom: $margin;
  background: $background;
  color: $color;
  border-radius: $radius;
  box-shadow: $shadow;
  overflow: hidden;

  h1, h2, h3, h4, h5, h6 {
    color: inherit;
  }

  ul {
    margin-bottom: 0;
  }

  img {
    width: 100%;
  }
}

@mixin card-divider(
  $background: $card-divider-background,
  $padding: $card-padding
) {
  background: $background;
  padding: $padding;
}

@mixin card-section(
  $padding: $card-padding
) {
  padding: $padding;
}

@include exports(card) {
  .card {
    @include card-container;

    @each $color in map-keys($foundation-colors) {
      &.#{$color} {
        $color-value: map-get($foundation-colors, $color);
        @include card-container(
          $background: $color-value,
          $color: isitlight($color-value),
          $border: 0
        );
        .card-divider {
          @include card-divider(
            $background: smartscale($color-value, 7%)
          );
        }
      }
    }
  }
    .card-divider {
      @include card-divider;
    }
    .card-section {
      @include card-section;
    }
}

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
express_admin-1.7.5 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.7.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.7.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.7.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.7.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.13 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.12 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.9 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.8 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.7 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.4 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.3 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.2 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.1 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.6.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.5.0 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.4.11 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss
express_admin-1.4.10 vendor/gems/foundation_apps_styles/vendor/assets/stylesheets/components/_card.scss