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
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-12-28 05:30:43 +0300
committerMark Otto <otto@github.com>2022-07-17 01:28:23 +0300
commit27860fdc9ae8288ebb47db5206d9e24243fb09a6 (patch)
tree6e8446c2508060a302c33364cd321aca477bf0cc
parentaa1ede051cd0cbc369be31ea097856e673e3573b (diff)
Update font Sass for more control over paths
-rw-r--r--build/font/scss.hbs5
-rw-r--r--font/bootstrap-icons.scss6
2 files changed, 8 insertions, 3 deletions
diff --git a/build/font/scss.hbs b/build/font/scss.hbs
index 3a5a70217..a9347bde1 100644
--- a/build/font/scss.hbs
+++ b/build/font/scss.hbs
@@ -1,5 +1,8 @@
${{ name }}-font: "{{ name }}" !default;
-${{ name }}-font-src: {{{ fontSrc }}} !default;
+${{ name }}-font-dir: "{{ fontsUrl }}" !default;
+${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default;
+${{ 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-family: ${{ name }}-font;
diff --git a/font/bootstrap-icons.scss b/font/bootstrap-icons.scss
index 0514e5acc..79db859b3 100644
--- a/font/bootstrap-icons.scss
+++ b/font/bootstrap-icons.scss
@@ -1,6 +1,8 @@
$bootstrap-icons-font: "bootstrap-icons" !default;
-$bootstrap-icons-font-src: url("./fonts/bootstrap-icons.woff2?48804dbfe98a9c8a08858a0de0b0e3db") format("woff2"),
-url("./fonts/bootstrap-icons.woff?48804dbfe98a9c8a08858a0de0b0e3db") format("woff") !default;
+$bootstrap-icons-fonts-dir: "./fonts" !default;
+$bootstrap-icons-font-file: #{$bootstrap-icons-fonts-dir}/#{$bootstrap-icons-font} !default;
+$bootstrap-icons-font-hash: "48804dbfe98a9c8a08858a0de0b0e3db" !default;
+$bootstrap-icons-font-src: url("#{$bootstrap-icons-font-file}.woff2?#{$bootstrap-icons-font-hash}") format("woff2"), url("#{$bootstrap-icons-font-file}.woff?#{$bootstrap-icons-font-hash}") format("woff") !default;
@font-face {
font-family: $bootstrap-icons-font;