| @function material-icons-str-replace($string, $search, $replace: '') { |
| $index: str-index($string, $search); |
| @return str-slice($string, 1, $index - 1) + $replace + material-icons-str-replace(str-slice($string, $index + str-length($search)), $search, $replace); |
| @function material-icons-content($codepoint) { |
| @return unquote('"\\#{$codepoint}"'); |
| $font-size: $material-icons-font-size, |
| $font-family: $material-icons-font-family |
| font-family: $font-family; |
| /* Support for all WebKit browsers. */ |
| -webkit-font-smoothing: antialiased; |
| /* Support for Safari and Chrome. */ |
| text-rendering: optimizeLegibility; |
| /* Support for Firefox. */ |
| -moz-osx-font-smoothing: grayscale; |
| font-feature-settings: 'liga'; |
| @mixin material-icon($name, $pseudo: 'before') { |
| $codepoint: map-get($material-icons-codepoints, $name); |
| content: material-icons-content($codepoint); |