From 9176a3f9a75ed83e8dcca49863714f2d664d738f Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 12 Nov 2010 22:53:50 -0800 Subject: [PATCH] Tweak the gradient docs to explain svg support. --- .../content/examples/compass/css3/gradient/markup.haml | 4 ++++ .../examples/compass/css3/gradient/stylesheet.sass | 8 ++++++-- doc-src/content/reference/compass/css3/gradient.haml | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc-src/content/examples/compass/css3/gradient/markup.haml b/doc-src/content/examples/compass/css3/gradient/markup.haml index efd72744..11492be7 100644 --- a/doc-src/content/examples/compass/css3/gradient/markup.haml +++ b/doc-src/content/examples/compass/css3/gradient/markup.haml @@ -35,3 +35,7 @@ %p This yields a horizontal linear gradient spanning from left to right. +.ex + #svg-gradient.gradient-example + %p + This gradient has SVG support enabled for opera and IE9. diff --git a/doc-src/content/examples/compass/css3/gradient/stylesheet.sass b/doc-src/content/examples/compass/css3/gradient/stylesheet.sass index 5e07c757..77aea812 100644 --- a/doc-src/content/examples/compass/css3/gradient/stylesheet.sass +++ b/doc-src/content/examples/compass/css3/gradient/stylesheet.sass @@ -9,8 +9,6 @@ width: 80px height: 80px background: red - margin: 20px - border: 1px solid #111 float: left margin: 1em 1em 0 0 @@ -37,3 +35,9 @@ // This yields a horizontal linear gradient spanning from left to right. #h-gradient +linear-gradient(color-stops(#fff, #ddd), left) + +#svg-gradient + $experimental-support-for-svg: true + +linear-gradient(color-stops(#2AC363, #CD8C14, #9C4CC2), left) + width: 80px + height: 80px diff --git a/doc-src/content/reference/compass/css3/gradient.haml b/doc-src/content/reference/compass/css3/gradient.haml index dd9eb185..d9b1bd75 100644 --- a/doc-src/content/reference/compass/css3/gradient.haml +++ b/doc-src/content/reference/compass/css3/gradient.haml @@ -12,4 +12,6 @@ classnames: --- - render 'reference' do %p - Provides a mixin to create cross-browser CSS3 gradients. + Provides mixins to create cross-browser CSS3 gradients. + To enable SVG gradient support in Opera and IE9, set + $experimental-support-for-svg: true in your stylesheet.