2020-03-16 15:16:05 +08:00
|
|
|
.@{btn-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-primary {
|
|
|
|
.@{btn-prefix-cls}-group &:last-child:not(:first-child),
|
|
|
|
.@{btn-prefix-cls}-group & + & {
|
|
|
|
.@{btn-prefix-cls}-group-rtl& {
|
|
|
|
border-right-color: @btn-group-border;
|
|
|
|
border-left-color: @btn-default-border;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-03-16 15:16:05 +08:00
|
|
|
&[disabled] {
|
|
|
|
.@{btn-prefix-cls}-group-rtl& {
|
|
|
|
border-right-color: @btn-default-border;
|
|
|
|
border-left-color: @btn-group-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-20 16:25:43 +08:00
|
|
|
& > &-loading-icon {
|
2020-03-16 15:16:05 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
.@{btn-prefix-cls}-rtl& {
|
2020-04-20 16:25:43 +08:00
|
|
|
padding-right: 0;
|
|
|
|
padding-left: @margin-xs;
|
2020-03-16 15:16:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{iconfont-css-prefix} + span,
|
|
|
|
> span + .@{iconfont-css-prefix} {
|
|
|
|
.@{btn-prefix-cls}-rtl& {
|
|
|
|
margin-right: 8px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
// mixin
|
|
|
|
.btn-group(@btnClassName: btn) {
|
|
|
|
.@{btnClassName} + .@{btnClassName},
|
|
|
|
.@{btnClassName} + &,
|
|
|
|
span + .@{btnClassName},
|
|
|
|
.@{btnClassName} + span,
|
|
|
|
> span + span,
|
|
|
|
& + .@{btnClassName},
|
|
|
|
& + & {
|
2020-03-23 16:39:30 +08:00
|
|
|
.@{btnClassName}-rtl&,
|
|
|
|
.@{btnClassName}-group-rtl& {
|
2020-03-19 12:13:24 +08:00
|
|
|
margin-right: -1px;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{btnClassName}-group-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{btnClassName}:first-child:not(:last-child),
|
|
|
|
> span:first-child:not(:last-child) > .@{btnClassName} {
|
|
|
|
.@{btnClassName}-group-rtl& {
|
2021-10-22 13:35:36 +08:00
|
|
|
border-radius: 0 @btn-border-radius-base @btn-border-radius-base 0;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{btnClassName}:last-child:not(:first-child),
|
|
|
|
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
|
|
.@{btnClassName}-group-rtl& {
|
2021-10-22 13:35:36 +08:00
|
|
|
border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sm {
|
|
|
|
> .@{btnClassName}:first-child:not(:last-child),
|
|
|
|
> span:first-child:not(:last-child) > .@{btnClassName} {
|
|
|
|
.@{btnClassName}-group-rtl& {
|
2021-10-22 13:35:36 +08:00
|
|
|
border-radius: 0 @btn-border-radius-sm @btn-border-radius-sm 0;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{btnClassName}:last-child:not(:first-child),
|
|
|
|
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
|
|
.@{btnClassName}-group-rtl& {
|
2021-10-22 13:35:36 +08:00
|
|
|
border-radius: @btn-border-radius-sm 0 0 @btn-border-radius-sm;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|