Skip to content

Commit

Permalink
Merge pull request #977 from pat270/clay-719
Browse files Browse the repository at this point in the history
Update: (Fixes #719) Card added Sass map `$user-card` and set `.user-…
  • Loading branch information
jbalsas authored Jun 8, 2018
2 parents b1914cb + f7d7011 commit 9dd8f4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/clay-css/src/scss/components/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
@include clay-card-type-asset-variant($file-card);
}

.user-card {
@include clay-card-type-asset-variant($user-card);
}

// Card Type Directory

.card-type-directory {
Expand Down
4 changes: 4 additions & 0 deletions packages/clay-css/src/scss/mixins/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
$aspect-ratio-checkered-bg: map-get($map, aspect-ratio-checkered-bg);

$asset-icon-color: map-get($map, asset-icon-color);
$asset-icon-min-width: map-get($map, asset-icon-min-width);
$asset-icon-width: map-get($map, asset-icon-width);

@if ($enabled) {
.aspect-ratio {
Expand All @@ -107,6 +109,8 @@

.card-type-asset-icon {
color: $asset-icon-color;
min-width: $asset-icon-min-width;
width: $asset-icon-width;
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-css/src/scss/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ $file-card: map-merge((
asset-icon-color: $gray-600
), $file-card);

$user-card: () !default;
$user-card: map-merge((
asset-icon-min-width: 2.5rem,
asset-icon-width: 26%
), $user-card);

$card-page-item-asset: () !default;
$card-page-item-asset: map-merge((
base: (
Expand Down

0 comments on commit 9dd8f4a

Please sign in to comment.