Skip to content

Commit

Permalink
Breaking: (#388) Card replaced $card-title-color, `$card-title-font…
Browse files Browse the repository at this point in the history
…-size`, `$card-title-font-weight`, `$card-title-margin-bottom`, `$card-title-margin-top` with `$card-title` Sass map
  • Loading branch information
pat270 committed Dec 6, 2017
1 parent 7b5682b commit 6c7dd0b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
7 changes: 7 additions & 0 deletions src/scss/atlas/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ $card-body-padding-top: 0.75rem !default;

$card-inner-border-radius: if($card-border-width > 0, calc(#{$card-border-radius} - #{$card-border-width}), $card-border-radius) !default;

$card-title: (
color: $body-color,
font-size: 1rem,
font-weight: $font-weight-semi-bold,
line-height: $line-height-base
) !default;

$card-link: (
color: $secondary,
hover-color: $secondary
Expand Down
6 changes: 1 addition & 5 deletions src/scss/components/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
}

.card-title {
color: $card-title-color;
font-size: $card-title-font-size;
font-weight: $card-title-font-weight;
margin-bottom: $card-title-margin-bottom;
margin-top: $card-title-margin-top;
@include clay-text-typography($card-title);
}

.card-subtitle {
Expand Down
12 changes: 6 additions & 6 deletions src/scss/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ $card-section-header-margin-bottom: 1.5rem !default;
$card-section-header-padding: 0 ($grid-gutter-width / 2) !default;
$card-section-header-text-transform: uppercase !default;

$card-title-color: null !default;
$card-title-font-size: 1rem !default; // 16px
$card-title-font-weight: $font-weight-semi-bold !default;
$card-title-margin-bottom: 0.5rem !default; // 8px
$card-title-margin-top: null !default;
$card-title: (
font-size: 1rem,
font-weight: $font-weight-semi-bold,
line-height: $line-height-base
) !default;

$card-subtitle-color: $card-section-header-color !default;
$card-subtitle-font-size: 0.875rem !default; // 14px
$card-subtitle-font-weight: null !default;
$card-subtitle-margin-bottom: 0.5rem !default; // 8px
$card-subtitle-margin-top: -$card-title-margin-bottom !default; // -8px
$card-subtitle-margin-top: 0 !default;

$card-link: (
color: $link-color,
Expand Down

0 comments on commit 6c7dd0b

Please sign in to comment.