1.0.1 • Published 9 years ago
material-icons-css v1.0.1
Material Icons CSS
Use text to create icons is nice, but when you have to get compatbility with old browsers, it is not so nice.
Material Icons CSS allows to use classname instead of text for icons.
Quick Start
Download lib
npm install material-icons-cssor
bower install material-icons-cssInsert into your HTML :
<link rel="stylesheet" href="your-css-folder/material-icons.min.css"/>Before :
<i class="material-icons">check</i>
<i class="material-icons">add</i>After :
<i class="material-icons material-icons-check"></i>
<i class="material-icons material-icons-add"></i>"material-icons-" ??? What is this UGLY prefix ???
Some Material Design Icons' name are starting with numerics :
.3d-rotationis NOT allowed.such-prefix-3d-rotationis.
"material-icons-" IS STILL UGLY !!!
You can change the prefix at line 3, into scss\style.scss.
Once, you have made your changes, type into your console (at root project) :
npm ito install dependenciesgulpto regenerate CSS files
Licence
All rights reserved to Google
Original github page : material-design-icons
Author : Jacques Cornat