improvement: make card header margin configurable
This commit is contained in:
parent
fd05f06bf2
commit
9ea824a06a
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue