From ad9a71ee5da9ba197cce22e5bf48c288599750d3 Mon Sep 17 00:00:00 2001 From: Christian Ezeani Date: Wed, 27 Nov 2024 01:47:05 +0100 Subject: [PATCH] Replace deprecated functions --- src/scss/system/_core.scss | 4 ++-- src/scss/system/_functions.scss | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/scss/system/_core.scss b/src/scss/system/_core.scss index 56b1733..856ebae 100644 --- a/src/scss/system/_core.scss +++ b/src/scss/system/_core.scss @@ -15,8 +15,8 @@ // BEGIN: Device Width @mixin device($key) { - @if map-has-key(mbi.$device, $key) { - $value: map-get(mbi.$device, $key); + @if map.has-key(mbi.$device, $key) { + $value: map.get(mbi.$device, $key); @media (min-width: $value) { @content; diff --git a/src/scss/system/_functions.scss b/src/scss/system/_functions.scss index 8688cd0..93b9e83 100644 --- a/src/scss/system/_functions.scss +++ b/src/scss/system/_functions.scss @@ -1,16 +1,16 @@ @use './variables' as mbi; @function color($key: default, $darken: 0) { - $value: map-get(mbi.$color, $key); + $value: map.get(mbi.$color, $key); @return darken($value, $darken); } @function device($key: md) { - @if map-has-key(mbi.$device, $key) { - @return map-get(mbi.$device, $key); + @if map.has-key(mbi.$device, $key) { + @return map.get(mbi.$device, $key); } - @return map-get(mbi.$device, md); + @return map.get(mbi.$device, md); } @function var($name) {