add spacing mixins

This commit is contained in:
Ray Elliott 2020-05-24 14:42:30 +01:00
parent 7c39c15491
commit 1aa4e09998
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@
@include pb($bottom);
}
@mixin pad-h($left, $right: $left) {
@include pl($left);
@include pr($right);
}
@mixin pad($amount-t, $amount-r: $amount-t, $amount-b: $amount-t, $amount-l: $amount-r) {
padding: #{$amount-t * $line-height}rem
#{$amount-r * $line-height}rem