mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user