Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #2598 #2630

Merged
merged 3 commits into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/_data/variables/components/card.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"value": "0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02)",
"type": "size"
},
"$card-radius": {
"name": "$card-radius",
"value": "0",
"type": "size"
},
"$card-header-background-color": {
"name": "$card-header-background-color",
"value": "transparent",
Expand Down Expand Up @@ -98,4 +103,4 @@
"$card-media-margin"
],
"file_path": "components/card.sass"
}
}
3 changes: 3 additions & 0 deletions sass/components/card.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$card-color: $text !default
$card-background-color: $scheme-main !default
$card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
$card-radius: 0 !default

$card-header-background-color: transparent !default
$card-header-color: $text-strong !default
Expand All @@ -23,6 +24,8 @@ $card-media-margin: $block-spacing !default
color: $card-color
max-width: 100%
position: relative
border-radius: $card-radius
overflow: hidden

.card-header
background-color: $card-header-background-color
Expand Down