Sha256: 6a5712434a4f39e9c8b27a96ca9988c45ed12eb8d0cb740d9b9fe1577f0f4f39

Contents?: true

Size: 1.55 KB

Versions: 26

Compression:

Stored size: 1.55 KB

Contents

@import "compass/support";

// 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('embedded-opentype')"), $font-files;
    }
    src: $font-files;
    @if $weight {
      font-weight: $weight;
    }
    @if $style {
      font-style: $style;
    }
  }
}

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/css3/_font-face.scss
gem_2345-0.1.2 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.3 stylesheets/compass/css3/_font-face.scss
compass-core-1.1.0.alpha.3 stylesheets/compass/css3/_font-face.scss
compass-core-1.1.0.alpha.2 stylesheets/compass/css3/_font-face.scss
compass-core-1.1.0.alpha.1 stylesheets/compass/css3/_font-face.scss
compass-core-1.1.0.alpha.0 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.1 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.rc.1 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.rc.0 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.21 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.20 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.19 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.17 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.16 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.15 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.14 stylesheets/compass/css3/_font-face.scss
compass-core-1.0.0.alpha.13 stylesheets/compass/css3/_font-face.scss
compass-0.13.alpha.12 frameworks/compass/stylesheets/compass/css3/_font-face.scss