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
+14 -14
View File
@@ -88,7 +88,7 @@ app.use(NoticeBar);
### Props
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| --- | --- | --- | --- | --- |
| mode | Mode, can be set to `closeable` `link` | _string_ | `''` |
| text | Notice text content | _string_ | `''` | - |
| color | Text color | _string_ | `#f60` |
@@ -115,18 +115,18 @@ app.use(NoticeBar);
| left-icon | Custom left icon |
| right-icon | Custom right icon |
### 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 |
| ---------------------------- | ------------------------- | ----------- |
| @notice-bar-height | `40px` | - |
| @notice-bar-padding | `0 @padding-md` | - |
| @notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
| @notice-bar-text-color | `@orange-dark` | - |
| @notice-bar-font-size | `@font-size-md` | - |
| @notice-bar-line-height | `24px` | - |
| @notice-bar-background-color | `@orange-light` | - |
| @notice-bar-icon-size | `16px` | - |
| @notice-bar-icon-min-width | `24px` | - |
| Name | Default Value | Description |
| --------------------------------- | ------------------------- | ----------- |
| --van-notice-bar-height | `40px` | - |
| --van-notice-bar-padding | `0 @padding-md` | - |
| --van-notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
| --van-notice-bar-text-color | `@orange-dark` | - |
| --van-notice-bar-font-size | `@font-size-md` | - |
| --van-notice-bar-line-height | `24px` | - |
| --van-notice-bar-background-color | `@orange-light` | - |
| --van-notice-bar-icon-size | `16px` | - |
| --van-notice-bar-icon-min-width | `24px` | - |
+12 -12
View File
@@ -138,16 +138,16 @@ app.use(NoticeBar);
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| ---------------------------- | ------------------------- | ---- |
| @notice-bar-height | `40px` | - |
| @notice-bar-padding | `0 @padding-md` | - |
| @notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
| @notice-bar-text-color | `@orange-dark` | - |
| @notice-bar-font-size | `@font-size-md` | - |
| @notice-bar-line-height | `24px` | - |
| @notice-bar-background-color | `@orange-light` | - |
| @notice-bar-icon-size | `16px` | - |
| @notice-bar-icon-min-width | `24px` | - |
| 名称 | 默认值 | 描述 |
| --------------------------------- | ------------------------- | ---- |
| --van-notice-bar-height | `40px` | - |
| --van-notice-bar-padding | `0 @padding-md` | - |
| --van-notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
| --van-notice-bar-text-color | `@orange-dark` | - |
| --van-notice-bar-font-size | `@font-size-md` | - |
| --van-notice-bar-line-height | `24px` | - |
| --van-notice-bar-background-color | `@orange-light` | - |
| --van-notice-bar-icon-size | `16px` | - |
| --van-notice-bar-icon-min-width | `24px` | - |