Linear Gradient View source

Outputs a linear-gradient. Use in conjunction with the background-image mixin. The function takes the same arguments as the linear-gradient mixin.

{% highlight scss %} @include background-image(linear-gradient(white 0, yellow 50%, transparent 50%)); {% endhighlight %}

Optional variables can be passed to control the deprecated -webkit-gradient() function (iOS 4):
$deprecated-pos1, $deprecated-pos2

{% highlight scss %} @include linear-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top); {% endhighlight %}

Demo