From 1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15 Mon Sep 17 00:00:00 2001 From: Luis Aleman <Luis@toppatch.com> Date: Mon, 27 Aug 2012 19:10:20 -0400 Subject: [PATCH] Changed box-shadow mixin to accept infinite, comma separated, shadows --- less/mixins.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- GitLab