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
+18 -18
View File
@@ -124,23 +124,23 @@ export default {
| ----- | ----------------- |
| title | Custom item title |
### 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 |
| ---------------------------------- | ------------------- | ----------- |
| @sidebar-width | `80px` | - |
| @sidebar-font-size | `@font-size-md` | - |
| @sidebar-line-height | `@line-height-md` | - |
| @sidebar-text-color | `@text-color` | - |
| @sidebar-disabled-text-color | `@gray-5` | - |
| @sidebar-padding | `20px @padding-sm` | - |
| @sidebar-active-color | `@active-color` | - |
| @sidebar-background-color | `@background-color` | - |
| @sidebar-selected-font-weight | `@font-weight-bold` | - |
| @sidebar-selected-text-color | `@text-color` | - |
| @sidebar-selected-border-width | `4px` | - |
| @sidebar-selected-border-height | `16px` | - |
| @sidebar-selected-border-color | `@red` | - |
| @sidebar-selected-background-color | `@white` | - |
| Name | Default Value | Description |
| --------------------------------------- | ------------------- | ----------- |
| --van-sidebar-width | `80px` | - |
| --van-sidebar-font-size | `@font-size-md` | - |
| --van-sidebar-line-height | `@line-height-md` | - |
| --van-sidebar-text-color | `@text-color` | - |
| --van-sidebar-disabled-text-color | `@gray-5` | - |
| --van-sidebar-padding | `20px @padding-sm` | - |
| --van-sidebar-active-color | `@active-color` | - |
| --van-sidebar-background-color | `@background-color` | - |
| --van-sidebar-selected-font-weight | `@font-weight-bold` | - |
| --van-sidebar-selected-text-color | `@text-color` | - |
| --van-sidebar-selected-border-width | `4px` | - |
| --van-sidebar-selected-border-height | `16px` | - |
| --van-sidebar-selected-border-color | `@red` | - |
| --van-sidebar-selected-background-color | `@white` | - |
+17 -17
View File
@@ -134,21 +134,21 @@ export default {
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| ---------------------------------- | ------------------- | ---- |
| @sidebar-width | `80px` | - |
| @sidebar-font-size | `@font-size-md` | - |
| @sidebar-line-height | `@line-height-md` | - |
| @sidebar-text-color | `@text-color` | - |
| @sidebar-disabled-text-color | `@gray-5` | - |
| @sidebar-padding | `20px @padding-sm` | - |
| @sidebar-active-color | `@active-color` | - |
| @sidebar-background-color | `@background-color` | - |
| @sidebar-selected-font-weight | `@font-weight-bold` | - |
| @sidebar-selected-text-color | `@text-color` | - |
| @sidebar-selected-border-width | `4px` | - |
| @sidebar-selected-border-height | `16px` | - |
| @sidebar-selected-border-color | `@red` | - |
| @sidebar-selected-background-color | `@white` | - |
| 名称 | 默认值 | 描述 |
| --------------------------------------- | ------------------- | ---- |
| --van-sidebar-width | `80px` | - |
| --van-sidebar-font-size | `@font-size-md` | - |
| --van-sidebar-line-height | `@line-height-md` | - |
| --van-sidebar-text-color | `@text-color` | - |
| --van-sidebar-disabled-text-color | `@gray-5` | - |
| --van-sidebar-padding | `20px @padding-sm` | - |
| --van-sidebar-active-color | `@active-color` | - |
| --van-sidebar-background-color | `@background-color` | - |
| --van-sidebar-selected-font-weight | `@font-weight-bold` | - |
| --van-sidebar-selected-text-color | `@text-color` | - |
| --van-sidebar-selected-border-width | `4px` | - |
| --van-sidebar-selected-border-height | `16px` | - |
| --van-sidebar-selected-border-color | `@red` | - |
| --van-sidebar-selected-background-color | `@white` | - |