adjust font sizes, add transition and cursor states
[2048.git] / style / helpers.scss
blob:a/style/helpers.scss -> blob:b/style/helpers.scss
// Exponent // Exponent
// From: https://github.com/Team-Sass/Sassy-math/blob/master/sass/math.scss#L36 // From: https://github.com/Team-Sass/Sassy-math/blob/master/sass/math.scss#L36
   
@function exponent($base, $exponent) { @function exponent($base, $exponent) {
// reset value // reset value
$value: $base; $value: $base;
// positive intergers get multiplied // positive intergers get multiplied
@if $exponent > 1 { @if $exponent > 1 {
@for $i from 2 through $exponent { @for $i from 2 through $exponent {
$value: $value * $base; } } $value: $value * $base; } }
// negitive intergers get divided. A number divided by itself is 1 // negitive intergers get divided. A number divided by itself is 1
@if $exponent < 1 { @if $exponent < 1 {
@for $i from 0 through -$exponent { @for $i from 0 through -$exponent {
$value: $value / $base; } } $value: $value / $base; } }
// return the last value written // return the last value written
@return $value; @return $value;
} }
   
@function pow($base, $exponent) { @function pow($base, $exponent) {
@return exponent($base, $exponent); @return exponent($base, $exponent);
} }
   
  // Transition mixins
  @mixin transition($args...) {
  -webkit-transition: $args;
  -moz-transition: $args;
  }
   
  @mixin transition-property($args...) {
  -webkit-transition-property: $args;
  -moz-transition-property: $args;
  }
   
comments