improvement: make card header margin configurable

This commit is contained in:
Kazhnuz Klappsthul 2021-07-28 17:01:11 +02:00
parent fd05f06bf2
commit 9ea824a06a
1 changed files with 7 additions and 0 deletions

View File

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