Makes it easier to consistently declare icon fonts in your project.
Used in conjunction with:
A custom font must have been defined using @font-face or web-font().
The
$icon-font
variable must be defined as the font-family to use for theicon-font
mixin.
@include icon-font();
Default:
before
Takes a value of either before
or after
to declare which pseudo-element to use.
$icon-font: 'icon-font';
.element {
@include icon-font;
}
.element::after {
display: inline-block;
font-family: $icon-font;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
vertical-align: middle;
}