diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_props.scss | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/_props.scss b/src/_props.scss index ec10b1f..300fc28 100644 --- a/src/_props.scss +++ b/src/_props.scss | |||
@@ -92,7 +92,7 @@ | |||
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
95 | @mixin materialize($ref, $match-meta: null) { | 95 | @mixin materialize($ref, $match-meta: ()) { |
96 | @if is-prop-ref($ref) { | 96 | @if is-prop-ref($ref) { |
97 | $name: list.nth($ref, 2); | 97 | $name: list.nth($ref, 2); |
98 | $value: get(list.nth($ref, 3)); | 98 | $value: get(list.nth($ref, 3)); |
@@ -103,11 +103,13 @@ | |||
103 | @each $item in $match-meta { | 103 | @each $item in $match-meta { |
104 | $match: $match and list.index($meta, $item) != null; | 104 | $match: $match and list.index($meta, $item) != null; |
105 | } | 105 | } |
106 | } @else if $match-meta == null and list.length($meta) == 0 { | ||
107 | $match: true; | ||
106 | } @else { | 108 | } @else { |
107 | $match: $match and list.index($meta, $match-meta) != null; | 109 | $match: list.index($meta, $match-meta) != null; |
108 | } | 110 | } |
109 | 111 | ||
110 | @if $match-meta == null or $match { | 112 | @if $match { |
111 | @include materialize-helper($name, $value); | 113 | @include materialize-helper($name, $value); |
112 | } | 114 | } |
113 | } @else if meta.type-of($ref) == 'list' { | 115 | } @else if meta.type-of($ref) == 'list' { |
@@ -122,11 +124,13 @@ | |||
122 | @each $item in $match-meta { | 124 | @each $item in $match-meta { |
123 | $match: $match and list.index($meta, $item) != null; | 125 | $match: $match and list.index($meta, $item) != null; |
124 | } | 126 | } |
127 | } @else if $match-meta == null and list.length($meta) == 0 { | ||
128 | $match: true; | ||
125 | } @else { | 129 | } @else { |
126 | $match: $match and list.index($meta, $match-meta) != null; | 130 | $match: list.index($meta, $match-meta) != null; |
127 | } | 131 | } |
128 | 132 | ||
129 | @if $match-meta == null or $match { | 133 | @if $match { |
130 | @include materialize-helper($name, $value); | 134 | @include materialize-helper($name, $value); |
131 | } | 135 | } |
132 | } | 136 | } |