Merges branch fix-division-deprecation by @nogweii (https://github.com/nogweii/keyrune) into nogweii-fix-division-deprecation from PR #221

This commit is contained in:
Andrew Gioia 2023-11-21 15:09:58 -05:00
commit ba78665d57
Signed by: andrew
GPG Key ID: FC09694A000800C8
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
@use 'sass:math';
/** /**
* Sizes */ * Sizes */
@each $class, $size in $keyrune_sizes { @each $class, $size in $keyrune_sizes {
@ -9,7 +11,7 @@
/** /**
* Fixed width */ * Fixed width */
.#{$keyrune_prefix}.#{$keyrune_prefix}-fw { .#{$keyrune_prefix}.#{$keyrune_prefix}-fw {
width: calc(18em / #{$keyrune_font_size / ($keyrune_font_size * 0 + 1)}); width: calc(18em / #{math.div($keyrune_font_size, $keyrune_font_size * 0 + 1)});
text-align: center; text-align: center;
} }

View File

@ -10,7 +10,7 @@ $keyrune_font_variant: normal !default;
$keyrune_font_weight: normal !default; $keyrune_font_weight: normal !default;
$keyrune_font_size: 14px !default; $keyrune_font_size: 14px !default;
$keyrune_font_face: 'Keyrune' !default; $keyrune_font_face: 'Keyrune' !default;
$keyrune_font: $keyrune_font_style $keyrune_font_variant $keyrune_font_weight $keyrune_font_size/1 $keyrune_font_face !default; $keyrune_font: $keyrune_font_style $keyrune_font_variant $keyrune_font_weight calc($keyrune_font_size/1) $keyrune_font_face !default;
$keyrune_prefix: 'ss' !default; $keyrune_prefix: 'ss' !default;
$keyrune_default_content: "\e684" !default; $keyrune_default_content: "\e684" !default;
$keyrune_background_clip: text !default; $keyrune_background_clip: text !default;