$asset-path: '..' !default;

@font-face {
    font-family: 'fec-icons';
    src: url('#{$asset-path}/fonts/fec/<%= fontName %>.eot');
    src: url('#{$asset-path}/fonts/fec/<%= fontName %>.eot?#iefix') format('eot'),
    url('#{$asset-path}/fonts/fec/<%= fontName %>.woff') format('woff'),
    url('#{$asset-path}/fonts/fec/<%= fontName %>.ttf') format('truetype'),
    url('#{$asset-path}/fonts/fec/<%= fontName %>.svg#<%= fontName %>') format('svg');
    font-weight: normal;
    font-style: normal;
}

.<%= className %>:before {
    display: inline-block;
    font-family: 'fec-icons';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.<%= className %> {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

// Ruby to generate components/_generated_icons.scss
// This will generate the icon classes.
<% _.each(glyphs, function(glyph) { %>.<%= className %>-<%= glyph.name %>:before { content: '\<%= glyph.codepoint.toString(16).toUpperCase() %>'; }
<% }); %>

// This generates the code point variables.
<% _.each(glyphs, function(glyph) { %>$icon-<%= glyph.name %>: '\<%= glyph.codepoint.toString(16).toUpperCase() %>';
<%; }); %>
