forked from SEA-Design-Dev/mean-stack-1
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from mollyfish/icons
Icons
- Loading branch information
Showing
5 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Icon Components</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" href="apple-touch-icon.png"> | ||
<link rel="stylesheet" href="css/main.css"> | ||
</head> | ||
<body> | ||
<a href="#" class="icon-menu"></a> | ||
<a href="https://plus.google.com/" class=" icon-style icon-google-plus"></a> | ||
<a href="http://www.facebook.com" class="icon-style icon-facebook"></a> | ||
<a href="http://www.twitter.com" class="icon-style icon-twitter"></a> | ||
<a href="http://www.linkedin.com" class=" icon-style icon-linkedin"></a> | ||
<a href="http://www.pinterest.com" class="icon-pinterest"></a> | ||
<script src="js/index.js"></script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
<p>Hello world! This is HTML5 Boilerplate.</p> | ||
<script src="js/index.js"></script> | ||
</body> | ||
</html> | ||
</html> | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
@import "modules/reset.scss"; | ||
@import "modules/colors.scss"; | ||
@import "modules/typography.scss"; | ||
@import "modules/icon-fonts"; | ||
|
||
@import "partials/icons.scss"; | ||
@import "partials/buttons.scss"; | ||
|
||
|
||
@import "partials/buttons.scss"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@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: 2; | ||
color: $text-color-light; | ||
-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); | ||
} | ||
} | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.icon-style { | ||
font-size: 100%; | ||
border-radius: 50%; | ||
padding: .3em; | ||
background-color: $background-color-dark; | ||
} | ||
.icon-pinterest:before { | ||
font-size: 150%; | ||
color: $text-color-dark; | ||
} | ||
.icon-menu:before { | ||
font-size: 150%; | ||
color: $text-color-dark; | ||
} |