Skip to content

Commit 0236ecc

Browse files
committed
fix(badge): harmony兼容
1 parent 951e521 commit 0236ecc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/packages/badge/badge.harmony.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
display: flex;
1515
justify-content: center;
1616
align-items: center;
17-
background: #ff0f23;
17+
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
1818
padding: 3px;
1919
text-align: center;
2020
border: 0px solid #ffffff;
@@ -32,7 +32,12 @@
3232
display: flex;
3333
justify-content: center;
3434
align-items: center;
35+
/* #ifdef harmony */
3536
background: #ff0f23;
37+
/* #endif */
38+
/* #ifndef harmony */
39+
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
40+
/* #endif */
3641
color: #fff;
3742
padding: 0 4px;
3843
font-size: 10px;

src/packages/badge/badge.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
display: flex;
3434
justify-content: center;
3535
align-items: center;
36+
/* #ifdef harmony */
37+
background: $color-primary;
38+
/* #endif */
39+
/* #ifndef harmony */
3640
background: $badge-background-color;
41+
/* #endif */
3742
color: $badge-color;
3843
padding: $badge-padding;
3944
font-size: $badge-font-size;

0 commit comments

Comments
 (0)