mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
912ffb15d0
* init * chore: cssinjs base button * chore: more style * chore: mix style * chore: size * chore: more style * misc * chore: re-structrue * chore: icon onlt * chore: back of disabled * chore: loading status * chore: loading motion * chore: add active style * docs: site prepare dynamic theme * chore: bump antd cssinjs * chore: color type check * chore: bump cssinjs version * chore: clean up useless ts def * chore: ignore button style * chore: rename ci * chore: update cssinjs ver * chore: ssr default wrapper * chore: bump cssinjs version * chore: ssr support * chore: fix script * test: fix node snapshot * chore: move cssinjs pkg size from css to js * test: coverage
98 lines
2.2 KiB
Plaintext
98 lines
2.2 KiB
Plaintext
.@{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-icon {
|
|
.@{iconfont-css-prefix} {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
padding-right: 0;
|
|
padding-left: @margin-xs;
|
|
}
|
|
}
|
|
|
|
&:only-child {
|
|
.@{iconfont-css-prefix} {
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .@{iconfont-css-prefix} + span,
|
|
> span + .@{iconfont-css-prefix} {
|
|
.@{btn-prefix-cls}-rtl& {
|
|
margin-right: 8px;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// mixin
|
|
.btn-group(@btnClassName: btn) {
|
|
.@{btnClassName} + .@{btnClassName},
|
|
.@{btnClassName} + &,
|
|
span + .@{btnClassName},
|
|
.@{btnClassName} + span,
|
|
> span + span,
|
|
& + .@{btnClassName},
|
|
& + & {
|
|
.@{btnClassName}-rtl&,
|
|
.@{btnClassName}-group-rtl& {
|
|
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& {
|
|
border-radius: 0 @btn-border-radius-base @btn-border-radius-base 0;
|
|
}
|
|
}
|
|
|
|
> .@{btnClassName}:last-child:not(:first-child),
|
|
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
.@{btnClassName}-group-rtl& {
|
|
border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base;
|
|
}
|
|
}
|
|
|
|
&-sm {
|
|
> .@{btnClassName}:first-child:not(:last-child),
|
|
> span:first-child:not(:last-child) > .@{btnClassName} {
|
|
.@{btnClassName}-group-rtl& {
|
|
border-radius: 0 @btn-border-radius-sm @btn-border-radius-sm 0;
|
|
}
|
|
}
|
|
|
|
> .@{btnClassName}:last-child:not(:first-child),
|
|
> span:last-child:not(:first-child) > .@{btnClassName} {
|
|
.@{btnClassName}-group-rtl& {
|
|
border-radius: @btn-border-radius-sm 0 0 @btn-border-radius-sm;
|
|
}
|
|
}
|
|
}
|
|
}
|