improvement: make card header margin configurable

This commit is contained in:
Kazhnuz 2021-07-28 17:01:11 +02:00
parent fd05f06bf2
commit 9ea824a06a

View file

@ -7,6 +7,7 @@
$card-bigpad: $lineheight; $card-bigpad: $lineheight;
$card-smallpad: $lineheight_half; $card-smallpad: $lineheight_half;
$header-margin: $lineheight;
@mixin card($size) { @mixin card($size) {
@include border-radius(); @include border-radius();
@ -20,9 +21,15 @@ $card-smallpad: $lineheight_half;
margin-right: $size; margin-right: $size;
&:first-child { &:first-child {
margin-top: $size; margin-top: $size;
&.card-header {
margin-top:$header-margin;
}
} }
&:last-child { &:last-child {
margin-bottom: $size; margin-bottom: $size;
&.card-header {
margin-bottom:$header-margin;
}
} }
} }
} }