Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons #5

Merged
merged 6 commits into from
Oct 6, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add icomoon icons
Zachary Gordon committed Oct 6, 2015
commit b096b80f8355a2c7482ce27920ef07683da6d03c
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@
<p>Hello world! This is HTML5 Boilerplate.</p>
<script src="js/index.js"></script>
</body>
</html>
</html>
39 changes: 39 additions & 0 deletions public/sass/_icon-fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?j42c1j');
src:url('fonts/icomoon.eot?j42c1j#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?j42c1j') format('truetype'),
url('fonts/icomoon.woff?j42c1j') format('woff'),
url('fonts/icomoon.svg?j42c1j#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
font-family: 'icomoon';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

$icons:
(menu '\20')
(google-plus '\e800')
(facebook '\e801')
(twitter '\e802')
(linkedin '\e803')
(pinterest '\e804')
;

@each $icon in $icons {
.icon-#{nth($icon, 1)}:before {
content:nth($icon, 2);
}
}
3 changes: 2 additions & 1 deletion public/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "modules/reset.scss";
@import "modules/reset.scss";
@import "icon-fonts";