Sha256: 3c5aba14e39606eb66c223eb74a6baf3d06932fc99b8140803290d0f9eeaccd8

Contents?: true

Size: 797 Bytes

Versions: 4

Compression:

Stored size: 797 Bytes

Contents

@mixin fontcustom-font-face($map) {
  @font-face {
    font-family: glyph-font-name-quoted($map);
    src: glyph-font-sources($map);
    font-weight: normal;
    font-style: normal;
  }
}

// generates icon classes in the format icon-<font-name>-<glyph-name>
// for each glyph in the font.
//
// $map          must be a glyph map
// $glyph-names  must be a space-separated list of glyph names
// $base-class    should be the css class to @extend
@mixin glyphs($map, $glyph-names, $base-class: false) {
  $name: glyph-font-name($map);
  @each $glyph-name in $glyph-names {

    $index: index($glyph-names, $glyph-name);
    $class_name: "icon-#{$name}-#{$glyph-name}";

    .#{$class_name} {
      @if $base-class { @extend #{$base-class}; }
      &:before { content: glyph($index); }
    }

  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
compass-fontcustom-1.1.0 stylesheets/_fontcustom.scss
compass-fontcustom-1.0.0 stylesheets/_fontcustom.scss
compass-fontcustom-1.0.0.pre3 stylesheets/_fontcustom.scss
compass-fontcustom-1.0.0.pre stylesheets/_fontcustom.scss