mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Col): compatible with less 4.0
This commit is contained in:
parent
f633f2bd03
commit
c670f7f426
@ -9,12 +9,12 @@
|
||||
.generate-col(24);
|
||||
.generate-col(@n, @i: 1) when (@i =< @n) {
|
||||
.van-col--@{i} {
|
||||
flex: 0 0 @i * 100% / 24;
|
||||
max-width: @i * 100% / 24;
|
||||
flex: 0 0 @i * (100% / 24);
|
||||
max-width: @i * (100% / 24);
|
||||
}
|
||||
|
||||
.van-col--offset-@{i} {
|
||||
margin-left: @i * 100% / 24;
|
||||
margin-left: @i * (100% / 24);
|
||||
}
|
||||
|
||||
.generate-col(@n, (@i + 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user