From 78edec0e2d8a3e1216d99234554276cb05505ac4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 22 Jul 2022 21:27:36 +0200 Subject: Adding upstream version 1.9.1+dfsg. Signed-off-by: Daniel Baumann --- build/font/css.hbs | 24 ++++++++++++++++++++++++ build/font/html.hbs | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ build/font/scss.hbs | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 build/font/css.hbs create mode 100644 build/font/html.hbs create mode 100644 build/font/scss.hbs (limited to 'build/font') diff --git a/build/font/css.hbs b/build/font/css.hbs new file mode 100644 index 0000000..f651092 --- /dev/null +++ b/build/font/css.hbs @@ -0,0 +1,24 @@ +@font-face { + font-display: block; + font-family: "{{ name }}"; + src: {{{ fontSrc }}}; +} + +.{{prefix}}::before, +[class^="{{prefix}}-"]::before, +[class*=" {{prefix}}-"]::before { + display: inline-block; + font-family: {{ name }} !important; + font-style: normal; + font-weight: normal !important; + font-variant: normal; + text-transform: none; + line-height: 1; + vertical-align: -.125em; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +{{# each codepoints }} +.{{ ../prefix }}-{{ @key }}::before { content: "\\{{ codepoint this }}"; } +{{/ each }} diff --git a/build/font/html.hbs b/build/font/html.hbs new file mode 100644 index 0000000..0639a3a --- /dev/null +++ b/build/font/html.hbs @@ -0,0 +1,53 @@ + + + + + {{ name }} + + + + + + + + +

{{ name }}

+ +
+ {{# each assets }} +
+ <{{ ../tag }} class="{{ ../prefix }} {{ ../prefix }}-{{ @key }}"> +
{{ @key }}
+
+ {{/ each }} +
+ + + diff --git a/build/font/scss.hbs b/build/font/scss.hbs new file mode 100644 index 0000000..eb67a50 --- /dev/null +++ b/build/font/scss.hbs @@ -0,0 +1,36 @@ +${{ name }}-font: "{{ name }}" !default; +${{ name }}-font-dir: "{{ fontsUrl }}" !default; +${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default; +${{ name }}-font-hash: "8d200481aa7f02a2d63a331fc782cfaf" !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 { + display: inline-block; + font-family: ${{ name }}-font !important; + font-style: normal; + font-weight: normal !important; + font-variant: normal; + text-transform: none; + line-height: 1; + vertical-align: -.125em; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +${{ name }}-map: ( +{{# each codepoints }} + "{{ @key }}": "\\{{ codepoint this }}", +{{/ each }} +); + +{{# each codepoints }} +.{{ ../prefix }}-{{ @key }}::before { content: map-get(${{ ../name }}-map, "{{ @key }}"); } +{{/ each }} -- cgit v1.2.3