Tweak spacing classes to use rem straight away
This commit is contained in:
@@ -37,8 +37,9 @@ $spacing-properties: (
|
|||||||
|
|
||||||
$spacing-sizes: (
|
$spacing-sizes: (
|
||||||
null: $unit,
|
null: $unit,
|
||||||
|
'-double': $unit * 2,
|
||||||
'-small': $unit-small,
|
'-small': $unit-small,
|
||||||
'-none': 0
|
'-none': 0px
|
||||||
) !default;
|
) !default;
|
||||||
|
|
||||||
@each $property-namespace, $property in $spacing-properties {
|
@each $property-namespace, $property in $spacing-properties {
|
||||||
@@ -46,7 +47,7 @@ $spacing-sizes: (
|
|||||||
@each $size-namespace, $size in $spacing-sizes {
|
@each $size-namespace, $size in $spacing-sizes {
|
||||||
.u-#{$property-namespace}#{$direction-namespace}#{$size-namespace} {
|
.u-#{$property-namespace}#{$direction-namespace}#{$size-namespace} {
|
||||||
@each $direction in $direction-rules {
|
@each $direction in $direction-rules {
|
||||||
#{$property}#{$direction}: $size !important;
|
#{$property}#{$direction}: rem($size) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user