feat: add more color variables (#8861)
* style: add --van-warning-color * style: add --van-success-color * feat: add more color variables
This commit is contained in:
@@ -114,7 +114,7 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-index-bar-sidebar-z-index | _2_ | - |
|
||||
| --van-index-bar-index-font-size | _var(--van-font-size-xs)_ | - |
|
||||
| --van-index-bar-index-line-height | _var(--van-line-height-xs)_ | - |
|
||||
| --van-index-bar-index-active-color | _var(--van-red)_ | - |
|
||||
| --van-index-bar-index-active-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-z-index | _1_ | - |
|
||||
| --van-index-anchor-padding | _0 var(--van-padding-md)_ | - |
|
||||
| --van-index-anchor-text-color | _var(--van-text-color)_ | - |
|
||||
@@ -122,5 +122,5 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-index-anchor-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-index-anchor-line-height | _32px_ | - |
|
||||
| --van-index-anchor-background-color | _transparent_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-red)_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - |
|
||||
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
| --van-index-bar-sidebar-z-index | _2_ | - |
|
||||
| --van-index-bar-index-font-size | _var(--van-font-size-xs)_ | - |
|
||||
| --van-index-bar-index-line-height | _var(--van-line-height-xs)_ | - |
|
||||
| --van-index-bar-index-active-color | _var(--van-red)_ | - |
|
||||
| --van-index-bar-index-active-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-z-index | _1_ | - |
|
||||
| --van-index-anchor-padding | _0 var(--van-padding-md)_ | - |
|
||||
| --van-index-anchor-text-color | _var(--van-text-color)_ | - |
|
||||
@@ -134,5 +134,5 @@ export default {
|
||||
| --van-index-anchor-font-size | _var(--van-font-size-md)_ | - |
|
||||
| --van-index-anchor-line-height | _32px_ | - |
|
||||
| --van-index-anchor-background-color | _transparent_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-red)_ | - |
|
||||
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
|
||||
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - |
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
@index-bar-sidebar-z-index: 2;
|
||||
@index-bar-index-font-size: var(--van-font-size-xs);
|
||||
@index-bar-index-line-height: var(--van-line-height-xs);
|
||||
@index-bar-index-active-color: var(--van-red);
|
||||
@index-bar-index-active-color: var(--van-danger-color);
|
||||
|
||||
Reference in New Issue
Block a user