diff options
| author | Luis Aleman <[email protected]> | 2012-08-27 19:10:20 -0400 |
|---|---|---|
| committer | Luis Aleman <[email protected]> | 2012-08-27 19:10:20 -0400 |
| commit | 1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15 (patch) | |
| tree | 2d653878323d43504b146b850f0a291c4f1e828b /less | |
| parent | 3b67ece2d10aaf573ffb93fc804dc4e382a50837 (diff) | |
| download | bootstrap-1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15.tar.xz bootstrap-1b7a3ca416e51414e8dc3f395f2f58d8ceb4bb15.zip | |
Changed box-shadow mixin to accept infinite, comma separated, shadows
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 9 |
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 |
