From 18fe5814a99e03cb31f6a6143725ed9c209f4e21 Mon Sep 17 00:00:00 2001 From: Ian Serlin Date: Fri, 2 Jan 2015 15:04:01 -0800 Subject: [PATCH] allows .btn* classes to be specified in any order and still receive proper hover state colors --- less/_buttons.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/less/_buttons.less b/less/_buttons.less index c1f59134..8c14a4aa 100644 --- a/less/_buttons.less +++ b/less/_buttons.less @@ -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); }