mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 21:56:42 +02: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user