vant-weapp/packages/col/index.less
2020-04-25 10:59:58 +08:00

16 lines
251 B
Plaintext

.van-col {
float: left;
box-sizing: border-box;
}
.generate(24);
.generate(@n, @i: 1) when (@i =< @n) {
.van-col--@{i} {
width: @i * 100% / 24;
}
.van-col--offset-@{i} {
margin-left: @i * 100% / 24;
}
.generate(@n, (@i + 1));
}