From 8f7c7b01210e1632c00615203bfc4a3713def2a7 Mon Sep 17 00:00:00 2001
From: Volpeon <git@volpeon.ink>
Date: Fri, 25 Oct 2024 20:08:30 +0200
Subject: Bleh

---
 src/_props.scss | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/_props.scss b/src/_props.scss
index fdb3591..ec10b1f 100644
--- a/src/_props.scss
+++ b/src/_props.scss
@@ -98,14 +98,16 @@
         $value: get(list.nth($ref, 3));
         $meta:  get(list.nth($ref, 4));
 
-        $match: $match-meta == null;
+        $match: true;
         @if meta.type-of($match-meta) == 'list' {
             @each $item in $match-meta {
-                $match: $match or list.index($meta, $match-meta) != null;
+                $match: $match and list.index($meta, $item) != null;
             }
+        } @else {
+            $match: $match and list.index($meta, $match-meta) != null;
         }
 
-        @if $match {
+        @if $match-meta == null or $match {
             @include materialize-helper($name, $value);
         }
     } @else if meta.type-of($ref) == 'list' {
@@ -115,14 +117,16 @@
                 $value: get(list.nth($r, 3));
                 $meta:  get(list.nth($r, 4));
 
-                $match: $match-meta == null;
+                $match: true;
                 @if meta.type-of($match-meta) == 'list' {
                     @each $item in $match-meta {
-                        $match: $match or list.index($meta, $match-meta) != null;
+                        $match: $match and list.index($meta, $item) != null;
                     }
+                } @else {
+                    $match: $match and list.index($meta, $match-meta) != null;
                 }
         
-                @if $match {
+                @if $match-meta == null or $match {
                     @include materialize-helper($name, $value);
                 }
             }
-- 
cgit v1.2.3-70-g09d2