fix: 🚨 future-proofing (fix deprecation warnings)

This commit is contained in:
Sebin Nyshkim 2021-09-22 20:30:33 +02:00
parent 710805751e
commit c5e0a72665

View file

@ -1,3 +1,5 @@
@use "sass:math";
.flex {
display: flex;
flex-flow: row wrap;
@ -44,20 +46,20 @@
@for $i from 1 through 12 {
&-#{$i} {
$width: percentage(($i / 12));
$width: percentage(math.div($i, 12));
flex: 0 0 $width;
max-width: $width;
}
@include mq-desktop {
&-d-#{$i} {
$width: percentage(($i / 12));
$width: percentage(math.div($i, 12));
flex: 0 0 $width;
max-width: $width;
}
}
@include mq-mobile {
&-m-#{$i} {
$width: percentage(($i / 12));
$width: percentage(math.div($i, 12));
flex: 0 0 $width;
max-width: $width;
}