mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@btn-prefix-cls: ~'@{ant-prefix}-btn';
|
|
|
|
.@{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;
|
|
}
|
|
&[disabled] {
|
|
.@{btn-prefix-cls}-group-rtl& {
|
|
border-right-color: @btn-default-border;
|
|
border-left-color: @btn-group-border;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
padding-right: 29px;
|
|
padding-left: @padding-md - 1px;
|
|
}
|
|
|
|
.@{iconfont-css-prefix}:not(:last-child) {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
margin-right: -14px;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-sm&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
padding-right: 24px;
|
|
padding-left: @padding-xs - 1px;
|
|
}
|
|
|
|
.@{iconfont-css-prefix} {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
margin-right: -17px;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .@{iconfont-css-prefix} + span,
|
|
> span + .@{iconfont-css-prefix} {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
margin-right: 8px;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|