Refact(优惠券):优惠券重构
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user