2020-03-18 11:31:24 +08:00
|
|
|
.@{badge-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2021-09-24 15:34:12 +08:00
|
|
|
&:not(&-not-a-wrapper) &-count,
|
|
|
|
&:not(&-not-a-wrapper) &-dot,
|
|
|
|
&:not(&-not-a-wrapper) .@{number-prefix-cls}-custom-component {
|
2022-03-17 10:47:56 +08:00
|
|
|
.@{badge-prefix-cls}-rtl& {
|
2020-03-18 11:31:24 +08:00
|
|
|
right: auto;
|
|
|
|
left: 0;
|
2020-03-27 15:31:26 +08:00
|
|
|
direction: ltr;
|
2020-03-18 11:31:24 +08:00
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-24 15:34:12 +08:00
|
|
|
&-rtl&:not(&-not-a-wrapper) .@{number-prefix-cls}-custom-component {
|
2020-03-18 11:31:24 +08:00
|
|
|
right: auto;
|
|
|
|
left: 0;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-status {
|
|
|
|
&-text {
|
|
|
|
.@{badge-prefix-cls}-rtl & {
|
|
|
|
margin-right: 8px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-22 10:08:17 +08:00
|
|
|
|
2022-04-07 16:15:02 +08:00
|
|
|
&:not(&-not-a-wrapper).@{badge-prefix-cls}-rtl {
|
|
|
|
.@{badge-prefix-cls}-zoom-appear,
|
|
|
|
.@{badge-prefix-cls}-zoom-enter {
|
2022-03-22 10:08:17 +08:00
|
|
|
animation-name: antZoomBadgeInRtl;
|
|
|
|
}
|
|
|
|
|
2022-04-07 16:15:02 +08:00
|
|
|
.@{badge-prefix-cls}-zoom-leave {
|
2022-03-22 10:08:17 +08:00
|
|
|
animation-name: antZoomBadgeOutRtl;
|
|
|
|
}
|
|
|
|
}
|
2020-03-18 11:31:24 +08:00
|
|
|
}
|
|
|
|
|
2020-07-08 14:47:07 +08:00
|
|
|
.@{ribbon-prefix-cls}-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
&.@{ribbon-prefix-cls}-placement-end {
|
|
|
|
right: unset;
|
|
|
|
left: -8px;
|
|
|
|
border-bottom-right-radius: @border-radius-sm;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
.@{ribbon-prefix-cls}-corner {
|
|
|
|
right: unset;
|
|
|
|
left: 0;
|
2022-01-24 11:26:26 +08:00
|
|
|
border-color: currentcolor currentcolor transparent transparent;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-07-08 14:47:07 +08:00
|
|
|
&::after {
|
2022-01-24 11:26:26 +08:00
|
|
|
border-color: currentcolor currentcolor transparent transparent;
|
2020-07-08 14:47:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.@{ribbon-prefix-cls}-placement-start {
|
|
|
|
right: -8px;
|
|
|
|
left: unset;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-bottom-left-radius: @border-radius-sm;
|
|
|
|
.@{ribbon-prefix-cls}-corner {
|
|
|
|
right: 0;
|
|
|
|
left: unset;
|
2022-01-24 11:26:26 +08:00
|
|
|
border-color: currentcolor transparent transparent currentcolor;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-07-08 14:47:07 +08:00
|
|
|
&::after {
|
2022-01-24 11:26:26 +08:00
|
|
|
border-color: currentcolor transparent transparent currentcolor;
|
2020-07-08 14:47:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-22 10:08:17 +08:00
|
|
|
|
|
|
|
@keyframes antZoomBadgeInRtl {
|
|
|
|
0% {
|
|
|
|
transform: scale(0) translate(-50%, -50%);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: scale(1) translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes antZoomBadgeOutRtl {
|
|
|
|
0% {
|
|
|
|
transform: scale(1) translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: scale(0) translate(-50%, -50%);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|