blob: 5e2518edfbc45c89a164d8ee0eb27a71913c8a12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
@use 'sass:math';
@function px-to-em($s, $b: $font-size) {
@return 1 / math.div($b, 1px) * math.div($s, 1px) * 1em;
}
@function str-repeat($s, $n) {
$r: '';
@while $n > 0 {
$r: $r + $s;
$n: $n - 1;
}
@return $r;
}
|