-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
3,340 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.18 | ||
0.0.19 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2023 Scape Agency BV | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
|
||
// ============================================================================ | ||
// icon.gl | Font Map | ||
// ============================================================================ | ||
|
||
@use "../variables" as *; | ||
|
||
|
||
// FontFace URLs Function | ||
// ============================================================================ | ||
// Generating font-face URLs with hash | ||
|
||
@function icongl_font_url($format) { | ||
@return url("#{$icongl_font_dir}/#{$icongl_font}.#{$format}") format($format); | ||
} | ||
|
||
|
||
|
||
// FontFace Source Value Variables | ||
// ============================================================================ | ||
// Constructing src value for @font-face | ||
|
||
$icongl_font_src: (); | ||
@each $format, $type in $icongl_font_formats { | ||
$icongl_font_src: append($icongl_font_src, icongl_font_url($format), comma); | ||
} | ||
|
||
|
||
// FontFace Declaration | ||
// ============================================================================ | ||
|
||
@font-face { | ||
// Using 'swap' to ensure text remains visible during font loading | ||
font-display: swap; | ||
font-family: $icongl_font; | ||
src: $icongl_font_src; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2023 Scape Agency BV | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
|
||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
|
||
// ============================================================================ | ||
// icon.gl | Font Map | ||
// ============================================================================ | ||
|
||
@use "../variables" as *; | ||
|
||
|
||
// FontFace URLs Function | ||
// ============================================================================ | ||
// Generating font-face URLs with hash | ||
|
||
@function icongl_font_url($format) { | ||
@return url("#{$icongl_font_dir}/#{$icongl_font}.#{$format}") format($format); | ||
} | ||
|
||
|
||
|
||
// FontFace Source Value Variables | ||
// ============================================================================ | ||
// Constructing src value for @font-face | ||
|
||
$icongl_font_src: (); | ||
@each $format, $type in $icongl_font_formats { | ||
$icongl_font_src: append($icongl_font_src, icongl_font_url($format), comma); | ||
} | ||
|
||
|
||
// FontFace Declaration | ||
// ============================================================================ | ||
|
||
@font-face { | ||
// Using 'swap' to ensure text remains visible during font loading | ||
font-display: swap; | ||
font-family: $icongl_font; | ||
src: $icongl_font_src; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
// https://stackoverflow.com/questions/1567184/sass-and-font-face | ||
|
||
@use "../variables" as *; | ||
|
||
|
||
@mixin icon_face( | ||
$path, | ||
$family, | ||
$type: "", | ||
// $weight: 400, | ||
// $style: normal, | ||
// $local1: null, | ||
// $local2: null, | ||
$ttf: null, | ||
$otf: null, | ||
$eot: null, | ||
$svg: null | ||
) { | ||
|
||
// Source List | ||
// ------------------------------------------------------------------------ | ||
|
||
$src: null; // initialize an empty source path | ||
|
||
|
||
// Local Sources | ||
// ------------------------------------------------------------------------ | ||
// only load local files when both sources are present | ||
|
||
// @if $local1 and $local2 { | ||
// $src: append($src, local("#{$local1}"), comma); | ||
// $src: append($src, local("#{$local2}"), comma); | ||
// } | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
@if $otf { | ||
$src: append($src, url("#{$path}#{$type}.otf") format("opentype"), comma); | ||
} | ||
|
||
|
||
// Default Formats | ||
// ------------------------------------------------------------------------ | ||
// load default formats (woff and woff2) | ||
|
||
$src: append($src, url("#{$path}#{$type}.woff2") format("woff2"), comma); | ||
$src: append($src, url("#{$path}#{$type}.woff") format("woff"), comma); | ||
|
||
|
||
|
||
// Other Formats | ||
// ------------------------------------------------------------------------ | ||
// Formats that should only be added at the end | ||
|
||
@if $ttf { | ||
$src: append($src, url("#{$path}#{$type}.ttf") format("truetype"), comma); | ||
} | ||
|
||
@if $svg { | ||
$src: append($src, url("#{$path}#{$type}.svg##{$svg}") format("svg"), comma); | ||
} | ||
|
||
|
||
|
||
// Font Face Declaration | ||
// ------------------------------------------------------------------------ | ||
|
||
@font-face { | ||
font-family: $family; | ||
// for compatibility reasons EOT comes first and is not appended | ||
@if $eot { | ||
src: url("#{$path}#{$type}.eot"); | ||
} | ||
// load appended sources path | ||
src: $src; | ||
// font-weight: $weight; | ||
// font-style: $style; | ||
} | ||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
@include icon_face( | ||
"#{$font_dir}/#{$font_name}", | ||
$font_name, | ||
"", | ||
// 600, | ||
// "normal", | ||
// "#{$font_name} SemiBold", | ||
// "#{$font_name}-SemiBold", | ||
"ttf", | ||
// "otf" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.