Skip to content

Commit

Permalink
Icon fix for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Dec 5, 2015
1 parent 24ff1dd commit 0b876f8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -3352,6 +3352,14 @@ nav ul a span.badge {
padding: 0 !important;
}

/* This is needed for some mobile phones to display the Google Icon font properly */
.material-icons {
text-rendering: optimizeLegibility;
-webkit-font-feature-settings: 'liga';
-moz-font-feature-settings: 'liga';
font-feature-settings: 'liga';
}

@font-face {
font-family: "Material-Design-Icons";
src: url("../font/material-design-icons/Material-Design-Icons.eot?#iefix") format("embedded-opentype"), url("../font/material-design-icons/Material-Design-Icons.woff2") format("woff2"), url("../font/material-design-icons/Material-Design-Icons.woff") format("woff"), url("../font/material-design-icons/Material-Design-Icons.ttf") format("truetype"), url("../font/material-design-icons/Material-Design-Icons.svg#Material-Design-Icons") format("svg");
Expand Down
2 changes: 1 addition & 1 deletion css/ghpages-materialize.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions sass/components/_icons-material-design.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/* This is needed for some mobile phones to display the Google Icon font properly */
.material-icons {
text-rendering: optimizeLegibility;
font-feature-settings: 'liga';
}

$font-mdi : 'Material-Design-Icons';
$mdi-prefix : 'mdi-';

Expand Down

0 comments on commit 0b876f8

Please sign in to comment.