Angelmmiguel/material_icons

View on GitHub
app/assets/stylesheets/material_icons.css.erb

Summary

Maintainability
Test Coverage
/*
 * CSS File of Material icons.
 * CSS code based on:
 * https://github.com/google/material-design-icons
 */

//= depend_on_asset "material-icons-regular.woff2"
//= depend_on_asset "material-icons-regular.woff"

/* Use the font */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url('<%= font_path('material-icons-regular.woff2') %>') format('woff2'),
       url('<%= font_path('material-icons-regular.woff') %>') format('woff');
}

/* Base class */
.material-icons,
.mi {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}