1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Support for building a single font family

Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
This commit is contained in:
Grégoire Ciles
2022-06-06 17:23:40 +02:00
committed by Chauncey McAskill
parent de1a5904a8
commit e8af22009c

View File

@@ -32,14 +32,14 @@
// @output The `@font-face` at-rules specifying the custom fonts.
@mixin font-faces($webfonts, $dir) {
@if (list-separator($webfonts) == "comma") {
@if (length($webfonts) > 0) {
@if (type-of(nth($webfonts, 1)) == "list") {
@each $webfont in $webfonts {
@include font-face($webfont, $dir);
}
} @else if (list-separator($webfonts) == "space") {
@include font-face($webfonts, $dir);
} @else {
@error 'Invalid list separator for $webfonts';
@include font-face($webfonts, $dir);
}
}
}