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
c2d62eee0c
commit
d8a81b26d8
@ -9,11 +9,11 @@
|
|||||||
.generate-col(24);
|
.generate-col(24);
|
||||||
.generate-col(@n, @i: 1) when (@i =< @n) {
|
.generate-col(@n, @i: 1) when (@i =< @n) {
|
||||||
.van-col--@{i} {
|
.van-col--@{i} {
|
||||||
width: @i * 100% / 24;
|
width: (@i * 100% / 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-col--offset-@{i} {
|
.van-col--offset-@{i} {
|
||||||
margin-left: @i * 100% / 24;
|
margin-left: (@i * 100% / 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
.generate-col(@n, (@i + 1));
|
.generate-col(@n, (@i + 1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user