2016-01-18 05:21:44 +08:00
|
|
|
@font-face {
|
2016-01-18 06:43:04 +08:00
|
|
|
font-family: 'CartoIcon';
|
|
|
|
src: url('fonts/cartoIcon.eot');
|
|
|
|
src: url('fonts/cartoIcon.eot?#iefix') format('embedded-opentype'),
|
|
|
|
url('fonts/cartoIcon.woff') format('woff'),
|
|
|
|
url('fonts/cartoIcon.ttf') format('truetype'),
|
|
|
|
url('fonts/cartoIcon.svg?ey3vsq#cartoIcon') format('svg');
|
2016-01-18 05:21:44 +08:00
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2016-01-18 06:49:29 +08:00
|
|
|
.iconFont {
|
|
|
|
display: inline-block;
|
|
|
|
font-family: 'CartoIcon';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2016-01-18 05:21:44 +08:00
|
|
|
<% _.each(glyphs, function(glyph) { %>
|
2016-01-18 06:35:00 +08:00
|
|
|
<%= '/* SG' %>
|
2016-01-18 05:21:44 +08:00
|
|
|
<%= '# Icon font/' + glyph.fileName.split("_")[2] %>
|
|
|
|
```
|
|
|
|
<i class="iconFont iconFont-<%= glyph.fileName.split("_")[2] %> iconFont--size24"></i>
|
|
|
|
```
|
2016-01-18 06:35:00 +08:00
|
|
|
<%= '*/' %>
|
2016-01-18 06:58:52 +08:00
|
|
|
|
2016-01-18 06:43:04 +08:00
|
|
|
.iconFont-<%= glyph.fileName.split("_")[2] %>::before {
|
2016-01-18 05:21:44 +08:00
|
|
|
content: '\<%= glyph.codePoint %>';
|
|
|
|
}
|
|
|
|
<% }); %>
|
|
|
|
|