Skip to content

Commit

Permalink
fix: Fix fontface assets path mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
willybrauner committed May 7, 2024
1 parent 389c98c commit 1fd98b5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions assets/scss/mixins/_font-face.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
* @include font-face("Font Name", "font-file", fallback)
* @include font-face($font-family: "Font Name", $file-name: "font-file", $font-display: fallback)
*/
@mixin font-face(
$font-family,
$file-name,
$font-display: swap
) {
@mixin font-face($font-family, $file-name, $font-display: swap) {
@font-face {
font-display: $font-display;
font-family: $font-family;
src: url('~assets/fonts/#{$file-name}.woff2') format('woff2'),
url('~assets/fonts/#{$file-name}.woff') format('woff');
src:
url('~/assets/fonts/#{$file-name}.woff2') format('woff2'),
url('~/assets/fonts/#{$file-name}.woff') format('woff');
@content;
}
}

0 comments on commit 1fd98b5

Please sign in to comment.