]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Changed box-shadow mixin to accept infinite, comma separated, shadows
authorLuis Aleman <Luis@toppatch.com>
Mon, 27 Aug 2012 23:10:20 +0000 (19:10 -0400)
committerLuis Aleman <Luis@toppatch.com>
Mon, 27 Aug 2012 23:10:20 +0000 (19:10 -0400)
less/mixins.less

index 785ac6c2e8a26b32d44bada993ed9ae3f8321054..989ac0d70645804aa59c3c6bae84a89b38800883 100644 (file)
 }
 
 // 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