mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
21 lines
309 B
Plaintext
21 lines
309 B
Plaintext
@import '../style/var';
|
|
|
|
.van-col {
|
|
float: left;
|
|
box-sizing: border-box;
|
|
min-height: 1px;
|
|
}
|
|
|
|
.generate-col(24);
|
|
.generate-col(@n, @i: 1) when (@i =< @n) {
|
|
.van-col--@{i} {
|
|
width: @i * 100% / 24;
|
|
}
|
|
|
|
.van-col--offset-@{i} {
|
|
margin-left: @i * 100% / 24;
|
|
}
|
|
|
|
.generate-col(@n, (@i + 1));
|
|
}
|