From 1683820fdf7e8ef1ed5c01d7179624eb9258afac Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Oct 2024 20:04:41 +0200 Subject: Fix again --- src/_props.scss | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/_props.scss') 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 @@ } } -@mixin materialize($ref, $match-meta: nil) { +@mixin materialize($ref, $match-meta: null) { @if is-prop-ref($ref) { $name: list.nth($ref, 2); $value: get(list.nth($ref, 3)); $meta: get(list.nth($ref, 4)); - @if $match-meta == nil or list.index($meta, $match-meta) != null { + $match: $match-meta == null; + @if meta.type-of($match-meta) == 'list' { + @each $item in $match-meta { + $match: $match or list.index($meta, $match-meta) != null; + } + } + + @if $match { @include materialize-helper($name, $value); } } @else if meta.type-of($ref) == 'list' { @@ -107,8 +114,15 @@ $name: list.nth($r, 2); $value: get(list.nth($r, 3)); $meta: get(list.nth($r, 4)); + + $match: $match-meta == null; + @if meta.type-of($match-meta) == 'list' { + @each $item in $match-meta { + $match: $match or list.index($meta, $match-meta) != null; + } + } - @if $match-meta == nil or list.index($meta, $match-meta) != null { + @if $match { @include materialize-helper($name, $value); } } -- cgit v1.2.3-70-g09d2