summaryrefslogtreecommitdiffstats
path: root/build/font
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:26 +0000
commitd50fca7dd40f596ebb8b50cd9c4140857f2a0637 (patch)
treea8b40991dcab905c34658c3d860ad7e0a4554c9d /build/font
parentReleasing debian version 1.10.3+dfsg-1. (diff)
downloadbootstrap-icons-d50fca7dd40f596ebb8b50cd9c4140857f2a0637.tar.xz
bootstrap-icons-d50fca7dd40f596ebb8b50cd9c4140857f2a0637.zip
Merging upstream version 1.10.4+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/font')
-rw-r--r--build/font/css.hbs6
-rw-r--r--build/font/scss.hbs16
2 files changed, 17 insertions, 5 deletions
diff --git a/build/font/css.hbs b/build/font/css.hbs
index b6de062..6f2aa30 100644
--- a/build/font/css.hbs
+++ b/build/font/css.hbs
@@ -1,3 +1,9 @@
+/*!
+ * Bootstrap Icons (https://icons.getbootstrap.com/)
+ * Copyright 2019-2023 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE.md)
+ */
+
@font-face {
font-display: block;
font-family: "{{ name }}";
diff --git a/build/font/scss.hbs b/build/font/scss.hbs
index ce0617d..710b45c 100644
--- a/build/font/scss.hbs
+++ b/build/font/scss.hbs
@@ -1,9 +1,15 @@
+/*!
+ * Bootstrap Icons (https://icons.getbootstrap.com/)
+ * Copyright 2019-2023 The Bootstrap Authors
+ * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE.md)
+ */
+
${{ name }}-font: "{{ name }}" !default;
${{ name }}-font-dir: "{{ fontsUrl }}" !default;
-${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default;
+${{ name }}-font-file: "#{${{ name }}-font-dir}/#{${{ name }}-font}" !default;
${{ name }}-font-hash: "24e3eb84d0bcaf83d77f904c78ac1f47" !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;
+ url("#{${{ name }}-font-file}.woff?#{${{ name }}-font-hash}") format("woff") !default;
@font-face {
font-display: block;
@@ -32,6 +38,6 @@ ${{ name }}-map: (
{{/ each }}
);
-{{# each codepoints }}
-.{{ ../prefix }}-{{ @key }}::before { content: map-get(${{ ../name }}-map, "{{ @key }}"); }
-{{/ each }}
+@each $icon, $codepoint in ${{ name }}-map {
+ .{{ prefix }}-#{$icon}::before { content: $codepoint; }
+}