Refact(优惠券):优惠券重构

This commit is contained in:
linxi
2024-09-11 11:08:15 +08:00
parent b0fffe8101
commit 6f24c71d96
5 changed files with 159 additions and 5 deletions
+12
View File
@@ -113,6 +113,14 @@ each(@colors, {
.generateRadius(100);
/*=========================================*/
.generateSpacing(@n, @i: 0) when(@i <= @n) {
@baseSpacing:@i * 1rpx;
.v12-spacing-@{i} {
letter-spacing: @baseSpacing !important;
}
.generateSpacing(@n, (@i + 1))
}
.generateSpacing(100);
/*====================flex 函数表达式=====================*/
.v12-d-flex{
@@ -141,6 +149,10 @@ each(@colors, {
display: flex;
justify-content: center;
}
.v12-justify-around{
display: flex;
justify-content: space-around;
}
.v12-justify-between{
display: flex;
justify-content: space-between;