diff options
Diffstat (limited to 'assets/css/_functions.scss')
-rw-r--r-- | assets/css/_functions.scss | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/css/_functions.scss b/assets/css/_functions.scss index 1523772..5e2518e 100644 --- a/assets/css/_functions.scss +++ b/assets/css/_functions.scss | |||
@@ -1,5 +1,7 @@ | |||
1 | @use 'sass:math'; | ||
2 | |||
1 | @function px-to-em($s, $b: $font-size) { | 3 | @function px-to-em($s, $b: $font-size) { |
2 | @return 1 / ($b / 1px) * ($s / 1px) * 1em; | 4 | @return 1 / math.div($b, 1px) * math.div($s, 1px) * 1em; |
3 | } | 5 | } |
4 | 6 | ||
5 | @function str-repeat($s, $n) { | 7 | @function str-repeat($s, $n) { |