reduce glow opacity
[2048.git] / style / helpers.scss
Gabriele Cirulli 1 // Exponent
2 // From: https://github.com/Team-Sass/Sassy-math/blob/master/sass/math.scss#L36
3
4 @function exponent($base, $exponent) {
5 // reset value
6 $value: $base;
7 // positive intergers get multiplied
8 @if $exponent > 1 {
9 @for $i from 2 through $exponent {
10 $value: $value * $base; } }
11 // negitive intergers get divided. A number divided by itself is 1
12 @if $exponent < 1 {
13 @for $i from 0 through -$exponent {
14 $value: $value / $base; } }
15 // return the last value written
16 @return $value;
17 }
18
19 @function pow($base, $exponent) {
20 @return exponent($base, $exponent);
21 }
Gabriele Cirulli 22
comments