mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-26 01:28:15 -05:00
24 lines
471 B
SCSS
24 lines
471 B
SCSS
@mixin font-face(
|
|
$font-family,
|
|
$file-path,
|
|
$weight: normal,
|
|
$style: normal,
|
|
$asset-pipeline: $asset-pipeline,
|
|
$file-formats: eot woff2 woff ttf svg) {
|
|
|
|
$font-url-prefix: font-url-prefixer($asset-pipeline);
|
|
|
|
@font-face {
|
|
font-family: $font-family;
|
|
font-style: $style;
|
|
font-weight: $weight;
|
|
|
|
src: font-source-declaration(
|
|
$font-family,
|
|
$file-path,
|
|
$asset-pipeline,
|
|
$file-formats,
|
|
$font-url-prefix
|
|
);
|
|
}
|
|
}
|