aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Teeuwisse <[email protected]>2012-03-23 12:37:40 -0700
committerBart Teeuwisse <[email protected]>2012-03-23 12:37:40 -0700
commit035b85eebaaec9dded4c46b8864c63ff20bdd4fd (patch)
treeb10c29fdd8682285ef3df51741d5017d9e2c93a8
parentd335adf644b213a5ebc9cee3f37f781ad55194ef (diff)
downloadbootstrap-035b85eebaaec9dded4c46b8864c63ff20bdd4fd.tar.xz
bootstrap-035b85eebaaec9dded4c46b8864c63ff20bdd4fd.zip
The native box-shadow, background-clip and background-size instructions all take 1 or more arguments. In 1.3.0 LESS became arity aware, see https://gist.github.com/1933613. As a result the signatures of these mixins had to change a little.
-rw-r--r--less/mixins.less26
1 files changed, 13 insertions, 13 deletions
diff --git a/less/mixins.less b/less/mixins.less
index 0074e8924..48d722a80 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -197,10 +197,10 @@
}
// Drop shadows
-.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
- -webkit-box-shadow: @shadow;
- -moz-box-shadow: @shadow;
- box-shadow: @shadow;
+.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25), ...) {
+ -webkit-box-shadow: @arguments;
+ -moz-box-shadow: @arguments;
+ box-shadow: @arguments;
}
// Transitions
@@ -251,18 +251,18 @@
// Background clipping
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
-.background-clip(@clip) {
- -webkit-background-clip: @clip;
- -moz-background-clip: @clip;
- background-clip: @clip;
+.background-clip(@clip, ...) {
+ -webkit-background-clip: @arguments;
+ -moz-background-clip: @arguments;
+ background-clip: @arguments;
}
// Background sizing
-.background-size(@size){
- -webkit-background-size: @size;
- -moz-background-size: @size;
- -o-background-size: @size;
- background-size: @size;
+.background-size(@size, ...){
+ -webkit-background-size: @arguments;
+ -moz-background-size: @arguments;
+ -o-background-size: @arguments;
+ background-size: @arguments;
}