mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
* Close #2598 - Add $card-radius variable - Default to 0 (no braking change) - Update variables/card.json * Fix per @jgthms - Could be a small breaking change since `overflow: hidden` is added to card
This commit is contained in:
parent
bef6a73172
commit
aed45337a4
@ -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",
|
||||
@ -98,4 +103,4 @@
|
||||
"$card-media-margin"
|
||||
],
|
||||
"file_path": "components/card.sass"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user