/// Creates pseudo class containing font icon
/// @param {string} $name - Name of class, ie 'gift' will become '.icon--gift'
/// @param {string} $icon - Name of icon you would like to extend, ie '.icon-gift'
/// @example @include rem('gift', 'icon-gift');
/// @output
/// .icon--gift {
///    &:before {
///      @extend %icon-gift;
///    }
///  }
/// @group Icons

@mixin create-icon($name, $icon) {
  .icon--#{$name} {
    &::before {
      @extend %#{$icon};
    }
  }
}

//*refactor* Remove mixin, use create-icon
@mixin font-icons($icon-name) {
  display: inline-block;
  @extend %mns-icons;
  @extend .#{$icon-name} !optional;
}
