/// @name add all fonts
/// @author Stevan Stojanovic
/// @group mixins
/// @require {variable} $map-of-fonts
/// @require {variable} $fonts-path
/// @param   {map}      $map  [$map-of-fonts] provide the map of font names/or single font name
/// @param   {string}   $path [$fonts-path] provide the path were fonts are stored
/// in order to generate this fonts you must include this mixin into related project on main file
@mixin add-all-fonts(
	$map: $map-of-fonts,
	$path: $fonts-path) {
	
	@if ($map != null) {
		@each $font-type, $font-name in $map {
			@font-face {
				font-family: $font-type;
				font-style: normal;
				font-weight: normal;
				src: url('#{$path}' + '#{$font-name}');
			}
		}
	} @else {
		@warn '#{$map}' + 'should be placed as argument';
	}
}
