24 lines
968 B
SCSS
24 lines
968 B
SCSS
@function someVeryLongFunctionNameForJustAPow($base, $exponent) {
|
|
$result: 1;
|
|
@for $_ from 1 through $exponent {
|
|
$result: $result * $base;
|
|
}
|
|
@return $result;
|
|
}
|
|
|
|
@function pow($base, $exponent){
|
|
@return someVeryLongFunctionNameForJustAPow($base,$exponent);
|
|
}
|
|
|
|
.foo{
|
|
width: someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2,
|
|
// This next pow is really powerful
|
|
someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, someVeryLongFunctionNameForJustAPow(2, 2))))))))))))
|
|
}
|
|
|
|
.bar{
|
|
width: pow(2, pow(2, pow(2,
|
|
// This next pow is really powerful
|
|
pow(2, pow(2, pow(2, pow(2, pow(2, pow(2, pow(2, pow(2, pow(2, 2))))))))))))
|
|
}
|