Sha256: e69687376aee1d8895ea450a660f2bc0fb6739f4e1eb9352d97c83b59f38e0c6
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
<section id="radial-gradient-function"> <h2>Radial Gradient <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_radial-gradient.scss">View source</a></h2> <p>Outputs a radial-gradient. Use in conjunction with the <a href="#background-image">background-image mixin.</a> The function takes the same arguments as the <a href="#radial-gradient">radial-gradient mixin</a>.</p> {% highlight scss %} @include background-image( radial-gradient(#1e5799, #3dc3d1) ); @include background-image( radial-gradient(50% 50%, circle cover, #1e5799, #3dc3d1) ); @include background-image( radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef) ); {% endhighlight %} <br> <p>Optional variables can be passed to control the deprecated <code>-webkit-gradient()</code> function (iOS 4): <br> <code>$deprecated-pos1</code>, <code>$deprecated-pos2</code>, <code>$deprecated-radius1</code>, <code>$deprecated-radius2</code></p> {% highlight scss %} @include radial-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top, $deprecated-radius1: 50, $deprecated-radius2: 360); {% endhighlight %} <h3>Demo</h3> <section class="demo"> </section> </section>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bourbon-2.1.0 | _includes/radial-gradient-function.html |