Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/font/css.hbs2
-rw-r--r--build/font/scss.hbs1
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;
}