docs: update component CSS variable names (#8857)

This commit is contained in:
neverland
2021-06-14 10:23:47 +08:00
committed by GitHub
parent 34a3fe8787
commit 8e3833acc8
122 changed files with 1755 additions and 1755 deletions
+12 -12
View File
@@ -69,17 +69,17 @@ app.use(Divider);
| ------- | ----------- |
| default | content |
### Less Variables
### CSS Variables
How to use: [Custom Theme](#/en-US/theme).
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 |
| ---------------------------- | --------------- | ----------- |
| @divider-margin | `@padding-md 0` | - |
| @divider-text-color | `@gray-6` | - |
| @divider-font-size | `@font-size-md` | - |
| @divider-line-height | `24px` | - |
| @divider-border-color | `@border-color` | - |
| @divider-content-padding | `@padding-md` | - |
| @divider-content-left-width | `10%` | - |
| @divider-content-right-width | `10%` | - |
| Name | Default Value | Description |
| --------------------------------- | --------------- | ----------- |
| --van-divider-margin | `@padding-md 0` | - |
| --van-divider-text-color | `@gray-6` | - |
| --van-divider-font-size | `@font-size-md` | - |
| --van-divider-line-height | `24px` | - |
| --van-divider-border-color | `@border-color` | - |
| --van-divider-content-padding | `@padding-md` | - |
| --van-divider-content-left-width | `10%` | - |
| --van-divider-content-right-width | `10%` | - |
+11 -11
View File
@@ -81,15 +81,15 @@ app.use(Divider);
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| ---------------------------- | --------------- | ---- |
| @divider-margin | `@padding-md 0` | - |
| @divider-text-color | `@gray-6` | - |
| @divider-font-size | `@font-size-md` | - |
| @divider-line-height | `24px` | - |
| @divider-border-color | `@border-color` | - |
| @divider-content-padding | `@padding-md` | - |
| @divider-content-left-width | `10%` | - |
| @divider-content-right-width | `10%` | - |
| 名称 | 默认值 | 描述 |
| --------------------------------- | --------------- | ---- |
| --van-divider-margin | `@padding-md 0` | - |
| --van-divider-text-color | `@gray-6` | - |
| --van-divider-font-size | `@font-size-md` | - |
| --van-divider-line-height | `24px` | - |
| --van-divider-border-color | `@border-color` | - |
| --van-divider-content-padding | `@padding-md` | - |
| --van-divider-content-left-width | `10%` | - |
| --van-divider-content-right-width | `10%` | - |