Button add 4 new type

Button add 4 new type
This commit is contained in:
梁灏 2016-11-21 09:48:16 +08:00
parent 9084eb1872
commit b88f42eb62
5 changed files with 34 additions and 1 deletions

View file

@ -46,6 +46,22 @@
.btn-text;
}
&-success {
.btn-color(@success-color);
}
&-warning {
.btn-color(@warning-color);
}
&-error {
.btn-color(@error-color);
}
&-info {
.btn-color(@info-color);
}
//&-dashed {
// .btn-dashed;
//}

View file

@ -248,6 +248,18 @@
}
}
// Color
.btn-color(@color) {
.button-variant(@btn-primary-color; @color; @color);
&:hover,
//&:focus,
&:active,
&.active {
color: @btn-primary-color;
}
}
// Circle for Icon
.btn-circle(@btnClassName: ivu-btn) {
border-radius: @btn-circle-size;