oo-loop 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scss/mixins/_loop.scss +11 -7
package/package.json
CHANGED
package/scss/mixins/_loop.scss
CHANGED
|
@@ -32,13 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
// Make sure to have the correct format or do not generate rules
|
|
34
34
|
@if isNotEmpty($data) {
|
|
35
|
-
@if
|
|
36
|
-
@each $value in $data {
|
|
37
|
-
#{$prefix}-#{$value}#{$suffix} {
|
|
38
|
-
@include loopProperties($properties, $value, $is-important);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
} @else if isMap($data) {
|
|
35
|
+
@if isMap($data) {
|
|
42
36
|
@each $key, $value in $data {
|
|
43
37
|
$affix: if(isEmpty($key), '', $affix);
|
|
44
38
|
|
|
@@ -55,6 +49,16 @@
|
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
}
|
|
52
|
+
} @else if isList($data) {
|
|
53
|
+
@each $value in $data {
|
|
54
|
+
#{$prefix}#{$affix}#{$value}#{$suffix} {
|
|
55
|
+
@include loopProperties($properties, $value, $is-important);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
} @else {
|
|
59
|
+
#{$prefix}#{$affix}#{$data}#{$suffix} {
|
|
60
|
+
@include loopProperties($properties, $data, $is-important);
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
}
|