From 351814a60e8909814c7120db96314a1a25d962bd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Oct 2024 20:14:51 +0200 Subject: More fix --- src/_props.scss | 14 +++++++++----- 1 file 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 @@ } } -@mixin materialize($ref, $match-meta: null) { +@mixin materialize($ref, $match-meta: ()) { @if is-prop-ref($ref) { $name: list.nth($ref, 2); $value: get(list.nth($ref, 3)); @@ -103,11 +103,13 @@ @each $item in $match-meta { $match: $match and list.index($meta, $item) != null; } + } @else if $match-meta == null and list.length($meta) == 0 { + $match: true; } @else { - $match: $match and list.index($meta, $match-meta) != null; + $match: list.index($meta, $match-meta) != null; } - @if $match-meta == null or $match { + @if $match { @include materialize-helper($name, $value); } } @else if meta.type-of($ref) == 'list' { @@ -122,11 +124,13 @@ @each $item in $match-meta { $match: $match and list.index($meta, $item) != null; } + } @else if $match-meta == null and list.length($meta) == 0 { + $match: true; } @else { - $match: $match and list.index($meta, $match-meta) != null; + $match: list.index($meta, $match-meta) != null; } - @if $match-meta == null or $match { + @if $match { @include materialize-helper($name, $value); } } -- cgit v1.2.3-70-g09d2