diff --git a/src/assets/scss/tools/tools-media.scss b/src/assets/scss/tools/tools-media.scss index 9bb573d8..0560d79b 100644 --- a/src/assets/scss/tools/tools-media.scss +++ b/src/assets/scss/tools/tools-media.scss @@ -4,6 +4,8 @@ // ------------------ @use "sass:list"; @use "sass:meta"; +@use "sass:map"; +@use "../settings/settings-breakpoints" as *; @function contains($list, $item) { @return list.index($list, $item) != null; @@ -35,8 +37,8 @@ @error 'Invalid units provided'; } } @else if meta.variable-exists(breakpoints) { - @if map-has-key($breakpoints, $breakpoint) { - @media (#{$rule}-#{$dimension}: #{inspect(map-get($breakpoints, $breakpoint))}) { + @if map.has-key($breakpoints, $breakpoint) { + @media (#{$rule}-#{$dimension}: #{meta.inspect(map.get($breakpoints, $breakpoint))}) { @content; } } @else {