diff options
author | Mark Otto <otto@github.com> | 2022-07-17 01:31:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 01:31:55 +0300 |
commit | 2e38adacd3e8b4520afac582bb5e822f436ba44e (patch) | |
tree | 53ce45ce7242d01a5ec92c25990dea65fc048408 /build | |
parent | 27860fdc9ae8288ebb47db5206d9e24243fb09a6 (diff) |
Fixes for v1.9.1 (#1373)
* Properly add font-display to CSS and SCSS templates for icon fonts
Fixes #1368
* Add missing icons and fix broken ones from v1.9.0 release
- Fixes #1372: Rename cassette and cassette-fill
- Fixes #1370: Adds fuel pump and EV station icons
- Fixes #1367: Fixes duplicate path in Apple icon
* Bump versions, update homepage new banner
* Update social card
Diffstat (limited to 'build')
-rw-r--r-- | build/font/css.hbs | 2 | ||||
-rw-r--r-- | build/font/scss.hbs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/build/font/css.hbs b/build/font/css.hbs index bacc94a2a..f65109204 100644 --- a/build/font/css.hbs +++ b/build/font/css.hbs @@ -1,4 +1,5 @@ @font-face { + font-display: block; font-family: "{{ name }}"; src: {{{ fontSrc }}}; } @@ -7,7 +8,6 @@ [class^="{{prefix}}-"]::before, [class*=" {{prefix}}-"]::before { display: inline-block; - font-display: block; font-family: {{ name }} !important; font-style: normal; font-weight: normal !important; diff --git a/build/font/scss.hbs b/build/font/scss.hbs index a9347bde1..4e19afb96 100644 --- a/build/font/scss.hbs +++ b/build/font/scss.hbs @@ -5,6 +5,7 @@ ${{ name }}-font-hash: "{{ hash }}" !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; } |