Skip to content

Commit

Permalink
Update build/font files (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Nov 30, 2022
1 parent ae79d02 commit 32a2cd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build/font/css.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
src: {{{ fontSrc }}};
}

.{{prefix}}::before,
[class^="{{prefix}}-"]::before,
[class*=" {{prefix}}-"]::before {
.{{ prefix }}::before,
[class^="{{ prefix }}-"]::before,
[class*=" {{ prefix }}-"]::before {
display: inline-block;
font-family: {{ name }} !important;
font-style: normal;
Expand Down
9 changes: 5 additions & 4 deletions build/font/scss.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ ${{ name }}-font: "{{ name }}" !default;
${{ name }}-font-dir: "{{ fontsUrl }}" !default;
${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default;
${{ name }}-font-hash: "28df46889dced875dea48cfe64755198" !default;
${{ name }}-font-src: url("#{${{ name }}-font-file}.woff2?#{${{ name }}-font-hash}") format("woff2"), url("#{${{ name }}-font-file}.woff?#{${{ name }}-font-hash}") format("woff") !default;
${{ name }}-font-src: url("#{${{ name }}-font-file}.woff2?#{${{ name }}-font-hash}") format("woff2"),
url("#{${{ name }}-font-file}.woff?#{${{ name }}-font-hash}") format("woff") !default;

@font-face {
font-display: block;
font-family: ${{ name }}-font;
src: ${{ name }}-font-src;
}

.{{prefix}}::before,
[class^="{{prefix}}-"]::before,
[class*=" {{prefix}}-"]::before {
.{{ prefix }}::before,
[class^="{{ prefix }}-"]::before,
[class*=" {{ prefix }}-"]::before {
display: inline-block;
font-family: ${{ name }}-font !important;
font-style: normal;
Expand Down

0 comments on commit 32a2cd6

Please sign in to comment.