2017-07-28 20:05:15 +00:00
|
|
|
$card-color: $text !default
|
2019-10-13 14:12:30 +00:00
|
|
|
$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
|
2020-09-27 09:35:07 +00:00
|
|
|
$card-radius: 0.25rem !default
|
|
|
|
$card-overflow: hidden !default
|
2017-07-13 18:44:35 +00:00
|
|
|
|
2018-04-28 16:18:44 +00:00
|
|
|
$card-header-background-color: transparent !default
|
2017-07-28 20:05:15 +00:00
|
|
|
$card-header-color: $text-strong !default
|
2019-09-19 17:08:42 +00:00
|
|
|
$card-header-padding: 0.75rem 1rem !default
|
2019-10-13 14:12:30 +00:00
|
|
|
$card-header-shadow: 0 0.125em 0.25em rgba($scheme-invert, 0.1) !default
|
2017-07-13 18:44:35 +00:00
|
|
|
$card-header-weight: $weight-bold !default
|
|
|
|
|
2018-04-28 16:18:44 +00:00
|
|
|
$card-content-background-color: transparent !default
|
2019-05-17 12:50:39 +00:00
|
|
|
$card-content-padding: 1.5rem !default
|
2018-04-08 15:52:06 +00:00
|
|
|
|
2018-04-28 16:18:44 +00:00
|
|
|
$card-footer-background-color: transparent !default
|
2019-09-19 17:08:42 +00:00
|
|
|
$card-footer-border-top: 1px solid $border-light !default
|
2019-05-17 12:50:39 +00:00
|
|
|
$card-footer-padding: 0.75rem !default
|
|
|
|
|
|
|
|
$card-media-margin: $block-spacing !default
|
2017-07-13 18:44:35 +00:00
|
|
|
|
|
|
|
.card
|
2017-07-28 20:05:15 +00:00
|
|
|
background-color: $card-background-color
|
2020-09-27 09:35:07 +00:00
|
|
|
border-radius: $card-radius
|
2017-07-13 18:44:35 +00:00
|
|
|
box-shadow: $card-shadow
|
2017-07-28 20:05:15 +00:00
|
|
|
color: $card-color
|
2017-07-13 18:44:35 +00:00
|
|
|
max-width: 100%
|
2020-09-27 09:35:07 +00:00
|
|
|
overflow: $card-overflow
|
2017-07-13 18:44:35 +00:00
|
|
|
position: relative
|
|
|
|
|
2016-03-25 13:38:40 +00:00
|
|
|
.card-header
|
2018-04-08 15:52:06 +00:00
|
|
|
background-color: $card-header-background-color
|
2016-03-25 13:38:40 +00:00
|
|
|
align-items: stretch
|
2017-07-13 18:44:35 +00:00
|
|
|
box-shadow: $card-header-shadow
|
2016-03-25 13:38:40 +00:00
|
|
|
display: flex
|
|
|
|
|
|
|
|
.card-header-title
|
2016-10-30 17:35:39 +00:00
|
|
|
align-items: center
|
2017-07-28 20:05:15 +00:00
|
|
|
color: $card-header-color
|
2016-03-25 13:38:40 +00:00
|
|
|
display: flex
|
2016-07-31 10:45:56 +00:00
|
|
|
flex-grow: 1
|
2017-07-13 18:44:35 +00:00
|
|
|
font-weight: $card-header-weight
|
2019-05-17 12:50:39 +00:00
|
|
|
padding: $card-header-padding
|
2017-09-18 22:36:41 +00:00
|
|
|
&.is-centered
|
|
|
|
justify-content: center
|
2016-03-25 13:38:40 +00:00
|
|
|
|
|
|
|
.card-header-icon
|
2016-03-26 12:32:09 +00:00
|
|
|
align-items: center
|
2016-03-25 13:38:40 +00:00
|
|
|
cursor: pointer
|
2016-03-26 12:32:09 +00:00
|
|
|
display: flex
|
|
|
|
justify-content: center
|
2019-05-17 12:50:39 +00:00
|
|
|
padding: $card-header-padding
|
2016-03-25 13:38:40 +00:00
|
|
|
|
2016-01-24 00:03:43 +00:00
|
|
|
.card-image
|
|
|
|
display: block
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.card-content
|
2018-04-08 15:52:06 +00:00
|
|
|
background-color: $card-content-background-color
|
2019-05-17 12:50:39 +00:00
|
|
|
padding: $card-content-padding
|
2016-01-24 00:03:43 +00:00
|
|
|
|
|
|
|
.card-footer
|
2018-04-08 15:52:06 +00:00
|
|
|
background-color: $card-footer-background-color
|
2017-07-28 20:05:15 +00:00
|
|
|
border-top: $card-footer-border-top
|
2016-03-26 12:32:09 +00:00
|
|
|
align-items: stretch
|
|
|
|
display: flex
|
|
|
|
|
|
|
|
.card-footer-item
|
2016-03-25 13:38:40 +00:00
|
|
|
align-items: center
|
|
|
|
display: flex
|
2016-12-23 12:45:52 +00:00
|
|
|
flex-basis: 0
|
2016-07-31 10:45:56 +00:00
|
|
|
flex-grow: 1
|
2016-10-30 17:35:39 +00:00
|
|
|
flex-shrink: 0
|
2016-03-25 13:38:40 +00:00
|
|
|
justify-content: center
|
2019-05-17 12:50:39 +00:00
|
|
|
padding: $card-footer-padding
|
2016-03-26 12:32:09 +00:00
|
|
|
&:not(:last-child)
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("border", $card-footer-border-top)
|
2017-07-13 18:44:35 +00:00
|
|
|
|
|
|
|
// Combinations
|
2016-01-26 00:02:38 +00:00
|
|
|
|
|
|
|
.card
|
|
|
|
.media:not(:last-child)
|
2019-05-17 12:50:39 +00:00
|
|
|
margin-bottom: $card-media-margin
|