icons.scss 1.43 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(/fonts/MaterialIcons-Regular.woff2) format('woff2'),
    url(/fonts/MaterialIcons-Regular.woff) format('woff');
}

.material-icons {
12
  font-family: 'Material Icons', sans-serif;
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-flex;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* 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;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
.icons {
  display: inline-block;
  color: mc('grey', '800');
  &.is-text {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    position: relative;
    top: -0.0625em;
    stroke: none;
    fill: none;
  }
  @each $size in 16,18,20,24,32,48,64,96,128 {
    &.is-#{$size} {
      width: #{$size}px;
      height: #{$size}px;
    }
  }
  &.has-right-pad {
    margin-right: .5rem;
  }
  &.is-outlined {
    stroke-width: 2px;
    use {
      fill: inherit;
      stroke: mc('grey', '800');
    }
  }
}
.material-design-icon {
  display: inline-flex;
}