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.

This commit is contained in:
Bart Teeuwisse 2012-03-23 12:37:40 -07:00
parent d335adf644
commit 035b85eeba
1 changed files with 13 additions and 13 deletions

View File

@ -197,10 +197,10 @@
} }
// Drop shadows // Drop shadows
.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) { .box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25), ...) {
-webkit-box-shadow: @shadow; -webkit-box-shadow: @arguments;
-moz-box-shadow: @shadow; -moz-box-shadow: @arguments;
box-shadow: @shadow; box-shadow: @arguments;
} }
// Transitions // Transitions
@ -251,18 +251,18 @@
// Background clipping // Background clipping
// Heads up: FF 3.6 and under need "padding" instead of "padding-box" // Heads up: FF 3.6 and under need "padding" instead of "padding-box"
.background-clip(@clip) { .background-clip(@clip, ...) {
-webkit-background-clip: @clip; -webkit-background-clip: @arguments;
-moz-background-clip: @clip; -moz-background-clip: @arguments;
background-clip: @clip; background-clip: @arguments;
} }
// Background sizing // Background sizing
.background-size(@size){ .background-size(@size, ...){
-webkit-background-size: @size; -webkit-background-size: @arguments;
-moz-background-size: @size; -moz-background-size: @arguments;
-o-background-size: @size; -o-background-size: @arguments;
background-size: @size; background-size: @arguments;
} }