diff options
Diffstat (limited to 'src/_props.scss')
| -rw-r--r-- | src/_props.scss | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/_props.scss b/src/_props.scss index 0bca5a3..66a1d85 100644 --- a/src/_props.scss +++ b/src/_props.scss | |||
| @@ -87,13 +87,13 @@ | |||
| 87 | } | 87 | } |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | @mixin materialize($ref, $match-meta: null) { | 90 | @mixin materialize($ref, $match-meta: nil) { |
| 91 | @if is-prop-ref($ref) { | 91 | @if is-prop-ref($ref) { |
| 92 | $name: list.nth($ref, 2); | 92 | $name: list.nth($ref, 2); |
| 93 | $value: get(list.nth($ref, 3)); | 93 | $value: get(list.nth($ref, 3)); |
| 94 | $meta: get(list.nth($ref, 4)); | 94 | $meta: get(list.nth($ref, 4)); |
| 95 | 95 | ||
| 96 | @if $meta == $match-meta { | 96 | @if $match-meta != nil and $meta == $match-meta { |
| 97 | @include materialize-helper($name, $value); | 97 | @include materialize-helper($name, $value); |
| 98 | } | 98 | } |
| 99 | } @else if meta.type-of($ref) == 'list' { | 99 | } @else if meta.type-of($ref) == 'list' { |
| @@ -103,7 +103,7 @@ | |||
| 103 | $value: get(list.nth($r, 3)); | 103 | $value: get(list.nth($r, 3)); |
| 104 | $meta: get(list.nth($r, 4)); | 104 | $meta: get(list.nth($r, 4)); |
| 105 | 105 | ||
| 106 | @if $meta == $match-meta { | 106 | @if $match-meta != nil and $meta == $match-meta { |
| 107 | @include materialize-helper($name, $value); | 107 | @include materialize-helper($name, $value); |
| 108 | } | 108 | } |
| 109 | } | 109 | } |
