From ec59416b6baf6dc70899647958158ab7fe08d580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zasa=C5=84ski?= <73193407+jakubzasanski@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:31:56 +0100 Subject: [PATCH 1/2] Fix `The Sass if() syntax is deprecated in favor of the modern CSS syntax.` --- stylesheets/breakpoint/_parse.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stylesheets/breakpoint/_parse.scss b/stylesheets/breakpoint/_parse.scss index f6257b7..f8ce560 100644 --- a/stylesheets/breakpoint/_parse.scss +++ b/stylesheets/breakpoint/_parse.scss @@ -23,9 +23,7 @@ $query-fallback: false; $return: (); - $or-list: if(list.separator($query) == 'comma', true, false); - - @if ($or-list == false) { + @if (list.separator($query) != 'comma') { $query-string: parse($query); } @else { $length: list.length($query); @@ -33,9 +31,13 @@ $query-string: ''; @for $i from 1 through $length { - $query-string: $query-string + - if($i == 1, '', ', ') + - parse(list.nth($query, $i)); + $parsed-item: parse(list.nth($query, $i)); + + @if $i == 1 { + $query-string: $parsed-item; + } @else { + $query-string: $query-string + ", " + $parsed-item; + } } } From 3ee0da718eafb31591215f8b03bce639387c650d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zasa=C5=84ski?= <73193407+jakubzasanski@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:35:31 +0100 Subject: [PATCH 2/2] Cleaner look --- stylesheets/breakpoint/_parse.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/breakpoint/_parse.scss b/stylesheets/breakpoint/_parse.scss index f8ce560..f73288e 100644 --- a/stylesheets/breakpoint/_parse.scss +++ b/stylesheets/breakpoint/_parse.scss @@ -33,7 +33,7 @@ @for $i from 1 through $length { $parsed-item: parse(list.nth($query, $i)); - @if $i == 1 { + @if ($i == 1) { $query-string: $parsed-item; } @else { $query-string: $query-string + ", " + $parsed-item;