2014-03-05 16:15:11 +01:00
|
|
|
// Exponent
|
|
|
|
// From: https://github.com/Team-Sass/Sassy-math/blob/master/sass/math.scss#L36
|
|
|
|
|
|
|
|
@function exponent($base, $exponent) {
|
|
|
|
// reset value
|
|
|
|
$value: $base;
|
|
|
|
// positive intergers get multiplied
|
|
|
|
@if $exponent > 1 {
|
|
|
|
@for $i from 2 through $exponent {
|
|
|
|
$value: $value * $base; } }
|
|
|
|
// negitive 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
@function pow($base, $exponent) {
|
|
|
|
@return exponent($base, $exponent);
|
|
|
|
}
|
2014-03-05 17:02:54 +01:00
|
|
|
|
|
|
|
// Transition mixins
|
|
|
|
@mixin transition($args...) {
|
|
|
|
-webkit-transition: $args;
|
|
|
|
-moz-transition: $args;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin transition-property($args...) {
|
|
|
|
-webkit-transition-property: $args;
|
|
|
|
-moz-transition-property: $args;
|
|
|
|
}
|