mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-25 07:49:15 +08:00
[improvement] Address: add less vars
This commit is contained in:
parent
e2f98e59da
commit
62daac5cf6
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
.van-address-edit {
|
.van-address-edit {
|
||||||
&__buttons {
|
&__buttons {
|
||||||
padding: 30px 15px;
|
padding: @address-edit-buttons-padding;
|
||||||
|
|
||||||
.van-button {
|
.van-button {
|
||||||
margin-bottom: 15px;
|
margin-bottom: @address-edit-button-margin-bottom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,8 +13,8 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
&__finish {
|
&__finish {
|
||||||
color: @blue;
|
color: @address-edit-detail-finish-color;
|
||||||
font-size: 12px;
|
font-size: @address-edit-detail-fnish-font-size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 9999;
|
z-index: @address-list-add-button-z-index;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__disabled-text {
|
&__disabled-text {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
color: @gray-dark;
|
color: @address-list-disabled-text-color;
|
||||||
font-size: 12px;
|
font-size: @address-list-disabled-text-font-size;
|
||||||
line-height: 30px;
|
line-height: @address-list-disabled-text-line-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,15 +35,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__address {
|
&__address {
|
||||||
color: @gray-darker;
|
color: @address-list-item-text-color;
|
||||||
font-size: 12px;
|
font-size: @address-list-item-font-size;
|
||||||
line-height: 16px;
|
line-height: @address-list-item-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--disabled {
|
&--disabled {
|
||||||
.van-address-item__name,
|
.van-address-item__name,
|
||||||
.van-address-item__address {
|
.van-address-item__address {
|
||||||
color: @gray-dark;
|
color: @address-list-item-disabled-text-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
font-size: 16px;
|
font-size: @address-list-edit-icon-size;
|
||||||
transform: translate(0, -50%);
|
transform: translate(0, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,23 @@
|
|||||||
@action-sheet-close-icon-size: 18px;
|
@action-sheet-close-icon-size: 18px;
|
||||||
@action-sheet-close-icon-color: @gray-dark;
|
@action-sheet-close-icon-color: @gray-dark;
|
||||||
|
|
||||||
|
// AddressEdit
|
||||||
|
@address-edit-buttons-padding: 30px 15px;
|
||||||
|
@address-edit-button-margin-bottom: 15px;
|
||||||
|
@address-edit-detail-finish-color: @blue;
|
||||||
|
@address-edit-detail-fnish-font-size: 12px;
|
||||||
|
|
||||||
|
// AddressList
|
||||||
|
@address-list-disabled-text-color: @gray-dark;
|
||||||
|
@address-list-disabled-text-font-size: 12px;
|
||||||
|
@address-list-disabled-text-line-height: 30px;
|
||||||
|
@address-list-add-button-z-index: 9999;
|
||||||
|
@address-list-item-text-color: @gray-darker;
|
||||||
|
@address-list-item-disabled-text-color: @gray-dark;
|
||||||
|
@address-list-item-font-size: 12px;
|
||||||
|
@address-list-item-line-height: 16px;
|
||||||
|
@address-list-edit-icon-size: 16px;
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
@button-mini-height: 22px;
|
@button-mini-height: 22px;
|
||||||
@button-mini-min-width: 50px;
|
@button-mini-min-width: 50px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user