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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|