From 376df775ac8801127cba39fc9b7c3497bcc64963 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Sun, 26 Feb 2012 21:42:22 +0100 Subject: [PATCH 1/2] [forms] Opacity of icons in .input-prepend and .input-append Text color in this elements in lighter, but icons don't match this color. This changes the opacity to match a lighter grey when icons are used in .input-prepend and .input-append --- less/forms.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/less/forms.less b/less/forms.less index 0a5fa2b8676b..be1cfb45e40b 100644 --- a/less/forms.less +++ b/less/forms.less @@ -388,6 +388,10 @@ select:focus:required:invalid { border: 1px solid #ccc; .border-radius(3px 0 0 3px); } + [class*="icon-"] { + opacity: 0.5; + filter: alpha(opacity=5); + } .active { background-color: lighten(@green, 30); border-color: @green; From d2bfea7eeefcd3a080d7a039894a03af16160980 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Mon, 27 Feb 2012 14:10:08 +0100 Subject: [PATCH 2/2] Updated using a mixin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated using a mixing, and by the way, fixing the IE alpha opacity (5 != 50)… --- less/forms.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/less/forms.less b/less/forms.less index be1cfb45e40b..dd45148cf0c0 100644 --- a/less/forms.less +++ b/less/forms.less @@ -389,8 +389,7 @@ select:focus:required:invalid { .border-radius(3px 0 0 3px); } [class*="icon-"] { - opacity: 0.5; - filter: alpha(opacity=5); + .opacity(50); } .active { background-color: lighten(@green, 30);