mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
style: component background color using --van-background-color-light (#9754)
This commit is contained in:
parent
8db19b76c2
commit
33d777d6b2
@ -41,7 +41,7 @@ There are some [basic variables](<(https://github.com/youzan/vant/blob/dev/packa
|
||||
@active-opacity: 0.7;
|
||||
@disabled-opacity: 0.5;
|
||||
@background-color: @gray-1;
|
||||
@background-color-light: #fafafa;
|
||||
@background-color-light: @white;
|
||||
@text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
|
@ -47,7 +47,7 @@ Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置
|
||||
@active-opacity: 0.7;
|
||||
@disabled-opacity: 0.5;
|
||||
@background-color: @gray-1;
|
||||
@background-color-light: #fafafa;
|
||||
@background-color-light: @white;
|
||||
@text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
|
@ -7,4 +7,4 @@
|
||||
@action-bar-icon-font-size: var(--van-font-size-xs);
|
||||
@action-bar-icon-active-color: var(--van-active-color);
|
||||
@action-bar-icon-text-color: var(--van-gray-7);
|
||||
@action-bar-icon-background-color: var(--van-white);
|
||||
@action-bar-icon-background-color: var(--van-background-color-light);
|
||||
|
@ -153,7 +153,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-action-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-action-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-bar-height | _50px_ | - |
|
||||
| --van-action-bar-icon-width | _48px_ | - |
|
||||
| --van-action-bar-icon-height | _100%_ | - |
|
||||
@ -162,7 +162,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - |
|
||||
| --van-action-bar-icon-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - |
|
||||
| --van-action-bar-icon-background-color | _var(--van-white)_ | - |
|
||||
| --van-action-bar-icon-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-bar-button-height | _40px_ | - |
|
||||
| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - |
|
||||
| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - |
|
||||
|
@ -155,18 +155,18 @@ import type {
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| -------------------------------------- | ---------------------------- | ---- |
|
||||
| --van-action-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-action-bar-height | _50px_ | - |
|
||||
| --van-action-bar-icon-width | _48px_ | - |
|
||||
| --van-action-bar-icon-height | _100%_ | - |
|
||||
| --van-action-bar-icon-color | _var(--van-text-color)_ | - |
|
||||
| --van-action-bar-icon-size | _18px_ | - |
|
||||
| --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - |
|
||||
| --van-action-bar-icon-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - |
|
||||
| --van-action-bar-icon-background-color | _var(--van-white)_ | - |
|
||||
| --van-action-bar-button-height | _40px_ | - |
|
||||
| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - |
|
||||
| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-action-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-bar-height | _50px_ | - |
|
||||
| --van-action-bar-icon-width | _48px_ | - |
|
||||
| --van-action-bar-icon-height | _100%_ | - |
|
||||
| --van-action-bar-icon-color | _var(--van-text-color)_ | - |
|
||||
| --van-action-bar-icon-size | _18px_ | - |
|
||||
| --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - |
|
||||
| --van-action-bar-icon-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - |
|
||||
| --van-action-bar-icon-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-bar-button-height | _40px_ | - |
|
||||
| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - |
|
||||
| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - |
|
||||
|
@ -1,4 +1,4 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@action-bar-background-color: var(--van-white);
|
||||
@action-bar-background-color: var(--van-background-color-light);
|
||||
@action-bar-height: 50px;
|
||||
|
@ -246,7 +246,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-action-sheet-description-color | _var(--van-gray-6)_ | - |
|
||||
| --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-action-sheet-item-background | _var(--van-white)_ | - |
|
||||
| --van-action-sheet-item-background | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - |
|
||||
| --van-action-sheet-item-text-color | _var(--van-text-color)_ | - |
|
||||
|
@ -258,7 +258,7 @@ import type { ActionSheetProps, ActionSheetAction } from 'vant';
|
||||
| --van-action-sheet-description-color | _var(--van-gray-6)_ | - |
|
||||
| --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-action-sheet-item-background | _var(--van-white)_ | - |
|
||||
| --van-action-sheet-item-background | _var(--van-background-color-light)_ | - |
|
||||
| --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - |
|
||||
| --van-action-sheet-item-text-color | _var(--van-text-color)_ | - |
|
||||
|
@ -6,7 +6,7 @@
|
||||
@action-sheet-description-color: var(--van-gray-6);
|
||||
@action-sheet-description-font-size: var(--van-font-size-md);
|
||||
@action-sheet-description-line-height: var(--van-line-height-md);
|
||||
@action-sheet-item-background: var(--van-white);
|
||||
@action-sheet-item-background: var(--van-background-color-light);
|
||||
@action-sheet-item-font-size: var(--van-font-size-lg);
|
||||
@action-sheet-item-line-height: var(--van-line-height-lg);
|
||||
@action-sheet-item-text-color: var(--van-text-color);
|
||||
|
@ -30,7 +30,7 @@
|
||||
width: 100%;
|
||||
padding-left: var(--van-padding-md);
|
||||
padding-right: var(--van-padding-md);
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
|
||||
&__add {
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
.van-address-item {
|
||||
padding: var(--van-address-list-item-padding);
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
border-radius: var(--van-border-radius-lg);
|
||||
|
||||
&:not(:last-child) {
|
||||
|
@ -88,7 +88,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-badge {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-badge__wrapper {
|
||||
margin-left: var(--van-padding-md);
|
||||
|
@ -184,7 +184,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-button-default-line-height | _1.2_ | - |
|
||||
| --van-button-default-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-button-default-color | _var(--van-text-color)_ | - |
|
||||
| --van-button-default-background-color | _var(--van-white)_ | - |
|
||||
| --van-button-default-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-button-default-border-color | _var(--van-border-color)_ | - |
|
||||
| --van-button-primary-color | _var(--van-white)_ | - |
|
||||
| --van-button-primary-background-color | _var(--van-primary-color)_ | - |
|
||||
|
@ -207,7 +207,7 @@ import type {
|
||||
| --van-button-default-line-height | _1.2_ | - |
|
||||
| --van-button-default-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-button-default-color | _var(--van-text-color)_ | - |
|
||||
| --van-button-default-background-color | _var(--van-white)_ | - |
|
||||
| --van-button-default-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-button-default-border-color | _var(--van-border-color)_ | - |
|
||||
| --van-button-primary-color | _var(--van-white)_ | - |
|
||||
| --van-button-primary-background-color | _var(--van-primary-color)_ | - |
|
||||
|
@ -144,7 +144,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-button {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.van-button {
|
||||
&--large {
|
||||
|
@ -13,7 +13,7 @@
|
||||
@button-default-line-height: 1.2;
|
||||
@button-default-font-size: var(--van-font-size-lg);
|
||||
@button-default-color: var(--van-text-color);
|
||||
@button-default-background-color: var(--van-white);
|
||||
@button-default-background-color: var(--van-background-color-light);
|
||||
@button-default-border-color: var(--van-border-color);
|
||||
@button-primary-color: var(--van-white);
|
||||
@button-primary-background-color: var(--van-primary-color);
|
||||
|
@ -381,7 +381,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-calendar-background-color | _var(--van-white)_ | - |
|
||||
| --van-calendar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-calendar-popup-height | _80%_ | - |
|
||||
| --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - |
|
||||
| --van-calendar-header-title-height | _44px_ | - |
|
||||
|
@ -387,7 +387,7 @@ calendarRef.value?.reset();
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-calendar-background-color | _var(--van-white)_ | - |
|
||||
| --van-calendar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-calendar-popup-height | _80%_ | - |
|
||||
| --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - |
|
||||
| --van-calendar-header-title-height | _44px_ | - |
|
||||
|
@ -1,6 +1,6 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@calendar-background-color: var(--van-white);
|
||||
@calendar-background-color: var(--van-background-color-light);
|
||||
@calendar-popup-height: 80%;
|
||||
@calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
|
||||
@calendar-header-title-height: 44px;
|
||||
|
@ -75,6 +75,6 @@ const imageURL = 'https://img.yzcdn.cn/vant/ipad.jpeg';
|
||||
|
||||
<style lang="less">
|
||||
.demo-card {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
</style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@cell-group-background-color: var(--van-white);
|
||||
@cell-group-background-color: var(--van-background-color-light);
|
||||
@cell-group-title-color: var(--van-gray-6);
|
||||
@cell-group-title-padding: var(--van-padding-md) var(--van-padding-md)
|
||||
var(--van-padding-xs);
|
||||
|
@ -213,7 +213,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-cell-vertical-padding | _10px_ | - |
|
||||
| --van-cell-horizontal-padding | _var(--van-padding-md)_ | - |
|
||||
| --van-cell-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-cell-background-color | _var(--van-white)_ | - |
|
||||
| --van-cell-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-cell-border-color | _var(--van-border-color)_ | - |
|
||||
| --van-cell-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-cell-required-color | _var(--van-danger-color)_ | - |
|
||||
@ -227,7 +227,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - |
|
||||
| --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-cell-group-background-color | _var(--van-white)_ | - |
|
||||
| --van-cell-group-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-cell-group-title-color | _var(--van-gray-6)_ | - |
|
||||
| --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - |
|
||||
| --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - |
|
||||
|
@ -218,7 +218,7 @@ import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant';
|
||||
| --van-cell-vertical-padding | _10px_ | - |
|
||||
| --van-cell-horizontal-padding | _var(--van-padding-md)_ | - |
|
||||
| --van-cell-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-cell-background-color | _var(--van-white)_ | - |
|
||||
| --van-cell-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-cell-border-color | _var(--van-border-color)_ | - |
|
||||
| --van-cell-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-cell-required-color | _var(--van-danger-color)_ | - |
|
||||
@ -232,7 +232,7 @@ import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant';
|
||||
| --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - |
|
||||
| --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-cell-group-background-color | _var(--van-white)_ | - |
|
||||
| --van-cell-group-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-cell-group-title-color | _var(--van-gray-6)_ | - |
|
||||
| --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - |
|
||||
| --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - |
|
||||
|
@ -5,7 +5,7 @@
|
||||
@cell-vertical-padding: 10px;
|
||||
@cell-horizontal-padding: var(--van-padding-md);
|
||||
@cell-text-color: var(--van-text-color);
|
||||
@cell-background-color: var(--van-white);
|
||||
@cell-background-color: var(--van-background-color-light);
|
||||
@cell-border-color: var(--van-border-color);
|
||||
@cell-active-color: var(--van-active-color);
|
||||
@cell-required-color: var(--van-danger-color);
|
||||
|
@ -70,7 +70,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-col {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.van-doc-demo-block {
|
||||
padding: 0 var(--van-padding-md);
|
||||
|
@ -5,5 +5,5 @@
|
||||
@collapse-item-content-font-size: var(--van-font-size-md);
|
||||
@collapse-item-content-line-height: 1.5;
|
||||
@collapse-item-content-text-color: var(--van-gray-6);
|
||||
@collapse-item-content-background-color: var(--van-white);
|
||||
@collapse-item-content-background-color: var(--van-background-color-light);
|
||||
@collapse-item-title-disabled-color: var(--van-gray-5);
|
||||
|
@ -197,5 +197,5 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-collapse-item-content-line-height | _1.5_ | - |
|
||||
| --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - |
|
||||
| --van-collapse-item-content-background-color | _var(--van-white)_ | - |
|
||||
| --van-collapse-item-content-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - |
|
||||
|
@ -195,5 +195,5 @@ collapseItemRef.value?.toggle();
|
||||
| --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-collapse-item-content-line-height | _1.5_ | - |
|
||||
| --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - |
|
||||
| --van-collapse-item-content-background-color | _var(--van-white)_ | - |
|
||||
| --van-collapse-item-content-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - |
|
||||
|
@ -160,7 +160,7 @@ There are all **Basic Variables** below, for component CSS Variables, please ref
|
||||
--van-active-opacity: 0.7;
|
||||
--van-disabled-opacity: 0.5;
|
||||
--van-background-color: var(--van-gray-1);
|
||||
--van-background-color-light: #fafafa;
|
||||
--van-background-color-light: var(--van-white);
|
||||
--van-text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
|
@ -162,7 +162,7 @@ Vant 中的 CSS 变量分为 **基础变量** 和 **组件变量**。组件变
|
||||
--van-active-opacity: 0.7;
|
||||
--van-disabled-opacity: 0.5;
|
||||
--van-background-color: var(--van-gray-1);
|
||||
--van-background-color-light: #fafafa;
|
||||
--van-background-color-light: var(--van-white);
|
||||
--van-text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
|
@ -57,7 +57,7 @@
|
||||
z-index: var(--van-contact-list-add-button-z-index);
|
||||
padding-left: var(--van-padding-md);
|
||||
padding-right: var(--van-padding-md);
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
|
||||
&__add {
|
||||
|
@ -91,7 +91,7 @@ const onFinish = () => Toast(t('finished'));
|
||||
|
||||
<style lang="less">
|
||||
.demo-count-down {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-count-down {
|
||||
margin-left: var(--van-padding-md);
|
||||
|
@ -168,7 +168,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - |
|
||||
| --van-coupon-content-height | _84px_ | - |
|
||||
| --van-coupon-content-padding | _14px 0_ | - |
|
||||
| --van-coupon-background-color | _var(--van-white)_ | - |
|
||||
| --van-coupon-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-coupon-active-background-color | _var(--van-active-color)_ | - |
|
||||
| --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - |
|
||||
| --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - |
|
||||
|
@ -170,7 +170,7 @@ import type { CouponCellProps, CouponListProps } from 'vant';
|
||||
| --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - |
|
||||
| --van-coupon-content-height | _84px_ | - |
|
||||
| --van-coupon-content-padding | _14px 0_ | - |
|
||||
| --van-coupon-background-color | _var(--van-white)_ | - |
|
||||
| --van-coupon-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-coupon-active-background-color | _var(--van-active-color)_ | - |
|
||||
| --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - |
|
||||
| --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - |
|
||||
|
@ -39,7 +39,7 @@
|
||||
&__exchange-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
|
||||
&__exchange {
|
||||
@ -79,7 +79,7 @@
|
||||
width: 100%;
|
||||
padding: 5px var(--van-padding-md);
|
||||
font-weight: var(--van-font-weight-bold);
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
|
||||
&__close {
|
||||
|
@ -3,7 +3,7 @@
|
||||
@coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
|
||||
@coupon-content-height: 84px;
|
||||
@coupon-content-padding: 14px 0;
|
||||
@coupon-background-color: var(--van-white);
|
||||
@coupon-background-color: var(--van-background-color-light);
|
||||
@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);
|
||||
|
@ -241,7 +241,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-dialog-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-dialog-transition | _var(--van-animation-duration-base)_ | - |
|
||||
| --van-dialog-border-radius | _16px_ | - |
|
||||
| --van-dialog-background-color | _var(--van-white)_ | - |
|
||||
| --van-dialog-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - |
|
||||
| --van-dialog-header-line-height | _24px_ | - |
|
||||
| --van-dialog-header-padding-top | _26px_ | - |
|
||||
|
@ -291,7 +291,7 @@ import type {
|
||||
| --van-dialog-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-dialog-transition | _var(--van-animation-duration-base)_ | - |
|
||||
| --van-dialog-border-radius | _16px_ | - |
|
||||
| --van-dialog-background-color | _var(--van-white)_ | - |
|
||||
| --van-dialog-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - |
|
||||
| --van-dialog-header-line-height | _24px_ | - |
|
||||
| --van-dialog-header-padding-top | _26px_ | - |
|
||||
|
@ -5,7 +5,7 @@
|
||||
@dialog-font-size: var(--van-font-size-lg);
|
||||
@dialog-transition: var(--van-animation-duration-base);
|
||||
@dialog-border-radius: 16px;
|
||||
@dialog-background-color: var(--van-white);
|
||||
@dialog-background-color: var(--van-background-color-light);
|
||||
@dialog-header-font-weight: var(--van-font-weight-bold);
|
||||
@dialog-header-line-height: 24px;
|
||||
@dialog-header-padding-top: 26px;
|
||||
|
@ -58,7 +58,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-divider {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-doc-demo-block__title {
|
||||
padding-top: var(--van-padding-md);
|
||||
|
@ -233,7 +233,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-dropdown-menu-height | _48px_ | - |
|
||||
| --van-dropdown-menu-background-color | _var(--van-white)_ | - |
|
||||
| --van-dropdown-menu-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - |
|
||||
| --van-dropdown-menu-title-font-size | _15px_ | - |
|
||||
| --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - |
|
||||
|
@ -237,7 +237,7 @@ dropdownItemRef.value?.toggle();
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-dropdown-menu-height | _48px_ | - |
|
||||
| --van-dropdown-menu-background-color | _var(--van-white)_ | - |
|
||||
| --van-dropdown-menu-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - |
|
||||
| --van-dropdown-menu-title-font-size | _15px_ | - |
|
||||
| --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - |
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@dropdown-menu-height: 48px;
|
||||
@dropdown-menu-background-color: var(--van-white);
|
||||
@dropdown-menu-background-color: var(--van-background-color-light);
|
||||
@dropdown-menu-box-shadow: 0 2px 12px rgba(100, 101, 102, 0.12);
|
||||
@dropdown-menu-title-font-size: 15px;
|
||||
@dropdown-menu-title-text-color: var(--van-text-color);
|
||||
|
@ -68,7 +68,7 @@ const active = ref('error');
|
||||
|
||||
<style lang="less">
|
||||
.demo-empty {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.custom-image {
|
||||
.van-empty__image {
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);
|
||||
@grid-item-content-background-color: var(--van-white);
|
||||
@grid-item-content-background-color: var(--van-background-color-light);
|
||||
@grid-item-content-active-color: var(--van-active-color);
|
||||
@grid-item-icon-size: 28px;
|
||||
@grid-item-text-color: var(--van-gray-7);
|
||||
|
@ -159,7 +159,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - |
|
||||
| --van-grid-item-content-background-color | _var(--van-white)_ | - |
|
||||
| --van-grid-item-content-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-grid-item-content-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-grid-item-icon-size | _28px_ | - |
|
||||
| --van-grid-item-text-color | _var(--van-gray-7)_ | - |
|
||||
|
@ -175,7 +175,7 @@ import type { GridProps, GridDirection, GridItemProps } from 'vant';
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - |
|
||||
| --van-grid-item-content-background-color | _var(--van-white)_ | - |
|
||||
| --van-grid-item-content-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-grid-item-content-active-color | _var(--van-active-color)_ | - |
|
||||
| --van-grid-item-icon-size | _28px_ | - |
|
||||
| --van-grid-item-text-color | _var(--van-gray-7)_ | - |
|
||||
|
@ -93,7 +93,7 @@ const fits = ['contain', 'cover', 'fill', 'none', 'scale-down'] as const;
|
||||
<style lang="less">
|
||||
.demo-image {
|
||||
overflow-x: hidden;
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-row {
|
||||
padding: 0 var(--van-padding-md);
|
||||
|
@ -8,4 +8,4 @@
|
||||
@index-anchor-line-height: 32px;
|
||||
@index-anchor-background-color: transparent;
|
||||
@index-anchor-sticky-text-color: var(--van-danger-color);
|
||||
@index-anchor-sticky-background-color: var(--van-white);
|
||||
@index-anchor-sticky-background-color: var(--van-background-color-light);
|
||||
|
@ -144,4 +144,4 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-index-anchor-line-height | _32px_ | - |
|
||||
| --van-index-anchor-background-color | _transparent_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -148,4 +148,4 @@ indexBarRef.value?.scrollTo('B');
|
||||
| --van-index-anchor-line-height | _32px_ | - |
|
||||
| --van-index-anchor-background-color | _transparent_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -62,7 +62,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-loading {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.van-loading {
|
||||
display: inline-block;
|
||||
|
@ -129,13 +129,13 @@ import type { NavbarProps } from 'vant';
|
||||
|
||||
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| ------------------------------ | -------------------------- | ----------- |
|
||||
| --van-nav-bar-height | _46px_ | - |
|
||||
| --van-nav-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-nav-bar-arrow-size | _16px_ | - |
|
||||
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-nav-bar-title-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-nav-bar-z-index | _1_ | - |
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-nav-bar-height | _46px_ | - |
|
||||
| --van-nav-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-nav-bar-arrow-size | _16px_ | - |
|
||||
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-nav-bar-title-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-nav-bar-z-index | _1_ | - |
|
||||
|
@ -137,13 +137,13 @@ import type { NavbarProps } from 'vant';
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ------------------------------ | -------------------------- | ---- |
|
||||
| --van-nav-bar-height | _46px_ | - |
|
||||
| --van-nav-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-nav-bar-arrow-size | _16px_ | - |
|
||||
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-nav-bar-title-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-nav-bar-z-index | _1_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ------------------------------ | ----------------------------------- | ---- |
|
||||
| --van-nav-bar-height | _46px_ | - |
|
||||
| --van-nav-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-nav-bar-arrow-size | _16px_ | - |
|
||||
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - |
|
||||
| --van-nav-bar-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-nav-bar-title-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-nav-bar-z-index | _1_ | - |
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@nav-bar-height: 46px;
|
||||
@nav-bar-background-color: var(--van-white);
|
||||
@nav-bar-background-color: var(--van-background-color-light);
|
||||
@nav-bar-arrow-size: 16px;
|
||||
@nav-bar-icon-color: var(--van-primary-color);
|
||||
@nav-bar-text-color: var(--van-primary-color);
|
||||
|
@ -74,7 +74,7 @@ const t = useTranslate({
|
||||
|
||||
<style lang="less">
|
||||
.demo-notice-bar {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.van-notice-bar:not(:first-of-type) {
|
||||
margin-top: 4px;
|
||||
|
@ -3,7 +3,7 @@
|
||||
@number-keyboard-background-color: var(--van-gray-2);
|
||||
@number-keyboard-key-height: 48px;
|
||||
@number-keyboard-key-font-size: 28px;
|
||||
@number-keyboard-key-background-color: var(--van-white);
|
||||
@number-keyboard-key-background-color: var(--van-background-color-light);
|
||||
@number-keyboard-key-active-color: var(--van-gray-3);
|
||||
@number-keyboard-delete-font-size: var(--van-font-size-lg);
|
||||
@number-keyboard-title-color: var(--van-gray-7);
|
||||
|
@ -47,7 +47,7 @@ const showEmbedded = ref(false);
|
||||
|
||||
<style lang="less">
|
||||
.demo-overlay {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
@ -59,7 +59,7 @@ const showEmbedded = ref(false);
|
||||
.block {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
@ -118,6 +118,6 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-pagination-item-default-color | _var(--van-primary-color)_ | - |
|
||||
| --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - |
|
||||
| --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - |
|
||||
| --van-pagination-background-color | _var(--van-white)_ | - |
|
||||
| --van-pagination-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-pagination-desc-color | _var(--van-gray-7)_ | - |
|
||||
| --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - |
|
||||
|
@ -126,6 +126,6 @@ import type { PaginationMode, PaginationProps } from 'vant';
|
||||
| --van-pagination-item-default-color | _var(--van-primary-color)_ | - |
|
||||
| --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - |
|
||||
| --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - |
|
||||
| --van-pagination-background-color | _var(--van-white)_ | - |
|
||||
| --van-pagination-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-pagination-desc-color | _var(--van-gray-7)_ | - |
|
||||
| --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - |
|
||||
|
@ -6,6 +6,6 @@
|
||||
@pagination-item-default-color: var(--van-primary-color);
|
||||
@pagination-item-disabled-color: var(--van-gray-7);
|
||||
@pagination-item-disabled-background-color: var(--van-background-color);
|
||||
@pagination-background-color: var(--van-white);
|
||||
@pagination-background-color: var(--van-background-color-light);
|
||||
@pagination-desc-color: var(--van-gray-7);
|
||||
@pagination-disabled-opacity: var(--van-disabled-opacity);
|
||||
|
@ -160,7 +160,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-password-input-margin | _0 var(--van-padding-md)_ | - |
|
||||
| --van-password-input-font-size | _20px_ | - |
|
||||
| --van-password-input-border-radius | _6px_ | - |
|
||||
| --van-password-input-background-color | _var(--van-white)_ | - |
|
||||
| --van-password-input-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-password-input-info-color | _var(--van-gray-6)_ | - |
|
||||
| --van-password-input-info-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - |
|
||||
|
@ -170,7 +170,7 @@ export default {
|
||||
| --van-password-input-margin | _0 var(--van-padding-md)_ | - |
|
||||
| --van-password-input-font-size | _20px_ | - |
|
||||
| --van-password-input-border-radius | _6px_ | - |
|
||||
| --van-password-input-background-color | _var(--van-white)_ | - |
|
||||
| --van-password-input-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-password-input-info-color | _var(--van-gray-6)_ | - |
|
||||
| --van-password-input-info-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - |
|
||||
|
@ -4,7 +4,7 @@
|
||||
@password-input-margin: 0 var(--van-padding-md);
|
||||
@password-input-font-size: 20px;
|
||||
@password-input-border-radius: 6px;
|
||||
@password-input-background-color: var(--van-white);
|
||||
@password-input-background-color: var(--van-background-color-light);
|
||||
@password-input-info-color: var(--van-gray-6);
|
||||
@password-input-info-font-size: var(--van-font-size-md);
|
||||
@password-input-error-info-color: var(--van-danger-color);
|
||||
|
@ -415,7 +415,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-picker-background-color | _var(--van-white)_ | - |
|
||||
| --van-picker-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-picker-toolbar-height | _44px_ | - |
|
||||
| --van-picker-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-picker-title-line-height | _var(--van-line-height-md)_ | - |
|
||||
|
@ -438,22 +438,22 @@ pickerRef.value?.confirm();
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ------------------------------------ | ---------------------------- | ---- |
|
||||
| --van-picker-background-color | _var(--van-white)_ | - |
|
||||
| --van-picker-toolbar-height | _44px_ | - |
|
||||
| --van-picker-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-picker-title-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-picker-action-padding | _0 var(--van-padding-md)_ | - |
|
||||
| --van-picker-action-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-picker-confirm-action-color | _var(--van-text-link-color)_ | - |
|
||||
| --van-picker-cancel-action-color | _var(--van-gray-6)_ | - |
|
||||
| --van-picker-option-padding | _0 var(--van-padding-base)_ | - |
|
||||
| --van-picker-option-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-picker-option-text-color | _var(--van-black)_ | - |
|
||||
| --van-picker-option-disabled-opacity | _0.3_ | - |
|
||||
| --van-picker-loading-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-picker-loading-mask-color | _rgba(255, 255, 255, 0.9)_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-picker-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-picker-toolbar-height | _44px_ | - |
|
||||
| --van-picker-title-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-picker-title-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-picker-action-padding | _0 var(--van-padding-md)_ | - |
|
||||
| --van-picker-action-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-picker-confirm-action-color | _var(--van-text-link-color)_ | - |
|
||||
| --van-picker-cancel-action-color | _var(--van-gray-6)_ | - |
|
||||
| --van-picker-option-padding | _0 var(--van-padding-base)_ | - |
|
||||
| --van-picker-option-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-picker-option-text-color | _var(--van-black)_ | - |
|
||||
| --van-picker-option-disabled-opacity | _0.3_ | - |
|
||||
| --van-picker-loading-icon-color | _var(--van-primary-color)_ | - |
|
||||
| --van-picker-loading-mask-color | _rgba(255, 255, 255, 0.9)_ | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@picker-background-color: var(--van-white);
|
||||
@picker-background-color: var(--van-background-color-light);
|
||||
@picker-toolbar-height: 44px;
|
||||
@picker-title-font-size: var(--van-font-size-lg);
|
||||
@picker-title-line-height: var(--van-line-height-md);
|
||||
|
@ -285,7 +285,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-popover-action-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-popover-action-icon-size | _20px_ | - |
|
||||
| --van-popover-light-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-popover-light-background-color | _var(--van-white)_ | - |
|
||||
| --van-popover-light-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - |
|
||||
| --van-popover-dark-text-color | _var(--van-white)_ | - |
|
||||
| --van-popover-dark-background-color | _#4a4a4a_ | - |
|
||||
|
@ -297,7 +297,7 @@ import type {
|
||||
| --van-popover-action-line-height | _var(--van-line-height-md)_ | - |
|
||||
| --van-popover-action-icon-size | _20px_ | - |
|
||||
| --van-popover-light-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-popover-light-background-color | _var(--van-white)_ | - |
|
||||
| --van-popover-light-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - |
|
||||
| --van-popover-dark-text-color | _var(--van-white)_ | - |
|
||||
| --van-popover-dark-background-color | _#4a4a4a_ | - |
|
||||
|
@ -8,7 +8,7 @@
|
||||
@popover-action-line-height: var(--van-line-height-md);
|
||||
@popover-action-icon-size: 20px;
|
||||
@popover-light-text-color: var(--van-text-color);
|
||||
@popover-light-background-color: var(--van-white);
|
||||
@popover-light-background-color: var(--van-background-color-light);
|
||||
@popover-light-action-disabled-text-color: var(--van-gray-5);
|
||||
@popover-dark-text-color: var(--van-white);
|
||||
@popover-dark-background-color: #4a4a4a;
|
||||
|
@ -162,7 +162,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-popup-background-color | _var(--van-white)_ | - |
|
||||
| --van-popup-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-popup-transition | _transform var(--van-animation-duration-base)_ | - |
|
||||
| --van-popup-round-border-radius | _16px_ | - |
|
||||
| --van-popup-close-icon-size | _22px_ | - |
|
||||
|
@ -168,7 +168,7 @@ import type { PopupProps, PopupPosition, PopupCloseIconPosition } from 'vant';
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-popup-background-color | _var(--van-white)_ | - |
|
||||
| --van-popup-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-popup-transition | _transform var(--van-animation-duration-base)_ | - |
|
||||
| --van-popup-round-border-radius | _16px_ | - |
|
||||
| --van-popup-close-icon-size | _22px_ | - |
|
||||
|
@ -1,6 +1,6 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@popup-background-color: var(--van-white);
|
||||
@popup-background-color: var(--van-background-color-light);
|
||||
@popup-transition: transform var(--van-animation-duration-base);
|
||||
@popup-round-border-radius: 16px;
|
||||
@popup-close-icon-size: 22px;
|
||||
|
@ -72,7 +72,7 @@ const reduce = () => {
|
||||
|
||||
<style lang="less">
|
||||
.demo-progress {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
.van-progress {
|
||||
margin: 20px 16px;
|
||||
|
@ -100,7 +100,7 @@ onMounted(preloadImage);
|
||||
|
||||
<style lang="less">
|
||||
.demo-pull-refresh {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-pull-refresh {
|
||||
height: calc(100vh - 50px);
|
||||
|
@ -141,7 +141,7 @@ const inactiveIcon = 'https://img.yzcdn.cn/vant/user-inactive.png';
|
||||
|
||||
<style lang="less">
|
||||
.demo-radio {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
|
||||
&-group {
|
||||
padding: 0 16px;
|
||||
|
@ -202,7 +202,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-search-padding | _10px var(--van-padding-sm)_ | - |
|
||||
| --van-search-background-color | _var(--van-white)_ | - |
|
||||
| --van-search-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-search-content-background-color | _var(--van-gray-1)_ | - |
|
||||
| --van-search-input-height | _34px_ | - |
|
||||
| --van-search-label-padding | _0 5px_ | - |
|
||||
|
@ -211,19 +211,19 @@ searchRef.value?.focus();
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ------------------------------------- | ---------------------------- | ---- |
|
||||
| --van-search-padding | _10px var(--van-padding-sm)_ | - |
|
||||
| --van-search-background-color | _var(--van-white)_ | - |
|
||||
| --van-search-content-background-color | _var(--van-gray-1)_ | - |
|
||||
| --van-search-input-height | _34px_ | - |
|
||||
| --van-search-label-padding | _0 5px_ | - |
|
||||
| --van-search-label-color | _var(--van-text-color)_ | - |
|
||||
| --van-search-label-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-search-left-icon-color | _var(--van-gray-6)_ | - |
|
||||
| --van-search-action-padding | _0 var(--van-padding-xs)_ | - |
|
||||
| --van-search-action-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-search-action-font-size | _var(--van-font-size-md)_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-search-padding | _10px var(--van-padding-sm)_ | - |
|
||||
| --van-search-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-search-content-background-color | _var(--van-gray-1)_ | - |
|
||||
| --van-search-input-height | _34px_ | - |
|
||||
| --van-search-label-padding | _0 5px_ | - |
|
||||
| --van-search-label-color | _var(--van-text-color)_ | - |
|
||||
| --van-search-label-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-search-left-icon-color | _var(--van-gray-6)_ | - |
|
||||
| --van-search-action-padding | _0 var(--van-padding-xs)_ | - |
|
||||
| --van-search-action-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-search-action-font-size | _var(--van-font-size-md)_ | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@search-padding: 10px var(--van-padding-sm);
|
||||
@search-background-color: var(--van-white);
|
||||
@search-background-color: var(--van-background-color-light);
|
||||
@search-content-background-color: var(--van-gray-1);
|
||||
@search-input-height: 34px;
|
||||
@search-label-padding: 0 5px;
|
||||
|
@ -249,4 +249,4 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - |
|
||||
| --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-share-sheet-cancel-button-height | _48px_ | - |
|
||||
| --van-share-sheet-cancel-button-background | _var(--van-white)_ | - |
|
||||
| --van-share-sheet-cancel-button-background | _var(--van-background-color-light)_ | - |
|
||||
|
@ -263,7 +263,7 @@ import type {
|
||||
| --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - |
|
||||
| --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - |
|
||||
| --van-share-sheet-cancel-button-height | _48px_ | - |
|
||||
| --van-share-sheet-cancel-button-background | _var(--van-white)_ | - |
|
||||
| --van-share-sheet-cancel-button-background | _var(--van-background-color-light)_ | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
@ -15,4 +15,4 @@
|
||||
@share-sheet-option-description-font-size: var(--van-font-size-sm);
|
||||
@share-sheet-cancel-button-font-size: var(--van-font-size-lg);
|
||||
@share-sheet-cancel-button-height: 48px;
|
||||
@share-sheet-cancel-button-background: var(--van-white);
|
||||
@share-sheet-cancel-button-background: var(--van-background-color-light);
|
||||
|
@ -12,4 +12,4 @@
|
||||
@sidebar-selected-border-width: 4px;
|
||||
@sidebar-selected-border-height: 16px;
|
||||
@sidebar-selected-border-color: var(--van-danger-color);
|
||||
@sidebar-selected-background-color: var(--van-white);
|
||||
@sidebar-selected-background-color: var(--van-background-color-light);
|
||||
|
@ -153,4 +153,4 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-sidebar-selected-border-width | _4px_ | - |
|
||||
| --van-sidebar-selected-border-height | _16px_ | - |
|
||||
| --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - |
|
||||
| --van-sidebar-selected-background-color | _var(--van-white)_ | - |
|
||||
| --van-sidebar-selected-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -161,4 +161,4 @@ import type { SidebarProps, SidebarItemProps } from 'vant';
|
||||
| --van-sidebar-selected-border-width | _4px_ | - |
|
||||
| --van-sidebar-selected-border-height | _16px_ | - |
|
||||
| --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - |
|
||||
| --van-sidebar-selected-background-color | _var(--van-white)_ | - |
|
||||
| --van-sidebar-selected-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -71,7 +71,7 @@ const onChange = (index: number) => Toast(`${t('title')} ${index + 1}`);
|
||||
|
||||
<style lang="less">
|
||||
.demo-sidebar {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-sidebar {
|
||||
margin-left: var(--van-padding-md);
|
||||
|
@ -47,7 +47,7 @@ const show = ref(false);
|
||||
|
||||
<style lang="less">
|
||||
.demo-skeleton {
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
.van-switch {
|
||||
margin: 0 var(--van-padding-md) var(--van-padding-xs);
|
||||
|
@ -204,5 +204,5 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-slider-button-width | _24px_ | - |
|
||||
| --van-slider-button-height | _24px_ | - |
|
||||
| --van-slider-button-border-radius | _50%_ | - |
|
||||
| --van-slider-button-background-color | _var(--van-white)_ | - |
|
||||
| --van-slider-button-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - |
|
||||
|
@ -206,5 +206,5 @@ import type { SliderProps } from 'vant';
|
||||
| --van-slider-button-width | _24px_ | - |
|
||||
| --van-slider-button-height | _24px_ | - |
|
||||
| --van-slider-button-border-radius | _50%_ | - |
|
||||
| --van-slider-button-background-color | _var(--van-white)_ | - |
|
||||
| --van-slider-button-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - |
|
||||
|
@ -96,7 +96,7 @@ const onChange = (value: string) => Toast(t('text') + value);
|
||||
|
||||
<style lang="less">
|
||||
.demo-slider {
|
||||
background: var(--van-white);
|
||||
background: var(--van-background-color-light);
|
||||
user-select: none;
|
||||
|
||||
.van-doc-demo-block {
|
||||
|
@ -7,5 +7,5 @@
|
||||
@slider-button-width: 24px;
|
||||
@slider-button-height: 24px;
|
||||
@slider-button-border-radius: 50%;
|
||||
@slider-button-background-color: var(--van-white);
|
||||
@slider-button-background-color: var(--van-background-color-light);
|
||||
@slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
|
@ -142,7 +142,7 @@
|
||||
|
||||
.van-stepper__minus {
|
||||
color: var(--van-stepper-button-round-theme-color);
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
border: 1px solid var(--van-stepper-button-round-theme-color);
|
||||
}
|
||||
}
|
||||
|
@ -128,4 +128,4 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-step-circle-size | _5px_ | - |
|
||||
| --van-step-circle-color | _var(--van-gray-6)_ | - |
|
||||
| --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - |
|
||||
| --van-steps-background-color | _var(--van-white)_ | - |
|
||||
| --van-steps-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -121,17 +121,17 @@ import type { StepsProps, StepsDirection } from 'vant';
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ------------------------------------- | -------------------------- | ---- |
|
||||
| --van-step-text-color | _var(--van-gray-6)_ | - |
|
||||
| --van-step-active-color | _var(--van-success-color)_ | - |
|
||||
| --van-step-process-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-step-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-step-line-color | _var(--van-border-color)_ | - |
|
||||
| --van-step-finish-line-color | _var(--van-success-color)_ | - |
|
||||
| --van-step-finish-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-step-icon-size | _12px_ | - |
|
||||
| --van-step-circle-size | _5px_ | - |
|
||||
| --van-step-circle-color | _var(--van-gray-6)_ | - |
|
||||
| --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - |
|
||||
| --van-steps-background-color | _var(--van-white)_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-step-text-color | _var(--van-gray-6)_ | - |
|
||||
| --van-step-active-color | _var(--van-success-color)_ | - |
|
||||
| --van-step-process-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-step-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-step-line-color | _var(--van-border-color)_ | - |
|
||||
| --van-step-finish-line-color | _var(--van-success-color)_ | - |
|
||||
| --van-step-finish-text-color | _var(--van-text-color)_ | - |
|
||||
| --van-step-icon-size | _12px_ | - |
|
||||
| --van-step-circle-size | _5px_ | - |
|
||||
| --van-step-circle-color | _var(--van-gray-6)_ | - |
|
||||
| --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - |
|
||||
| --van-steps-background-color | _var(--van-background-color-light)_ | - |
|
||||
|
@ -1,3 +1,3 @@
|
||||
@import '../style/var.less';
|
||||
|
||||
@steps-background-color: var(--van-white);
|
||||
@steps-background-color: var(--van-background-color-light);
|
||||
|
@ -77,7 +77,7 @@ const animate = (newName: string) => {
|
||||
|
||||
.van-hairline--top {
|
||||
height: 30px;
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
|
||||
&::after {
|
||||
top: 5px;
|
||||
|
@ -30,7 +30,7 @@
|
||||
@active-opacity: 0.7;
|
||||
@disabled-opacity: 0.5;
|
||||
@background-color: var(--van-gray-1);
|
||||
@background-color-light: #fafafa;
|
||||
@background-color-light: var(--van-white);
|
||||
@text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
|
@ -140,7 +140,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --- | --- | --- |
|
||||
| --van-submit-bar-height | _50px_ | - |
|
||||
| --van-submit-bar-z-index | _100_ | - |
|
||||
| --van-submit-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-submit-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-submit-bar-button-width | _110px_ | - |
|
||||
| --van-submit-bar-price-color | _var(--van-danger-color)_ | - |
|
||||
| --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - |
|
||||
|
@ -147,7 +147,7 @@ import type { SubmitBarProps } from 'vant';
|
||||
| --- | --- | --- |
|
||||
| --van-submit-bar-height | _50px_ | - |
|
||||
| --van-submit-bar-z-index | _100_ | - |
|
||||
| --van-submit-bar-background-color | _var(--van-white)_ | - |
|
||||
| --van-submit-bar-background-color | _var(--van-background-color-light)_ | - |
|
||||
| --van-submit-bar-button-width | _110px_ | - |
|
||||
| --van-submit-bar-price-color | _var(--van-danger-color)_ | - |
|
||||
| --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - |
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
@submit-bar-height: 50px;
|
||||
@submit-bar-z-index: 100;
|
||||
@submit-bar-background-color: var(--van-white);
|
||||
@submit-bar-background-color: var(--van-background-color-light);
|
||||
@submit-bar-button-width: 110px;
|
||||
@submit-bar-price-color: var(--van-danger-color);
|
||||
@submit-bar-price-font-size: var(--van-font-size-md);
|
||||
|
@ -100,7 +100,7 @@ const beforeClose = ({ position }: { position: string }) => {
|
||||
|
||||
.van-card {
|
||||
margin: 0;
|
||||
background-color: var(--van-white);
|
||||
background-color: var(--van-background-color-light);
|
||||
}
|
||||
|
||||
.delete-button {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user