allows .btn* classes to be specified in any order and still receive proper hover state colors

This commit is contained in:
Ian Serlin 2015-01-02 15:04:01 -08:00
parent fcd35da52b
commit f955393f13

View File

@ -70,13 +70,13 @@
}
// This is needed to style buttons which has not a variation suffix (they must be stiled as btn-default)
.btn-link, .btn:not([class^="btn btn-"]), .btn-default {
.btn-link, .btn:not([class*="btn-"]), .btn-default {
color: @lightbg-text;
&:hover {
color: @lightbg-text;
}
}
.btn:not([class^="btn btn-"]), .btn-default, .btn-flat:not(.btn-link) {
.btn:not([class*="btn-"]), .btn-default, .btn-flat:not(.btn-link) {
&:hover, &.active {
background-color: rgba(255,255,255,0.5);
}