From 5f45b25eb0a677138081b5fb72394a395934cc84 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Oct 2024 19:19:52 +0200 Subject: Use list for prop metadata --- src/_props.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_props.scss b/src/_props.scss index b0b02c3..42f866e 100644 --- a/src/_props.scss +++ b/src/_props.scss @@ -15,7 +15,7 @@ @return true; } -@function def($name, $value: (), $metadata: null) { +@function def($name, $value: (), $metadata: ()) { @return ('prop-ref' $name $value $metadata); } @@ -92,13 +92,13 @@ } } -@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 $meta == $match-meta { + @if $match-meta == null or list.index($meta, $match-meta) != null { @include materialize-helper($name, $value); } } @else if meta.type-of($ref) == 'list' { @@ -108,7 +108,7 @@ $value: get(list.nth($r, 3)); $meta: get(list.nth($r, 4)); - @if $match-meta == nil or $meta == $match-meta { + @if $match-meta == null or list.index($meta, $match-meta) != null { @include materialize-helper($name, $value); } } -- cgit v1.2.3-70-g09d2