Skip to content

Commit

Permalink
fix(badge): harmony兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
irisSong committed Nov 11, 2024
1 parent 951e521 commit 0236ecc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/packages/badge/badge.harmony.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
display: flex;
justify-content: center;
align-items: center;
background: #ff0f23;
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
padding: 3px;
text-align: center;
border: 0px solid #ffffff;
Expand All @@ -32,7 +32,12 @@
display: flex;
justify-content: center;
align-items: center;
/* #ifdef harmony */
background: #ff0f23;
/* #endif */
/* #ifndef harmony */
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
/* #endif */
color: #fff;
padding: 0 4px;
font-size: 10px;
Expand Down
5 changes: 5 additions & 0 deletions src/packages/badge/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
display: flex;
justify-content: center;
align-items: center;
/* #ifdef harmony */
background: $color-primary;
/* #endif */
/* #ifndef harmony */
background: $badge-background-color;
/* #endif */
color: $badge-color;
padding: $badge-padding;
font-size: $badge-font-size;
Expand Down

0 comments on commit 0236ecc

Please sign in to comment.