@import '../styles/theme.scss';

.rm-icon {
  // transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  color: inherit;
  line-height: inherit;

  &.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px; /* Preferred icon size */
    display: inline-block;
    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';

    &.inherit-size {
      font-size: inherit;
      line-height: inherit;
    }
    &.colorPrimary {
      color: $palettePrimaryMain;
    }
    &.colorSecondary {
      color: $paletteSecondaryMain;
    }
    &.colorAction {
      color: $paletteActionSelected;
    }
    &.colorError {
      color: $paletteErrorMain;
    }
    &.colorDisabled {
      color: $paletteActionDisabled;
    }
    &.colorSuccess {
      color: $paletteSuccessMain;
    }
    &.colorWarning {
      color: $paletteWarningMain;
    }
    &.colorProgress {
      color: $paletteProgressMain;
    }
    &.colorDefault {
      color: $paletteTextPrimary;
    }
    &.block {
      display: block;
    }
  }
}
