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:
committed by
Chauncey McAskill
parent
de1a5904a8
commit
e8af22009c
@@ -32,14 +32,14 @@
|
|||||||
// @output The `@font-face` at-rules specifying the custom fonts.
|
// @output The `@font-face` at-rules specifying the custom fonts.
|
||||||
|
|
||||||
@mixin font-faces($webfonts, $dir) {
|
@mixin font-faces($webfonts, $dir) {
|
||||||
@if (list-separator($webfonts) == "comma") {
|
@if (length($webfonts) > 0) {
|
||||||
@each $webfont in $webfonts {
|
@if (type-of(nth($webfonts, 1)) == "list") {
|
||||||
@include font-face($webfont, $dir);
|
@each $webfont in $webfonts {
|
||||||
|
@include font-face($webfont, $dir);
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@include font-face($webfonts, $dir);
|
||||||
}
|
}
|
||||||
} @else if (list-separator($webfonts) == "space") {
|
|
||||||
@include font-face($webfonts, $dir);
|
|
||||||
} @else {
|
|
||||||
@error 'Invalid list separator for $webfonts';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user