Skip to content

Commit

Permalink
feat(Badge): update style
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Aug 22, 2024
1 parent 68cdc16 commit eb61e7d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions style/mobile/components/badge/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,26 @@
transform: rotate(45deg);
border-radius: 0;
// padding: 0;

&::before,
&::after {
content: "";
position: absolute;
width: 0;
height: 0;
bottom: 0;
border-bottom: @badge-basic-height solid @badge-color;
}

&::before {
left: calc(-1 * @badge-basic-height + .5px);
border-left: @badge-basic-height solid transparent;
}

&::after {
right: calc(-1 * @badge-basic-height + .5px);
border-right: @badge-basic-height solid transparent;
}
}

&--bubble {
Expand Down

0 comments on commit eb61e7d

Please sign in to comment.