Sha256: ef98fefd4121a6fb82d2dcceb0ee15f225e49315bb346548c41c436dd56728c3

Contents?: true

Size: 1.54 KB

Versions: 17

Compression:

Stored size: 1.54 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.
// * $weight shows if the font is bold, defaults to normal
// * $style defaults to normal, might be also italic
// * 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)
//

// In order to refer to a specific style of the font in your stylesheets as 
// e.g. "font-style: italic;",  you may add a couple of @font-face includes
// containing the respective font files for each style and specying
// respective the $style parameter.

// Order of the includes matters, and it is: normal, bold, italic, bold+italic.

@mixin font-face(
  $name, 
  $font-files, 
  $eot: false,
  $weight: false,
  $style: 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;
    @if $weight {
      font-weight: $weight;
    }
    @if $style {
      font-style: $style;
    }
  }
}

Version data entries

17 entries across 16 versions & 5 rubygems

Version Path
comixins-0.1.2 vendor/assets/stylesheets/compass/css3/_font-face.scss
ghost-manager-1.0.0 magneto/source/assets/bower_components/compass-mixins/lib/compass/css3/_font-face.scss
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_font-face.scss
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.3 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.13.alpha.4 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.13.alpha.3 frameworks/compass/stylesheets/compass/css3/_font-face.scss
simple-compass-0.0.1 sass/compass/css3/_font-face.scss
compass-0.13.alpha.2 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.2 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.2.rc.1 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.2.rc.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.13.alpha.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.1 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.rc.1 frameworks/compass/stylesheets/compass/css3/_font-face.scss
compass-0.12.rc.0 frameworks/compass/stylesheets/compass/css3/_font-face.scss