Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace division with non-deprecated syntax #221

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sass/_helpers.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:math';

/**
* Sizes */
@each $class, $size in $keyrune_sizes {
Expand All @@ -9,7 +11,7 @@
/**
* Fixed width */
.#{$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;
}

Expand Down Expand Up @@ -105,4 +107,4 @@
color: #000;
}

}
}
4 changes: 2 additions & 2 deletions sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $keyrune_font_variant: normal !default;
$keyrune_font_weight: normal !default;
$keyrune_font_size: 14px !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_default_content: "\e684" !default;
$keyrune_background_clip: text !default;
Expand Down Expand Up @@ -486,4 +486,4 @@ $keyrune_sets: (
// display glyph correctly
@function ss-content($glyph) {
@return unquote("\"#{$glyph}\"");
}
}