From 96a1797af123e73ba05cc1b6ce5aa8ef0ef17694 Mon Sep 17 00:00:00 2001 From: Luis Aleman Date: Mon, 27 Aug 2012 19:13:11 -0400 Subject: [PATCH] No longer need to write box-shadows in full when using lighten or other functions --- less/mixins.less | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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