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