Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(comp:anchor): style update and css variable support (#1380)
- Loading branch information
Showing
6 changed files
with
25 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
category: components | ||
type: 其他 | ||
type: 导航 | ||
title: Anchor | ||
subtitle: 锚点 | ||
theme: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ category: components | |
type: 数据展示 | ||
title: Avatar | ||
subtitle: 头像 | ||
order: 0 | ||
theme: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
| 名称 | default | seer | 备注 | | ||
| --- | --- | --- | --- | | ||
| `@avatar-size-sm` | `@height-sm` | - | - | | ||
| `@avatar-size-md` | `@height-md` | - | - | | ||
| `@avatar-size-lg` | `@height-lg` | - | - | | ||
| `@avatar-font-size-sm` | `@font-size-lg` | - | - | | ||
| `@avatar-font-size-md` | `@font-size-xl` | - | - | | ||
| `@avatar-font-size-lg` | `@font-size-2xl` | - | - | | ||
| `@avatar-color` | `@color-white` | - | - | | ||
| `@avatar-background-color` | `@color-grey` | `@color-graphite-l20` | - | | ||
| `@avatar-border-radius-circle` | `@border-radius-full` | - | - | | ||
| `@avatar-border-radius-square` | `@border-radius-sm` | - | - | | ||
| `@avatar-size-sm` | `var(--ix-height-sm)` | - | - | | ||
| `@avatar-size-md` | `var(--ix-height-md)` | - | - | | ||
| `@avatar-size-lg` | `var(--ix-height-lg)` | - | - | | ||
| `@avatar-color` | `var(--ix-text-color-inverse)` | - | - | | ||
| `@avatar-background-color` | `var(--ix-background-color-deep)` | - | - | | ||
| `@avatar-border-radius-circle` | `50%` | - | - | | ||
| `@avatar-border-radius-square` | `var(--ix-border-radius-md)` | `var(--ix-border-radius-sm)` | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
packages/components/avatar/style/themes/default.variable.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
@avatar-size-sm: @height-sm; | ||
@avatar-size-md: @height-md; | ||
@avatar-size-lg: @height-lg; | ||
@avatar-font-size-sm: @font-size-lg; | ||
@avatar-font-size-md: @font-size-xl; | ||
@avatar-font-size-lg: @font-size-2xl; | ||
@avatar-color: @color-white; | ||
@avatar-background-color: @color-grey; | ||
@avatar-border-radius-circle: @border-radius-full; | ||
@avatar-border-radius-square: @border-radius-sm; | ||
@avatar-size-sm: var(--ix-height-sm); | ||
@avatar-size-md: var(--ix-height-md); | ||
@avatar-size-lg: var(--ix-height-lg); | ||
@avatar-color: var(--ix-text-color-inverse); | ||
@avatar-background-color: var(--ix-background-color-deep); | ||
@avatar-border-radius-circle: 50%; | ||
@avatar-border-radius-square: var(--ix-border-radius-md); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@import './default.variable.less'; | ||
|
||
@avatar-background-color: @color-graphite-l20; | ||
@avatar-border-radius-square: var(--ix-border-radius-sm); |