ant-design/style/components/button.less

58 lines
997 B
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) {
border-right-color: #00abea;
border-left-color: #00abea;
}
.@{btnPrefixClass}-group &:first-child {
&:not(:last-child) {
border-right-color: #00abea;
}
}
.@{btnPrefixClass}-group &:last-child:not(:first-child) {
border-left-color: #00abea;
}
}
&-ghost {
.btn-ghost;
}
&-circle, &-circle-outline {
.btn-circle(@btnPrefixClass);
}
&-circle-outline {
.btn-circle-outline;
}
&-menu {
> .@{iconfont-css-prefix} {
top: -1px;
font-size: 12px;
font-size: 10px \9; // ie8-9
.scale(0.83);
:root & {
font-size: 12px; // reset ie9 and above
}
}
}
&-group {
.btn-group(@btnPrefixClass);
}
2015-06-09 16:40:16 +08:00
}