|
|
|
@import "../mixins/index";
|
|
|
|
@btnPrefixClass: ~"@{css-prefix}btn";
|
|
|
|
|
|
|
|
// Button styles
|
|
|
|
// -----------------------------
|
|
|
|
.@{btnPrefixClass} {
|
|
|
|
.btn;
|
|
|
|
.btn-default;
|
|
|
|
|
|
|
|
&-primary {
|
|
|
|
.btn-primary;
|
|
|
|
|
|
|
|
.@{btnPrefixClass}-group &:not(:first-child):not(:last-child) {
|
|
|
|
border-right-color: @btn-group-border;
|
|
|
|
border-left-color: @btn-group-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{btnPrefixClass}-group &:first-child {
|
|
|
|
&:not(:last-child) {
|
|
|
|
border-right-color: @btn-group-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{btnPrefixClass}-group &:last-child:not(:first-child) {
|
|
|
|
border-left-color: @btn-group-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{btnPrefixClass}-group & + .@{btnPrefixClass} {
|
|
|
|
border-left-color: @btn-group-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-ghost {
|
|
|
|
.btn-ghost;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-circle, &-circle-outline {
|
|
|
|
.btn-circle(@btnPrefixClass);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-circle-outline {
|
|
|
|
.btn-circle-outline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-loading {
|
|
|
|
padding-right: 31px;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0.75;
|
|
|
|
&:after {
|
|
|
|
font-family: anticon;
|
|
|
|
.animation(loadingCircle 1s infinite linear);
|
|
|
|
content: "\e610";
|
|
|
|
position: absolute;
|
|
|
|
height: 12px;
|
|
|
|
line-height: 12px;
|
|
|
|
right: 13px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sm&-loading {
|
|
|
|
padding-right: 24px;
|
|
|
|
&:after {
|
|
|
|
right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
|
|
|
> .@{iconfont-css-prefix} {
|
|
|
|
.iconfont-size-under-12px(10px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-group {
|
|
|
|
.btn-group(@btnPrefixClass);
|
|
|
|
}
|
|
|
|
}
|