Sass Math Operations

Sass, like most programming languages, supports the standard set of numeric operatorsopen in new window with automatic unit conversion.

@mixin golden-ratio ($width) {
  width: $width;
  height: 1.618 * $width  -  $width;
}

.golden {
  @include golden-ratio(100px)
}