Created
August 25, 2017 07:14
-
-
Save prosenjit-manna/c49c03d96882e6dd9d23682d90442743 to your computer and use it in GitHub Desktop.
_icon-preview.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css"> | |
<style> | |
@font-face { | |
font-family: "<%= fontName %>"; | |
src:url('../src/assets/fonts/<%= fontName %>.woff') format('woff'), | |
url('../src/assets/fonts/<%= fontName %>.ttf') format('truetype'), | |
url('../src/assets/fonts/<%= fontName %>.svg#<%= fontName %>') format('svg'); | |
} | |
.<%= cssClass%> { | |
font-family: "<%= fontName %>"; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
font-style: normal; | |
font-variant: normal; | |
font-weight: normal; | |
text-decoration: none; | |
text-transform: none; | |
} | |
<% _.each(glyphs, function(glyph) { %>.<%= cssClass%>-<%= glyph.fileName %>:before { | |
content: "\<%= glyph.codePoint %>"; | |
} | |
<% }); %> | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<% _.each(glyphs, function(glyph) { %> | |
<div class="col-6 col-sm-4 col-md-3 text-center"> | |
<i class="<%= cssClass%> <%= cssClass%>-<%= glyph.fileName %>"></i> | |
<p><%= cssClass%>-<%= glyph.fileName %></p> | |
</div> | |
<% }); %> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment