Sha256: e702688ee76567a76a07e9c7e7aae37da89dfa3aec43d38d0a593687a1813789
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 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 { $class_name: "icon-#{$name}-#{sanitize-symbol($glyph-name)}"; .#{$class_name} { @if $base-class { @extend #{$base-class}; } &:before { content: glyph($map, $glyph-name); } } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compass-fontcustom-1.3.1 | stylesheets/_fontcustom.scss |