@ttk/component
Version:
ttk组件库
41 lines (36 loc) • 1.03 kB
text/less
@import 'antd/es/button/style/index.less';
@tax-btn-color: #53acf3;
@tax-btn-hover-color: #edf6fc;
.@{ant-prefix}-btn {
margin-left: 2px;
.button-color(@tax-btn-color; @white; @tax-btn-color);
&:hover,
&:focus {
.button-color(@tax-btn-color; @tax-btn-hover-color; @tax-btn-color);
}
&:active,
&.active {
.button-color(@tax-btn-color; @tax-btn-hover-color; @tax-btn-color);
}
.button-disabled();
& > .anticon + span, & > span + .anticon {
margin-left: 3px;
}
&-sm .anticon{
font-size: @btn-font-size-sm;
}
}
.@{ant-prefix}-btn-primary {
.button-variant-primary(@white; @tax-btn-color);
}
.@{mk-prefix}-btn{
// &.@{ant-prefix}-btn-primary {
// .button-variant-primary(@white; @tax-btn-color);
// }
&.@{ant-prefix}-btn-danger {
.button-variant-primary(@white; @error-color);
}
&.@{ant-prefix}-btn-warm {
.button-variant-primary(@white; @warning-color);
}
}