material-icons.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // Material Icons
  3. // --------------------------------------------------
  4. @font-face {
  5. font-family: 'Material Icons';
  6. font-style: normal;
  7. font-weight: 400;
  8. src: url(../fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
  9. src: local('Material Icons'),
  10. local('MaterialIcons-Regular'),
  11. url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
  12. url(../fonts/MaterialIcons-Regular.woff) format('woff'),
  13. url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
  14. }
  15. .material-icons {
  16. font-family: 'Material Icons';
  17. font-weight: normal;
  18. font-style: normal;
  19. display: inline-block;
  20. width: 1em;
  21. height: 1em;
  22. line-height: 1;
  23. text-align: center;
  24. text-transform: none;
  25. letter-spacing: normal;
  26. vertical-align: sub;
  27. position: relative;
  28. top: 1px;
  29. /* Support for all WebKit browsers. */
  30. -webkit-font-smoothing: antialiased;
  31. /* Support for Safari and Chrome. */
  32. text-rendering: optimizeLegibility;
  33. /* Support for Firefox. */
  34. -moz-osx-font-smoothing: grayscale;
  35. /* Support for IE. */
  36. font-feature-settings: 'liga';
  37. /* Faded */
  38. .opacity(0.6);
  39. /* Sizes */
  40. font-size: @font-size-large;
  41. }
  42. /* Upscale icons in leads */
  43. .lead .material-icons {
  44. font-size: floor((@font-size-base * 1.25));
  45. }
  46. /* Remove opacity from button icons */
  47. .btn .material-icons {
  48. .opacity(1);
  49. }