summaryrefslogtreecommitdiffstats
path: root/assets/css/_functions.scss
blob: 1523772e9cf9d00b2069bc36ed314de610f7a591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
@function px-to-em($s, $b: $font-size) {
    @return 1 / ($b / 1px) * ($s / 1px) * 1em;
}

@function str-repeat($s, $n) {
    $r: '';
    @while $n > 0 {
        $r: $r + $s;
        $n: $n - 1;
    }
    @return $r;
}