File: images.haml

package info (click to toggle)
ruby-compass 0.12.2~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,308 kB
  • sloc: ruby: 10,474; makefile: 42; xml: 14
file content (43 lines) | stat: -rw-r--r-- 1,698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- 
title: Compass Images
crumb: Images
framework: compass
stylesheet: compass/css3/_images.scss
meta_description: Specify linear gradients and radial gradients for many browsers.
layout: core
classnames:
  - reference
  - core
  - css3
---
- render 'reference' do
  :markdown
    Provides mixins that work across many modern browsers with the latest
    CSS3 image rendering primitives.
    
    These mixins provide intelligent cross-browser access to properties that accept
    images or image-like values (e.g. gradients). The syntax is very straightforward,
    it is exactly like the css syntax that you would use for the corresponding CSS3
    properties: Values are comma and space delimited, just as they would be for a property.
    Vendor prefixes are used only when necessary.
    
    Example (more examples are available by following the links below):
    
    <pre><code class="source-code scss">.in-css3 {
      background: url(foo.png),
                  linear-gradient(top left, #333, #0c0),
                  radial-gradient(#c00, #fff 100px);
    }
    .with-compass {
      @include background(image-url("foo.png"),
                          linear-gradient(top left, #333, #0c0),
                          radial-gradient(#c00, #fff 100px));
    }</code></pre>
        
    To enable SVG gradient support in Opera and IE9, set
    <code>$experimental-support-for-svg: true</code> in your stylesheet.
    
    NOTE: At this time, Opera renders incorrectly an SVG background on a element
    with a border, repeating the gradient towards the end. You can set
    <code>background-repeat: no-repeat</code> to avoid this, but the gradient
    will not fill the area completely.