style(IndexBar): adjust default highlight color to red

This commit is contained in:
chenjiahan 2020-11-30 22:14:19 +08:00 committed by neverland
parent a682d24e23
commit 65b6807a7e
3 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ export default {
| z-index | z-index | _number \| string_ | `1` |
| sticky | Whether to enable anchor sticky top | _boolean_ | `true` |
| sticky-offset-top | Anchor offset top when sticky | _number_ | `0` |
| highlight-color | Index character highlight color | _string_ | `#07c160` | - |
| highlight-color | Index character highlight color | _string_ | `#ee0a24` | - |
### IndexAnchor Props
@ -98,7 +98,7 @@ How to use: [Custom Theme](#/en-US/theme).
| @index-bar-sidebar-z-index | `2` | - |
| @index-bar-index-font-size | `@font-size-xs` | - |
| @index-bar-index-line-height | `@line-height-xs` | - |
| @index-bar-index-active-color | `@green` | - |
| @index-bar-index-active-color | `@red` | - |
| @index-anchor-z-index | `1` | - |
| @index-anchor-padding | `0 @padding-md` | - |
| @index-anchor-text-color | `@text-color` | - |

View File

@ -72,7 +72,7 @@ export default {
| z-index | z-index 层级 | _number \| string_ | `1` |
| sticky | 是否开启锚点自动吸顶 | _boolean_ | `true` |
| sticky-offset-top | 锚点自动吸顶时与顶部的距离 | _number_ | `0` |
| highlight-color | 索引字符高亮颜色 | _string_ | `#07c160` |
| highlight-color | 索引字符高亮颜色 | _string_ | `#ee0a24` |
### IndexAnchor Props
@ -102,7 +102,7 @@ export default {
| @index-bar-sidebar-z-index | `2` | - |
| @index-bar-index-font-size | `@font-size-xs` | - |
| @index-bar-index-line-height | `@line-height-xs` | - |
| @index-bar-index-active-color | `@green` | - |
| @index-bar-index-active-color | `@red` | - |
| @index-anchor-z-index | `1` | - |
| @index-anchor-padding | `0 @padding-md` | - |
| @index-anchor-text-color | `@text-color` | - |

View File

@ -421,7 +421,7 @@
@index-bar-sidebar-z-index: 2;
@index-bar-index-font-size: @font-size-xs;
@index-bar-index-line-height: @line-height-xs;
@index-bar-index-active-color: @green;
@index-bar-index-active-color: @red;
// Info
@info-size: 16px;