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 fa73d73
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions style/mobile/components/badge/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@
top: 0;
right: 0;
}
}

&--ribbon {
display: inline-block;
transform: rotate(45deg);
border-radius: 0;
// padding: 0;

&--before,
&--after {
&::before,
&::after {
content: "";
position: absolute;
width: 0;
Expand All @@ -54,24 +61,17 @@
border-bottom: @badge-basic-height solid @badge-color;
}

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

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

&--ribbon {
display: inline-block;
transform: rotate(45deg);
border-radius: 0;
// padding: 0;
}

&--bubble {
border-radius: @border-bubble-border-radius;
}
Expand Down

0 comments on commit fa73d73

Please sign in to comment.