Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1cc81fb

Browse files
authored
Merge pull request Hacker0x01#73 from Hacker0x01/material-design-icons
Add material design icons
2 parents e5ce611 + fc7926d commit 1cc81fb

13 files changed

+2418
-1
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

src/fonts/material-icons/MaterialIcons-Regular.ijmap

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/fonts/material-icons/MaterialIcons-Regular.svg

Lines changed: 2373 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@font-face {
2+
font-family: 'Material Icons';
3+
font-style: normal;
4+
font-weight: 400;
5+
src: url("./MaterialIcons-Regular.eot"); /* For IE6-8 */
6+
src: local('Material Icons'),
7+
local('MaterialIcons-Regular'),
8+
url("./MaterialIcons-Regular.woff2") format('woff2'),
9+
url("./MaterialIcons-Regular.woff") format('woff'),
10+
url("./MaterialIcons-Regular.ttf") format('truetype');
11+
}
12+
13+
.material-icons {
14+
font-family: 'Material Icons';
15+
font-weight: normal;
16+
font-style: normal;
17+
font-size: 24px; /* Preferred icon size */
18+
display: inline-block;
19+
line-height: 1;
20+
text-transform: none;
21+
letter-spacing: normal;
22+
word-wrap: normal;
23+
white-space: nowrap;
24+
direction: ltr;
25+
26+
/* Support for all WebKit browsers. */
27+
-webkit-font-smoothing: antialiased;
28+
/* Support for Safari and Chrome. */
29+
text-rendering: optimizeLegibility;
30+
31+
/* Support for Firefox. */
32+
-moz-osx-font-smoothing: grayscale;
33+
34+
/* Support for IE. */
35+
font-feature-settings: 'liga';
36+
37+
&--18 { font-size: 18px; }
38+
&--24 { font-size: 24px; }
39+
&--36 { font-size: 36px; }
40+
&--48 { font-size: 48px; }
41+
}

src/layouts/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import GatsbyConfig from '../../gatsby-config'
55

66
import Header from '../components/header/header'
77

8-
import '../fonts/effra.scss'
8+
import '../fonts/effra/effra.scss'
9+
import '../fonts/material-icons/material-icons.scss'
10+
911
import '../css/main.scss'
1012

1113
const TemplateWrapper = ({ children }) => (

0 commit comments

Comments
 (0)