feat(style): component using basic css variables
This commit is contained in:
@@ -37,13 +37,13 @@
|
||||
box-sizing: border-box;
|
||||
min-height: var(--van-coupon-content-height);
|
||||
padding: var(--van-coupon-content-padding);
|
||||
color: @gray-8;
|
||||
color: var(--van-gray-8);
|
||||
}
|
||||
|
||||
&__head {
|
||||
position: relative;
|
||||
min-width: var(--van-coupon-head-width);
|
||||
padding: 0 @padding-xs;
|
||||
padding: 0 var(--van-padding-xs);
|
||||
color: var(--van-coupon-amount-color);
|
||||
text-align: center;
|
||||
}
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
&__amount {
|
||||
margin-bottom: 6px;
|
||||
font-weight: @font-weight-bold;
|
||||
font-weight: var(--van-font-weight-bold);
|
||||
font-size: var(--van-coupon-amount-font-size);
|
||||
.ellipsis();
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
}
|
||||
|
||||
&__condition {
|
||||
font-size: @font-size-sm;
|
||||
font-size: var(--van-font-size-sm);
|
||||
line-height: 16px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
@@ -88,17 +88,17 @@
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
font-size: var(--van-coupon-name-font-size);
|
||||
line-height: @line-height-md;
|
||||
line-height: var(--van-line-height-md);
|
||||
}
|
||||
|
||||
&__valid {
|
||||
font-size: @font-size-sm;
|
||||
font-size: var(--van-font-size-sm);
|
||||
}
|
||||
|
||||
&__corner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: @padding-md;
|
||||
right: var(--van-padding-md);
|
||||
bottom: 0;
|
||||
|
||||
.van-checkbox__icon--checked .van-icon {
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
&__description {
|
||||
padding: var(--van-coupon-description-padding);
|
||||
font-size: @font-size-sm;
|
||||
font-size: var(--van-font-size-sm);
|
||||
border-top: 1px dashed var(--van-coupon-description-border-color);
|
||||
}
|
||||
|
||||
|
||||
+10
-10
@@ -1,18 +1,18 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@coupon-margin: 0 @padding-sm @padding-sm;
|
||||
@coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
|
||||
@coupon-content-height: 84px;
|
||||
@coupon-content-padding: 14px 0;
|
||||
@coupon-background-color: @white;
|
||||
@coupon-active-background-color: @active-color;
|
||||
@coupon-border-radius: @border-radius-lg;
|
||||
@coupon-background-color: var(--van-white);
|
||||
@coupon-active-background-color: var(--van-active-color);
|
||||
@coupon-border-radius: var(--van-border-radius-lg);
|
||||
@coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
|
||||
@coupon-head-width: 96px;
|
||||
@coupon-amount-color: @red;
|
||||
@coupon-amount-color: var(--van-red);
|
||||
@coupon-amount-font-size: 30px;
|
||||
@coupon-currency-font-size: 40%;
|
||||
@coupon-name-font-size: @font-size-md;
|
||||
@coupon-disabled-text-color: @gray-6;
|
||||
@coupon-description-padding: @padding-xs @padding-md;
|
||||
@coupon-description-border-color: @border-color;
|
||||
@coupon-corner-checkbox-icon-color: @red;
|
||||
@coupon-name-font-size: var(--van-font-size-md);
|
||||
@coupon-disabled-text-color: var(--van-gray-6);
|
||||
@coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);
|
||||
@coupon-description-border-color: var(--van-border-color);
|
||||
@coupon-corner-checkbox-icon-color: var(--van-red);
|
||||
|
||||
Reference in New Issue
Block a user