From: Luis Aleman Date: Mon, 27 Aug 2012 23:13:11 +0000 (-0400) Subject: No longer need to write box-shadows in full when using lighten or other functions X-Git-Tag: v2.1.1~12^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96a1797af123e73ba05cc1b6ce5aa8ef0ef17694;p=thirdparty%2Fbootstrap.git No longer need to write box-shadows in full when using lighten or other functions --- diff --git a/less/mixins.less b/less/mixins.less index 989ac0d706..7fcd14c8e4 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -183,10 +183,7 @@ .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work &:focus { border-color: darken(@borderColor, 10%); - // Write out in full since the lighten() function isn't easily escaped - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); - -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); + .box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%)); } } // Give a small background color for input-prepend/-append