Skip to content

Commit

Permalink
New: Card added $card-subtitle-color, $card-subtitle-font-size, `…
Browse files Browse the repository at this point in the history
…$card-subtitle-font-weight`, `$card-subtitle-margin-bottom`, `$card-subtitle-margin-top`
  • Loading branch information
pat270 committed Aug 9, 2017
1 parent d34b67f commit c472e65
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scss/atlas-theme/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $card-box-shadow: 0 1px 10px -4px rgba(0, 0, 0, 0.6) !default;

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

$card-subtitle-color: map-get($theme-colors, secondary) !default;

$card-link-color: map-get($theme-colors, secondary) !default;
$card-link-hover-color: $card-link-color !default;

Expand Down
8 changes: 8 additions & 0 deletions src/scss/lexicon-base/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
}
}

.card-subtitle {
color: $card-subtitle-color;
font-size: $card-subtitle-font-size;
font-weight: $card-subtitle-font-weight;
margin-bottom: $card-subtitle-margin-bottom;
margin-top: $card-subtitle-margin-top;
}

.card-divider {
background-color: $card-divider-bg;
height: $card-divider-height;
Expand Down
6 changes: 6 additions & 0 deletions src/scss/lexicon-base/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ $card-border-style: solid !default;
$card-box-shadow: null !default;
$card-margin-bottom: 1.25rem !default;

$card-subtitle-color: null !default;
$card-subtitle-font-size: null !default;
$card-subtitle-font-weight: null !default;
$card-subtitle-margin-bottom: null !default;
$card-subtitle-margin-top: null !default;

$card-link-color: $link-color !default;
$card-link-text-decoration: null !default;
$card-link-hover-color: $link-hover-color !default;
Expand Down

0 comments on commit c472e65

Please sign in to comment.