2015-06-09 15:21:44 +08:00
|
|
|
@import "../mixins/index";
|
2015-08-20 16:55:42 +08:00
|
|
|
@btn-prefix-cls: ~"@{css-prefix}btn";
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
// Button styles
|
|
|
|
// -----------------------------
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{btn-prefix-cls} {
|
2015-06-09 15:21:44 +08:00
|
|
|
.btn;
|
2015-06-11 17:16:32 +08:00
|
|
|
.btn-default;
|
2015-06-09 15:21:44 +08:00
|
|
|
|
|
|
|
&-primary {
|
|
|
|
.btn-primary;
|
2015-06-12 19:41:30 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) {
|
2015-07-09 10:56:28 +08:00
|
|
|
border-right-color: @btn-group-border;
|
|
|
|
border-left-color: @btn-group-border;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{btn-prefix-cls}-group &:first-child {
|
2015-06-09 15:21:44 +08:00
|
|
|
&:not(:last-child) {
|
2015-07-09 10:56:28 +08:00
|
|
|
border-right-color: @btn-group-border;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{btn-prefix-cls}-group &:last-child:not(:first-child) {
|
2015-07-09 10:56:28 +08:00
|
|
|
border-left-color: @btn-group-border;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2015-07-08 16:21:04 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{btn-prefix-cls}-group & + .@{btn-prefix-cls} {
|
2015-07-09 10:56:28 +08:00
|
|
|
border-left-color: @btn-group-border;
|
2015-07-08 16:21:04 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-ghost {
|
|
|
|
.btn-ghost;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-circle, &-circle-outline {
|
2015-08-20 16:55:42 +08:00
|
|
|
.btn-circle(@btn-prefix-cls);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-circle-outline {
|
|
|
|
.btn-circle-outline;
|
|
|
|
}
|
|
|
|
|
2015-09-22 15:06:10 +08:00
|
|
|
&:after {
|
|
|
|
font-family: anticon;
|
|
|
|
content: "\e610";
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.5s ease;
|
|
|
|
}
|
|
|
|
|
2015-07-29 22:23:55 +08:00
|
|
|
&-loading {
|
|
|
|
padding-right: 31px;
|
2015-07-30 11:15:03 +08:00
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0.75;
|
2015-07-29 22:23:55 +08:00
|
|
|
&:after {
|
|
|
|
.animation(loadingCircle 1s infinite linear);
|
|
|
|
height: 12px;
|
|
|
|
line-height: 12px;
|
2015-09-22 15:06:10 +08:00
|
|
|
right: 12px;
|
2015-07-29 22:23:55 +08:00
|
|
|
top: 50%;
|
|
|
|
margin-top: -6px;
|
2015-09-22 15:06:10 +08:00
|
|
|
opacity: 1;
|
2015-07-29 22:23:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sm&-loading {
|
|
|
|
padding-right: 24px;
|
|
|
|
&:after {
|
|
|
|
right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-09 15:21:44 +08:00
|
|
|
&-menu {
|
|
|
|
> .@{iconfont-css-prefix} {
|
2015-07-20 11:46:48 +08:00
|
|
|
.iconfont-size-under-12px(10px);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-group {
|
2015-08-20 16:55:42 +08:00
|
|
|
.btn-group(@btn-prefix-cls);
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
2015-06-09 16:40:16 +08:00
|
|
|
}
|