From: Luis Aleman Date: Mon, 27 Aug 2012 23:10:20 +0000 (-0400) Subject: Changed box-shadow mixin to accept infinite, comma separated, shadows X-Git-Tag: v2.1.1~12^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15;p=thirdparty%2Fbootstrap.git Changed box-shadow mixin to accept infinite, comma separated, shadows --- diff --git a/less/mixins.less b/less/mixins.less index 785ac6c2e8..989ac0d706 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -251,10 +251,11 @@ } // Drop shadows -.box-shadow(@shadow) { - -webkit-box-shadow: @shadow; - -moz-box-shadow: @shadow; - box-shadow: @shadow; +.box-shadow(@shadowA, @shadowB:X, ...){ + @props: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`; + -webkit-box-shadow: @props; + -moz-box-shadow: @props; + box-shadow: @props; } // Transitions