Sha256: 904b8f96c47b77c86eda9c11e2e3d4b49fa76bb90114846ea820dc9c82d6cdc4

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

@charset "UTF-8";
@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.

@mixin font-face($name, $font-files, $eot: false, $postscript: false, $style: false) {
  @if $postscript or $style {
    @warn "The $postscript and $style variables have been deprecated in favor of the Paul Irish smiley bulletproof technique.";
  }
  @font-face {
    font-family: quote($name);
    @if $eot { src: font-url($eot); }
    src: local("☺"), $font-files; 
  }
}

// EXAMPLE
// +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot")
//
// will generate:
//
//   @font-face { 
//     font-family: 'this name'; 
//     src: url('fonts/this.eot'); 
//     src: local("☺"),
//       url('fonts/this.otf') format('woff'), 
//       url('fonts/this.woff') format('opentype'); 
//   }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compass-0.11.beta.1 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.beta.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.alpha.4 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.alpha.3 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.alpha.1 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.11.alpha.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss