Fix bug with unit in spacing mixin.
This commit is contained in:
parent
17d3ac7f81
commit
ce9d9ff8cc
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
@mixin spacing($property, $spacing, $unit: 'rem') {
|
@mixin spacing($property, $spacing) {
|
||||||
$converted-list: ();
|
$converted-list: ();
|
||||||
|
|
||||||
@each $x in $spacing {
|
@each $x in $spacing {
|
||||||
|
$unit: 'rem';
|
||||||
@if $x == 0 {
|
@if $x == 0 {
|
||||||
$unit: '';
|
$unit: '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue