Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
feat(Material Icons): support overriding material font url using scss
Browse files Browse the repository at this point in the history
 - to allow referencing the font from any scss file location. define `$md-font-url` before importing `font.scss`
  • Loading branch information
justindujardin committed Dec 12, 2015
1 parent 015392f commit a9c88bc
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions font/font.scss → public/font/font.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
$md-font-url: './' !default;

@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(./font/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('./Material Icons'),
local('./MaterialIcons-Regular'),
url(./font/MaterialIcons-Regular.woff2) format('woff2'),
url(./font/MaterialIcons-Regular.woff) format('woff'),
url(./font/MaterialIcons-Regular.ttf) format('truetype');
src: url($md-font-url + 'MaterialIcons-Regular.eot'); /* For IE6-8 */
src: local($md-font-url + 'Material Icons'),
local($md-font-url + 'MaterialIcons-Regular'),
url($md-font-url + 'MaterialIcons-Regular.woff2') format('woff2'),
url($md-font-url + 'MaterialIcons-Regular.woff') format('woff'),
url($md-font-url + 'MaterialIcons-Regular.ttf') format('truetype');
}

.material-icons {
font-family: 'Material Icons';
font-weight: normal;
Expand Down

0 comments on commit a9c88bc

Please sign in to comment.