style: compatible with new versions of sass (#23070)

* style: compatible with new versions of sass

* chore: update

* chore: update

* chore: update

* chore: update
This commit is contained in:
sea
2025-12-12 21:21:13 +08:00
committed by GitHub
parent 68a08d262a
commit cbb5a0e606
2 changed files with 20 additions and 4 deletions

View File

@@ -14,11 +14,19 @@
@for $i from 0 through 24 {
.#{$namespace}-col-#{$i} {
display: if($i == 0, none, block);
@if $i == 0 {
display: none;
} @else {
display: block;
}
max-width: (math.div(1, 24) * $i * 100) * 1%;
flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
@include when(guttered) {
display: if($i == 0, none, block);
@if $i == 0 {
display: none;
} @else {
display: block;
}
}
}

View File

@@ -7,11 +7,19 @@
@include res($size) {
@for $i from 0 through 24 {
.#{$namespace}-col-#{$size}-#{$i} {
display: if($i == 0, none, block);
@if $i == 0 {
display: none;
} @else {
display: block;
}
max-width: (math.div(1, 24) * $i * 100) * 1%;
flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
@include when(guttered) {
display: if($i == 0, none, block);
@if $i == 0 {
display: none;
} @else {
display: block;
}
}
}