We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ee366 commit b2f6244Copy full SHA for b2f6244
src/base/_fonts.scss
@@ -1,11 +1,13 @@
1
+@use 'sass:meta';
2
+
3
@mixin _non-variable-font-face($name, $path, $parameter) {
4
@font-face {
5
font-display: swap;
6
font-family: $name;
7
src: url('../src/assets/fonts/#{$path}/#{$parameter}.woff2') format('woff2'),
8
url('../src/assets/fonts/#{$path}/#{$parameter}.woff') format('woff');
9
- @if type-of($parameter) == 'number' {
10
+ @if meta.type-of($parameter) == 'number' {
11
font-weight: $parameter;
12
} @else {
13
font-style: $parameter;
0 commit comments