aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Aleman <[email protected]>2012-08-27 19:10:20 -0400
committerLuis Aleman <[email protected]>2012-08-27 19:10:20 -0400
commit1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15 (patch)
tree2d653878323d43504b146b850f0a291c4f1e828b
parent3b67ece2d10aaf573ffb93fc804dc4e382a50837 (diff)
downloadbootstrap-1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15.tar.xz
bootstrap-1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15.zip
Changed box-shadow mixin to accept infinite, comma separated, shadows
-rw-r--r--less/mixins.less9
1 files changed, 5 insertions, 4 deletions
diff --git a/less/mixins.less b/less/mixins.less
index 785ac6c2e..989ac0d70 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