docs: display all less variables (#7604)
This commit is contained in:
@@ -116,3 +116,24 @@ export default {
|
||||
| Name | Description |
|
||||
| --------------- | ----------------- |
|
||||
| title `v2.10.8` | Custom item title |
|
||||
|
||||
### Less Variables
|
||||
|
||||
How to use: [Custom Theme](#/en-US/theme).
|
||||
|
||||
| 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` | - |
|
||||
|
||||
@@ -125,3 +125,24 @@ export default {
|
||||
| Name | Description |
|
||||
| --------------- | ----------- |
|
||||
| title `v2.10.8` | 自定义标题 |
|
||||
|
||||
### 样式变量
|
||||
|
||||
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ---------------------------------- | ------------------- | ---- |
|
||||
| @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` | - |
|
||||
|
||||
Reference in New Issue
Block a user