-
Notifications
You must be signed in to change notification settings - Fork 0
/
_template.scss
42 lines (36 loc) · 1.29 KB
/
_template.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@charset "utf-8";
@font-face {
font-family: "<%= fontName %>";
src: url('<%= fontPath %><%= fontName %>.eot');
src: url('<%= fontPath %><%= fontName %>.eot?#iefix') format('eot'),
url('<%= fontPath %><%= fontName %>.woff') format('woff'),
url('<%= fontPath %><%= fontName %>.ttf') format('truetype'),
url('<%= fontPath %><%= fontName %>.svg#<%= fontName %>') format('svg');
font-weight: normal;
font-style: normal;
}
<% _.each(glyphs, function(glyph) { %>$<%= fontName %>-<%= glyph.name %>: '<%= glyph.name %>' "\<%= glyph.codepoint.toString(16).toUpperCase() %>";
<% }); %>
$<%= fontName %>: <% _.each(glyphs, function(glyph) { %>$<%= fontName %>-<%= glyph.name %> <% }); %>;
@mixin <%= fontName %>($name) {
&:<%= pseudo %> {
@each $icon in $<%= fontName %> {
$n: index($icon, $name);
@if $n != null {
@include <%= fontName %>-content($icon);
}
}
font-family: "<%= fontName %>";
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@content;
}
}
@mixin <%= fontName %>-content($icon) {
content: nth($icon, 2);
}