aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-25 20:04:41 +0200
committerVolpeon <git@volpeon.ink>2024-10-25 20:04:41 +0200
commit1683820fdf7e8ef1ed5c01d7179624eb9258afac (patch)
tree69d38c7588b354890f71285e01a0a8818fa9ea54 /src
parentFix (diff)
downloadiro-sass-1683820fdf7e8ef1ed5c01d7179624eb9258afac.tar.gz
iro-sass-1683820fdf7e8ef1ed5c01d7179624eb9258afac.tar.bz2
iro-sass-1683820fdf7e8ef1ed5c01d7179624eb9258afac.zip
Fix again
Diffstat (limited to 'src')
-rw-r--r--src/_props.scss20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/_props.scss b/src/_props.scss
index 523e5b1..fdb3591 100644
--- a/src/_props.scss
+++ b/src/_props.scss
@@ -92,13 +92,20 @@
92 } 92 }
93} 93}
94 94
95@mixin materialize($ref, $match-meta: nil) { 95@mixin materialize($ref, $match-meta: null) {
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));
99 $meta: get(list.nth($ref, 4)); 99 $meta: get(list.nth($ref, 4));
100 100
101 @if $match-meta == nil or list.index($meta, $match-meta) != null { 101 $match: $match-meta == null;
102 @if meta.type-of($match-meta) == 'list' {
103 @each $item in $match-meta {
104 $match: $match or list.index($meta, $match-meta) != null;
105 }
106 }
107
108 @if $match {
102 @include materialize-helper($name, $value); 109 @include materialize-helper($name, $value);
103 } 110 }
104 } @else if meta.type-of($ref) == 'list' { 111 } @else if meta.type-of($ref) == 'list' {
@@ -107,8 +114,15 @@
107 $name: list.nth($r, 2); 114 $name: list.nth($r, 2);
108 $value: get(list.nth($r, 3)); 115 $value: get(list.nth($r, 3));
109 $meta: get(list.nth($r, 4)); 116 $meta: get(list.nth($r, 4));
117
118 $match: $match-meta == null;
119 @if meta.type-of($match-meta) == 'list' {
120 @each $item in $match-meta {
121 $match: $match or list.index($meta, $match-meta) != null;
122 }
123 }
110 124
111 @if $match-meta == nil or list.index($meta, $match-meta) != null { 125 @if $match {
112 @include materialize-helper($name, $value); 126 @include materialize-helper($name, $value);
113 } 127 }
114 } 128 }