////////////////////// INSTRUCTIONS //////////////////////
/////   1. copy new icon into ./vectors/             /////
/////   2. cd src/gui/shared/fonts/fontcustom/        /////
/////   3. run `fontcustom compile`                  /////
/////   4. add icon selector to stylesheet below     /////
//////////////////////////////////////////////////////////

@import './stylesheets/mo-web-font-icons';
@import './stylesheets/mo-web-icon-font';

@mixin icon($position: before, $icon: false, $styles: true) {
  @if $position == both {
    $position: 'before, &:after';
  }
  &:#{$position} {
    @if $icon {
      content: '#{map-get($font-icons, $icon)}';
    }
    @if $styles {
      speak: none;
      font-family: mo-web-icons;
    }
    @content;
  }
}

.mo-web-icon- {
  &facebook {
    @include icon(before, icon-facebook);
  }

  &amazon {
    @include icon(before, icon-amazon);
  }

  &shopping-bag {
    @include icon(before, icon-shopping-bag);
  }

  &close {
    @include icon(before, icon-close);
  }

  &question-mark {
    @include icon(before, icon-question-mark);
  }

  &question-filled {
    @include icon(before, icon-question-filled);
  }
}
