fix: remove deprecation warnings from sass

This commit is contained in:
Alexander Navarro 2024-12-19 15:24:49 -03:00
parent e75f0bb5ca
commit b452baa6b9
3 changed files with 15 additions and 9 deletions

View file

@ -1,5 +1,6 @@
@use "./tokens" as *;
@use "./mixins";
@use "sass:math";
.msp-position-fixed {
position: fixed;
@ -214,20 +215,20 @@
}
@for $i from 0 through 100 {
.msp-w-#{$i} {
width: percentage(calc($i / 100));
width: math.percentage(calc($i / 100));
}
.msp-h-#{$i} {
height: percentage(calc($i / 100));
height: math.percentage(calc($i / 100));
}
}
@include mixins.responsive-steps(0, 100) using ($breakpoint, $index) {
.msp-w-#{$breakpoint}-#{$index} {
width: percentage(calc($index / 100));
width: math.percentage(calc($index / 100));
}
.msp-h-#{$breakpoint}-#{$index} {
height: percentage(calc($index / 100));
height: math.percentage(calc($index / 100));
}
}