summaryrefslogtreecommitdiffstats
path: root/assets/css/_functions.scss
blob: a641a34e696498d52fc494f10fe457ddbfb770c7 (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 math.div(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;
}