ant-design/style/components/button.less

77 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-06-09 15:21:44 +08:00
@import "../mixins/index";
@btnPrefixClass: ~"@{css-prefix}btn";
// Button styles
// -----------------------------
.@{btnPrefixClass} {
.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-06-09 15:21:44 +08:00
.@{btnPrefixClass}-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
}
.@{btnPrefixClass}-group &:first-child {
&: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
}
}
.@{btnPrefixClass}-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
.@{btnPrefixClass}-group & + .@{btnPrefixClass} {
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 {
.btn-circle(@btnPrefixClass);
}
&-circle-outline {
.btn-circle-outline;
}
2015-07-29 22:23:55 +08:00
&-loading {
padding-right: 31px;
&: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;
}
}
2015-06-09 15:21:44 +08:00
&-menu {
> .@{iconfont-css-prefix} {
.iconfont-size-under-12px(10px);
2015-06-09 15:21:44 +08:00
}
}
&-group {
.btn-group(@btnPrefixClass);
}
2015-06-09 16:40:16 +08:00
}