mirror of https://github.com/twbs/bootstrap.git
Fix utilities mixin failing on a single value
This commit is contained in:
parent
9eef51f988
commit
9ccf51f6d5
|
@ -8,8 +8,13 @@
|
|||
|
||||
// If the values are a list or string, convert it into a map
|
||||
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
||||
// A single value is converted to a map with a null key.
|
||||
@if length($values) == 1 {
|
||||
$values: (null: nth($values, 1));
|
||||
} @else {
|
||||
$values: zip($values, $values);
|
||||
}
|
||||
}
|
||||
|
||||
@each $key, $value in $values {
|
||||
$properties: map.get($utility, property);
|
||||
|
|
Loading…
Reference in New Issue