0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

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

View File

@ -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;
}