Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 5668715

Browse files
committed
refactor(ui): add color transition
1 parent c3db19e commit 5668715

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/varlet-vue2-ui/src/card/card.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
padding: var(--card-padding);
4949
line-height: var(--card-line-height);
5050
background: var(--card-background);
51-
transition: background-color 0.25s;
51+
transition: background-color 0.25s, color 0.25s;
5252

5353
&__image {
5454
width: var(--card-image-width);

packages/varlet-vue2-ui/src/themes/docs/en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Inject the `text color` and `background color` variables recommended by the comp
3333

3434
```less
3535
body {
36-
transition: background-color .25s;
36+
transition: background-color .25s, color .25s;
3737
color: var(--color-text);
3838
background-color: var(--color-body);
3939
}

packages/varlet-vue2-ui/src/themes/docs/zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232

3333
```less
3434
body {
35-
transition: background-color .25s;
35+
transition: background-color .25s, color .25s;
3636
color: var(--color-text);
3737
background-color: var(--color-body);
3838
}

0 commit comments

Comments
 (0)