add all margin spacing to mixins
This commit is contained in:
parent
05053c1b68
commit
d08c29633c
|
@ -17,6 +17,13 @@
|
|||
@include margin-b($bottom);
|
||||
}
|
||||
|
||||
@mixin margin($amount-t, $amount-r: $amount-t, $amount-b: $amount-t, $amount-l: $amount-r) {
|
||||
margin: #{$amount-t * $line-height}rem
|
||||
#{$amount-r * $line-height}rem
|
||||
#{$amount-b * $line-height}rem
|
||||
#{$amount-l * $line-height}rem;
|
||||
}
|
||||
|
||||
@mixin pad-t($amount) {
|
||||
padding-top: #{$amount * $line-height}rem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue