fix: 🚨 future-proofing (fix deprecation warnings)
This commit is contained in:
parent
710805751e
commit
c5e0a72665
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue