Sha256: bd9e846efca991273f6b8c00fc133fbe1819712fbdf206eb1c81b307bdfe60d8

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

@import "shared";

// Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
//
// * $name is required, arbitrary, and what you will use in font stacks.
// * $font-files is required using font-files('relative/location', 'format').
//   for best results use this order: woff, opentype/truetype, svg
// * $eot is required by IE, and is a relative location of the eot file.
// * For android 2.2 Compatiblity, please ensure that your web page has
//   a meta viewport tag.
// * To support iOS < 4.2, an SVG file must be provided
//
// If you need to generate other formats check out the Font Squirrel
// [font generator](http://www.fontsquirrel.com/fontface/generator)
//
// Example:
//
//     @include font-face("this name", font-files("this.woff", woff, "this.otf", opentype), "this.eot")
@mixin font-face(
  $name, 
  $font-files, 
  $eot: false
) {
  $iefont: unquote("#{$eot}?iefix");
  @font-face {
    font-family: quote($name);
    @if $eot {
      src: font-url($eot);
      $font-files: font-url($iefont) unquote("format('eot')"), $font-files; 
    }
    src: $font-files; 
  }
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.7 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.6 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.5 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.4 frameworks/compass/stylesheets/compass/css3/_font-face.scss