We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You could make your exponent() function use pow for Compass, Sassy-Math or whatever when available.
pow
@function exponent($base, $exponent) { @if pow(2, 2) == 4 { @return pow($base, $exponent); } // Resets value. $value: $base; // Positive intergers get multiplied. @if $exponent > 1 { @for $i from 2 through $exponent { $value: $value * $base; } } // Negatives intergers get divided. A number divided by itself is 1. @if $exponent < 1 { @for $i from 0 through -$exponent { $value: $value / $base; } } // Return the last value written. @return $value; }
The text was updated successfully, but these errors were encountered:
43023a9
hiulit
No branches or pull requests
You could make your exponent() function use
pow
for Compass, Sassy-Math or whatever when available.The text was updated successfully, but these errors were encountered: