mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
add 3 variables to allow customization of card-header, card-content and card-footer background (#1619)
This commit is contained in:
@@ -2,10 +2,14 @@ $card-color: $text !default
|
||||
$card-background-color: $white !default
|
||||
$card-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
|
||||
|
||||
$card-header-background-color: none !default
|
||||
$card-header-color: $text-strong !default
|
||||
$card-header-shadow: 0 1px 2px rgba($black, 0.1) !default
|
||||
$card-header-weight: $weight-bold !default
|
||||
|
||||
$card-content-background-color: none !default
|
||||
|
||||
$card-footer-background-color: none !default
|
||||
$card-footer-border-top: 1px solid $border !default
|
||||
|
||||
.card
|
||||
@@ -16,6 +20,7 @@ $card-footer-border-top: 1px solid $border !default
|
||||
position: relative
|
||||
|
||||
.card-header
|
||||
background-color: $card-header-background-color
|
||||
align-items: stretch
|
||||
box-shadow: $card-header-shadow
|
||||
display: flex
|
||||
@@ -42,9 +47,11 @@ $card-footer-border-top: 1px solid $border !default
|
||||
position: relative
|
||||
|
||||
.card-content
|
||||
background-color: $card-content-background-color
|
||||
padding: 1.5rem
|
||||
|
||||
.card-footer
|
||||
background-color: $card-footer-background-color
|
||||
border-top: $card-footer-border-top
|
||||
align-items: stretch
|
||||
display: flex
|
||||
|
||||
Reference in New Issue
Block a user