2025-02-17 07:10:40 +01:00
|
|
|
${{ name }}-font: "{{ name }}" !default;
|
|
|
|
${{ name }}-font-dir: "{{ fontsUrl }}" !default;
|
|
|
|
${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default;
|
2025-02-17 07:13:57 +01:00
|
|
|
${{ name }}-font-hash: "28df46889dced875dea48cfe64755198" !default;
|
2025-02-17 07:10:40 +01:00
|
|
|
${{ 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 }}
|