mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
style: uniform line-height (#6862)
* style: uniform line-height * style: line height
This commit is contained in:
parent
cdb63ad98d
commit
95d3389d15
@ -50,7 +50,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: @padding-xs;
|
margin-bottom: @padding-xs;
|
||||||
font-size: @font-size-lg;
|
font-size: @font-size-lg;
|
||||||
line-height: 22px;
|
line-height: @line-height-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__tag {
|
&__tag {
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__bottom {
|
&__bottom {
|
||||||
line-height: 20px;
|
line-height: @line-height-md;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__price {
|
&__price {
|
||||||
|
@ -115,7 +115,7 @@ export default {
|
|||||||
|
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
this.list = this.list.map((item) =>
|
this.list = this.list.map((item) =>
|
||||||
(item.id === info.id ? info : item)
|
item.id === info.id ? info : item
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.list.push(info);
|
this.list.push(info);
|
||||||
@ -135,10 +135,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@import '../../style/var';
|
||||||
|
|
||||||
.demo-contact-card {
|
.demo-contact-card {
|
||||||
.van-popup {
|
.van-popup {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #f2f2f2;
|
background-color: @background-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: @coupon-name-font-size;
|
font-size: @coupon-name-font-size;
|
||||||
line-height: 20px;
|
line-height: @line-height-md;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__valid {
|
&__valid {
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
float: none;
|
float: none;
|
||||||
padding: 10px 10px 10px 0;
|
padding: 10px 10px 10px 0;
|
||||||
line-height: 18px;
|
line-height: @line-height-sm;
|
||||||
|
|
||||||
&:not(:last-child)::after {
|
&:not(:last-child)::after {
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
|
@ -43,6 +43,10 @@
|
|||||||
@font-size-md: 14px;
|
@font-size-md: 14px;
|
||||||
@font-size-lg: 16px;
|
@font-size-lg: 16px;
|
||||||
@font-weight-bold: 500;
|
@font-weight-bold: 500;
|
||||||
|
@line-height-xs: 14px;
|
||||||
|
@line-height-sm: 18px;
|
||||||
|
@line-height-md: 20px;
|
||||||
|
@line-height-lg: 22px;
|
||||||
@base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
@base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
||||||
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB',
|
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB',
|
||||||
'Microsoft Yahei', sans-serif;
|
'Microsoft Yahei', sans-serif;
|
||||||
@ -69,15 +73,15 @@
|
|||||||
@action-sheet-header-font-size: @font-size-lg;
|
@action-sheet-header-font-size: @font-size-lg;
|
||||||
@action-sheet-description-color: @gray-6;
|
@action-sheet-description-color: @gray-6;
|
||||||
@action-sheet-description-font-size: @font-size-md;
|
@action-sheet-description-font-size: @font-size-md;
|
||||||
@action-sheet-description-line-height: 20px;
|
@action-sheet-description-line-height: @line-height-md;
|
||||||
@action-sheet-item-background: @white;
|
@action-sheet-item-background: @white;
|
||||||
@action-sheet-item-font-size: @font-size-lg;
|
@action-sheet-item-font-size: @font-size-lg;
|
||||||
@action-sheet-item-line-height: 22px;
|
@action-sheet-item-line-height: @line-height-lg;
|
||||||
@action-sheet-item-text-color: @text-color;
|
@action-sheet-item-text-color: @text-color;
|
||||||
@action-sheet-item-disabled-text-color: @gray-5;
|
@action-sheet-item-disabled-text-color: @gray-5;
|
||||||
@action-sheet-subname-color: @gray-6;
|
@action-sheet-subname-color: @gray-6;
|
||||||
@action-sheet-subname-font-size: @font-size-sm;
|
@action-sheet-subname-font-size: @font-size-sm;
|
||||||
@action-sheet-subname-line-height: 20px;
|
@action-sheet-subname-line-height: @line-height-sm;
|
||||||
@action-sheet-close-icon-size: 22px;
|
@action-sheet-close-icon-size: 22px;
|
||||||
@action-sheet-close-icon-color: @gray-5;
|
@action-sheet-close-icon-color: @gray-5;
|
||||||
@action-sheet-close-icon-active-color: @gray-6;
|
@action-sheet-close-icon-active-color: @gray-6;
|
||||||
@ -99,13 +103,13 @@
|
|||||||
@address-list-disabled-text-color: @gray-6;
|
@address-list-disabled-text-color: @gray-6;
|
||||||
@address-list-disabled-text-padding: @padding-base * 5 0 @padding-md;
|
@address-list-disabled-text-padding: @padding-base * 5 0 @padding-md;
|
||||||
@address-list-disabled-text-font-size: @font-size-md;
|
@address-list-disabled-text-font-size: @font-size-md;
|
||||||
@address-list-disabled-text-line-height: 20px;
|
@address-list-disabled-text-line-height: @line-height-md;
|
||||||
@address-list-add-button-z-index: 999;
|
@address-list-add-button-z-index: 999;
|
||||||
@address-list-item-padding: @padding-sm;
|
@address-list-item-padding: @padding-sm;
|
||||||
@address-list-item-text-color: @text-color;
|
@address-list-item-text-color: @text-color;
|
||||||
@address-list-item-disabled-text-color: @gray-5;
|
@address-list-item-disabled-text-color: @gray-5;
|
||||||
@address-list-item-font-size: 13px;
|
@address-list-item-font-size: 13px;
|
||||||
@address-list-item-line-height: 18px;
|
@address-list-item-line-height: @line-height-sm;
|
||||||
@address-list-item-radio-icon-color: @red;
|
@address-list-item-radio-icon-color: @red;
|
||||||
@address-list-edit-icon-size: 20px;
|
@address-list-edit-icon-size: 20px;
|
||||||
|
|
||||||
@ -161,7 +165,7 @@
|
|||||||
@calendar-selected-day-size: 54px;
|
@calendar-selected-day-size: 54px;
|
||||||
@calendar-selected-day-color: @white;
|
@calendar-selected-day-color: @white;
|
||||||
@calendar-info-font-size: @font-size-xs;
|
@calendar-info-font-size: @font-size-xs;
|
||||||
@calendar-info-line-height: 14px;
|
@calendar-info-line-height: @line-height-xs;
|
||||||
@calendar-selected-day-background-color: @red;
|
@calendar-selected-day-background-color: @red;
|
||||||
@calendar-day-disabled-color: @gray-5;
|
@calendar-day-disabled-color: @gray-5;
|
||||||
@calendar-confirm-button-height: 36px;
|
@calendar-confirm-button-height: 36px;
|
||||||
@ -176,7 +180,7 @@
|
|||||||
@card-thumb-border-radius: @border-radius-lg;
|
@card-thumb-border-radius: @border-radius-lg;
|
||||||
@card-title-line-height: 16px;
|
@card-title-line-height: 16px;
|
||||||
@card-desc-color: @gray-7;
|
@card-desc-color: @gray-7;
|
||||||
@card-desc-line-height: 20px;
|
@card-desc-line-height: @line-height-md;
|
||||||
@card-price-color: @gray-8;
|
@card-price-color: @gray-8;
|
||||||
@card-origin-price-color: @gray-6;
|
@card-origin-price-color: @gray-6;
|
||||||
@card-num-color: @gray-6;
|
@card-num-color: @gray-6;
|
||||||
@ -197,7 +201,7 @@
|
|||||||
@cell-required-color: @red;
|
@cell-required-color: @red;
|
||||||
@cell-label-color: @gray-6;
|
@cell-label-color: @gray-6;
|
||||||
@cell-label-font-size: @font-size-sm;
|
@cell-label-font-size: @font-size-sm;
|
||||||
@cell-label-line-height: 18px;
|
@cell-label-line-height: @line-height-sm;
|
||||||
@cell-label-margin-top: @padding-base;
|
@cell-label-margin-top: @padding-base;
|
||||||
@cell-value-color: @gray-6;
|
@cell-value-color: @gray-6;
|
||||||
@cell-icon-size: 16px;
|
@cell-icon-size: 16px;
|
||||||
@ -228,12 +232,12 @@
|
|||||||
@circle-text-color: @text-color;
|
@circle-text-color: @text-color;
|
||||||
@circle-text-font-weight: @font-weight-bold;
|
@circle-text-font-weight: @font-weight-bold;
|
||||||
@circle-text-font-size: @font-size-md;
|
@circle-text-font-size: @font-size-md;
|
||||||
@circle-text-line-height: 18px;
|
@circle-text-line-height: @line-height-md;
|
||||||
|
|
||||||
// Collapse
|
// Collapse
|
||||||
@collapse-item-transition-duration: @animation-duration-base;
|
@collapse-item-transition-duration: @animation-duration-base;
|
||||||
@collapse-item-content-padding: @padding-sm @padding-md;
|
@collapse-item-content-padding: @padding-sm @padding-md;
|
||||||
@collapse-item-content-font-size: 14px;
|
@collapse-item-content-font-size: @font-size-md;
|
||||||
@collapse-item-content-line-height: 1.5;
|
@collapse-item-content-line-height: 1.5;
|
||||||
@collapse-item-content-text-color: @gray-6;
|
@collapse-item-content-text-color: @gray-6;
|
||||||
@collapse-item-content-background-color: @white;
|
@collapse-item-content-background-color: @white;
|
||||||
@ -243,7 +247,7 @@
|
|||||||
@contact-card-padding: @padding-md;
|
@contact-card-padding: @padding-md;
|
||||||
@contact-card-add-icon-size: 40px;
|
@contact-card-add-icon-size: 40px;
|
||||||
@contact-card-add-icon-color: @blue;
|
@contact-card-add-icon-color: @blue;
|
||||||
@contact-card-value-line-height: 20px;
|
@contact-card-value-line-height: @line-height-md;
|
||||||
|
|
||||||
// ContactEdit
|
// ContactEdit
|
||||||
@contact-edit-padding: @padding-md;
|
@contact-edit-padding: @padding-md;
|
||||||
@ -261,7 +265,7 @@
|
|||||||
// CountDown
|
// CountDown
|
||||||
@count-down-text-color: @text-color;
|
@count-down-text-color: @text-color;
|
||||||
@count-down-font-size: @font-size-md;
|
@count-down-font-size: @font-size-md;
|
||||||
@count-down-line-height: 20px;
|
@count-down-line-height: @line-height-md;
|
||||||
|
|
||||||
// Coupon
|
// Coupon
|
||||||
@coupon-margin: 0 @padding-sm @padding-sm;
|
@coupon-margin: 0 @padding-sm @padding-sm;
|
||||||
@ -291,7 +295,7 @@
|
|||||||
@coupon-list-empty-image-size: 200px;
|
@coupon-list-empty-image-size: 200px;
|
||||||
@coupon-list-empty-tip-color: @gray-6;
|
@coupon-list-empty-tip-color: @gray-6;
|
||||||
@coupon-list-empty-tip-font-size: @font-size-md;
|
@coupon-list-empty-tip-font-size: @font-size-md;
|
||||||
@coupon-list-empty-tip-line-height: 20px;
|
@coupon-list-empty-tip-line-height: @line-height-md;
|
||||||
|
|
||||||
// Dialog
|
// Dialog
|
||||||
@dialog-width: 320px;
|
@dialog-width: 320px;
|
||||||
@ -306,7 +310,7 @@
|
|||||||
@dialog-header-isolated-padding: @padding-lg 0;
|
@dialog-header-isolated-padding: @padding-lg 0;
|
||||||
@dialog-message-padding: @padding-lg;
|
@dialog-message-padding: @padding-lg;
|
||||||
@dialog-message-font-size: @font-size-md;
|
@dialog-message-font-size: @font-size-md;
|
||||||
@dialog-message-line-height: 20px;
|
@dialog-message-line-height: @line-height-md;
|
||||||
@dialog-message-max-height: 60vh;
|
@dialog-message-max-height: 60vh;
|
||||||
@dialog-has-title-message-text-color: @gray-7;
|
@dialog-has-title-message-text-color: @gray-7;
|
||||||
@dialog-has-title-message-padding-top: @padding-sm;
|
@dialog-has-title-message-padding-top: @padding-sm;
|
||||||
@ -330,7 +334,7 @@
|
|||||||
@dropdown-menu-title-active-text-color: @blue;
|
@dropdown-menu-title-active-text-color: @blue;
|
||||||
@dropdown-menu-title-disabled-text-color: @gray-6;
|
@dropdown-menu-title-disabled-text-color: @gray-6;
|
||||||
@dropdown-menu-title-padding: 0 @padding-xs;
|
@dropdown-menu-title-padding: 0 @padding-xs;
|
||||||
@dropdown-menu-title-line-height: 22px;
|
@dropdown-menu-title-line-height: @line-height-lg;
|
||||||
@dropdown-menu-option-active-color: @blue;
|
@dropdown-menu-option-active-color: @blue;
|
||||||
@dropdown-menu-content-max-height: 80%;
|
@dropdown-menu-content-max-height: 80%;
|
||||||
@dropdown-item-z-index: 10;
|
@dropdown-item-z-index: 10;
|
||||||
@ -341,8 +345,8 @@
|
|||||||
@empty-description-margin-top: @padding-md;
|
@empty-description-margin-top: @padding-md;
|
||||||
@empty-description-padding: 0 60px;
|
@empty-description-padding: 0 60px;
|
||||||
@empty-description-color: @gray-6;
|
@empty-description-color: @gray-6;
|
||||||
@empty-description-font-size: 14px;
|
@empty-description-font-size: @font-size-md;
|
||||||
@empty-description-line-height: 20px;
|
@empty-description-line-height: @line-height-md;
|
||||||
@empty-bottom-margin-top: 24px;
|
@empty-bottom-margin-top: 24px;
|
||||||
|
|
||||||
// Field
|
// Field
|
||||||
@ -401,7 +405,7 @@
|
|||||||
// IndexBar
|
// IndexBar
|
||||||
@index-bar-sidebar-z-index: 2;
|
@index-bar-sidebar-z-index: 2;
|
||||||
@index-bar-index-font-size: @font-size-xs;
|
@index-bar-index-font-size: @font-size-xs;
|
||||||
@index-bar-index-line-height: 14px;
|
@index-bar-index-line-height: @line-height-xs;
|
||||||
@index-bar-index-active-color: @green;
|
@index-bar-index-active-color: @green;
|
||||||
|
|
||||||
// Info
|
// Info
|
||||||
@ -426,7 +430,7 @@
|
|||||||
// ImagePreview
|
// ImagePreview
|
||||||
@image-preview-index-text-color: @white;
|
@image-preview-index-text-color: @white;
|
||||||
@image-preview-index-font-size: @font-size-md;
|
@image-preview-index-font-size: @font-size-md;
|
||||||
@image-preview-index-line-height: 22px;
|
@image-preview-index-line-height: @line-height-md;
|
||||||
@image-preview-index-text-shadow: 0 1px 1px @gray-8;
|
@image-preview-index-text-shadow: 0 1px 1px @gray-8;
|
||||||
@image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
|
@image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
|
||||||
@image-preview-close-icon-size: 22px;
|
@image-preview-close-icon-size: 22px;
|
||||||
@ -473,7 +477,7 @@
|
|||||||
@notify-text-color: @white;
|
@notify-text-color: @white;
|
||||||
@notify-padding: @padding-xs @padding-md;
|
@notify-padding: @padding-xs @padding-md;
|
||||||
@notify-font-size: @font-size-md;
|
@notify-font-size: @font-size-md;
|
||||||
@notify-line-height: 20px;
|
@notify-line-height: @line-height-md;
|
||||||
@notify-primary-background-color: @blue;
|
@notify-primary-background-color: @blue;
|
||||||
@notify-success-background-color: @green;
|
@notify-success-background-color: @green;
|
||||||
@notify-danger-background-color: @red;
|
@notify-danger-background-color: @red;
|
||||||
@ -535,7 +539,7 @@
|
|||||||
@picker-background-color: @white;
|
@picker-background-color: @white;
|
||||||
@picker-toolbar-height: 44px;
|
@picker-toolbar-height: 44px;
|
||||||
@picker-title-font-size: @font-size-lg;
|
@picker-title-font-size: @font-size-lg;
|
||||||
@picker-title-line-height: 20px;
|
@picker-title-line-height: @line-height-md;
|
||||||
@picker-action-padding: 0 @padding-md;
|
@picker-action-padding: 0 @padding-md;
|
||||||
@picker-action-font-size: @font-size-md;
|
@picker-action-font-size: @font-size-md;
|
||||||
@picker-confirm-action-color: @text-link-color;
|
@picker-confirm-action-color: @text-link-color;
|
||||||
@ -593,7 +597,7 @@
|
|||||||
@share-sheet-header-padding: @padding-sm @padding-md @padding-base;
|
@share-sheet-header-padding: @padding-sm @padding-md @padding-base;
|
||||||
@share-sheet-title-color: @text-color;
|
@share-sheet-title-color: @text-color;
|
||||||
@share-sheet-title-font-size: @font-size-md;
|
@share-sheet-title-font-size: @font-size-md;
|
||||||
@share-sheet-title-line-height: 20px;
|
@share-sheet-title-line-height: @line-height-md;
|
||||||
@share-sheet-description-color: @gray-6;
|
@share-sheet-description-color: @gray-6;
|
||||||
@share-sheet-description-font-size: @font-size-sm;
|
@share-sheet-description-font-size: @font-size-sm;
|
||||||
@share-sheet-description-line-height: 16px;
|
@share-sheet-description-line-height: 16px;
|
||||||
@ -622,7 +626,7 @@
|
|||||||
// Sidebar
|
// Sidebar
|
||||||
@sidebar-width: 80px;
|
@sidebar-width: 80px;
|
||||||
@sidebar-font-size: @font-size-md;
|
@sidebar-font-size: @font-size-md;
|
||||||
@sidebar-line-height: 20px;
|
@sidebar-line-height: @line-height-md;
|
||||||
@sidebar-text-color: @text-color;
|
@sidebar-text-color: @text-color;
|
||||||
@sidebar-disabled-text-color: @gray-5;
|
@sidebar-disabled-text-color: @gray-5;
|
||||||
@sidebar-padding: 20px @padding-sm;
|
@sidebar-padding: 20px @padding-sm;
|
||||||
@ -788,7 +792,7 @@
|
|||||||
@toast-font-size: @font-size-md;
|
@toast-font-size: @font-size-md;
|
||||||
@toast-text-color: @white;
|
@toast-text-color: @white;
|
||||||
@toast-loading-icon-color: @white;
|
@toast-loading-icon-color: @white;
|
||||||
@toast-line-height: 20px;
|
@toast-line-height: @line-height-md;
|
||||||
@toast-border-radius: @border-radius-lg;
|
@toast-border-radius: @border-radius-lg;
|
||||||
@toast-background-color: fade(@black, 70%);
|
@toast-background-color: fade(@black, 70%);
|
||||||
@toast-icon-size: 36px;
|
@toast-icon-size: 36px;
|
||||||
@ -831,7 +835,7 @@
|
|||||||
@uploader-mask-background-color: fade(@gray-8, 88%);
|
@uploader-mask-background-color: fade(@gray-8, 88%);
|
||||||
@uploader-mask-icon-size: 22px;
|
@uploader-mask-icon-size: 22px;
|
||||||
@uploader-mask-message-font-size: @font-size-sm;
|
@uploader-mask-message-font-size: @font-size-sm;
|
||||||
@uploader-mask-message-line-height: 14px;
|
@uploader-mask-message-line-height: @line-height-xs;
|
||||||
@uploader-loading-icon-size: 22px;
|
@uploader-loading-icon-size: 22px;
|
||||||
@uploader-loading-icon-color: @white;
|
@uploader-loading-icon-color: @white;
|
||||||
@uploader-disabled-opacity: @disabled-opacity;
|
@uploader-disabled-opacity: @disabled-opacity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user