From: Bart Teeuwisse Date: Fri, 23 Mar 2012 19:37:40 +0000 (-0700) Subject: The native box-shadow, background-clip and background-size instructions all take... X-Git-Tag: v2.0.3~5^2~107^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2775%2Fhead;p=thirdparty%2Fbootstrap.git 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. --- diff --git a/less/mixins.less b/less/mixins.less index 0074e89241..48d722a804 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; }