mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Contact: add less vars
This commit is contained in:
parent
62daac5cf6
commit
6fd8f2b1a4
@ -21,7 +21,7 @@
|
||||
}
|
||||
|
||||
.van-address-item {
|
||||
padding: 15px;
|
||||
padding: @address-list-item-padding;
|
||||
|
||||
&__value {
|
||||
padding-right: 34px;
|
||||
|
@ -1,21 +1,21 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-contact-card {
|
||||
padding: 15px;
|
||||
padding: @contact-card-padding;
|
||||
|
||||
&__value {
|
||||
margin-left: 5px;
|
||||
line-height: 20px;
|
||||
line-height: @contact-card-value-line-height;
|
||||
}
|
||||
|
||||
&--add {
|
||||
.van-contact-card__value {
|
||||
line-height: 40px;
|
||||
line-height: @contact-card-add-icon-size;
|
||||
}
|
||||
|
||||
.van-cell__left-icon {
|
||||
color: @blue;
|
||||
font-size: 40px;
|
||||
color: @contact-card-add-icon-color;
|
||||
font-size: @contact-card-add-icon-size;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
.van-contact-edit {
|
||||
&__buttons {
|
||||
padding: 30px 15px;
|
||||
padding: @contact-edit-buttons-padding;
|
||||
}
|
||||
|
||||
.van-cell__title {
|
||||
max-width: 65px;
|
||||
max-width: @contact-edit-field-label-width;
|
||||
}
|
||||
|
||||
.van-button {
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: @contact-edit-button-margin-bottom;
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
padding-bottom: 50px;
|
||||
|
||||
&__item {
|
||||
padding: 15px;
|
||||
padding: @contact-list-item-padding;
|
||||
}
|
||||
|
||||
&__item-value {
|
||||
@ -30,7 +30,7 @@
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 15px;
|
||||
font-size: 16px;
|
||||
font-size: @contact-list-edit-icon-size;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
|
||||
@ -38,6 +38,6 @@
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
z-index: @contact-list-add-button-z-index;
|
||||
}
|
||||
}
|
||||
|
@ -43,6 +43,7 @@
|
||||
@address-list-disabled-text-font-size: 12px;
|
||||
@address-list-disabled-text-line-height: 30px;
|
||||
@address-list-add-button-z-index: 9999;
|
||||
@address-list-item-padding: 15px;
|
||||
@address-list-item-text-color: @gray-darker;
|
||||
@address-list-item-disabled-text-color: @gray-dark;
|
||||
@address-list-item-font-size: 12px;
|
||||
@ -149,6 +150,22 @@
|
||||
@collapse-item-content-background-color: @white;
|
||||
@collapse-item-title-disabled-color: @gray;
|
||||
|
||||
// ContactCard
|
||||
@contact-card-padding: 15px;
|
||||
@contact-card-add-icon-size: 40px;
|
||||
@contact-card-add-icon-color: @blue;
|
||||
@contact-card-value-line-height: 20px;
|
||||
|
||||
// ContactEdit
|
||||
@contact-edit-buttons-padding: 30px 15px;
|
||||
@contact-edit-button-margin-bottom: 15px;
|
||||
@contact-edit-field-label-width: 65px;
|
||||
|
||||
// ContactList
|
||||
@contact-list-edit-icon-size: 16px;
|
||||
@contact-list-add-button-z-index: 9999;
|
||||
@contact-list-item-padding: 15px;
|
||||
|
||||
// Dialog
|
||||
@dialog-width: 85%;
|
||||
@dialog-font-size: 16px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user