Skip to content

Commit

Permalink
Replace deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
christianezeani committed Nov 27, 2024
1 parent 4d0a8c6 commit ad9a71e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/scss/system/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/scss/system/_functions.scss
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit ad9a71e

Please sign in to comment.