/*
---
name: type-scale(name)
category: Foundations/Mixins
tag: function
---
Get a font-size based on the standard values. You can check
[Type scale](http://type-scale.com/?size=16&scale=1.333&text=Bitnami%20Rocks!&webfont=Source%2BSans%2BPro&font-family=%27Source%20Sans%20Pro%27%2C%20sans-serif&font-weight=400&font-family-headers=&font-weight-headers=inherit&background-color=white&font-color=%23333)
to check the current scale and size.

```scss
.test {
  font-size: type-scale('huge');
}
```
*/
@function type-scale($name: 'normal') {
  $level: map-get($scale-names, $name);
  $base: strip-unit($base-type-size * $scale);
  @return pow($base, $level) * 1em;
}

/*
---
name: line-height(name)
category: Foundations/Mixins
tag: function
---
Get a line-height based on the standard values.

**NOTE**: `reset`, `tiny`, `giant` and `huge` are not available.

```scss
.test {
  line-height: line-height('big');
}
```
*/
@function line-height($name: 0) {
  @if map-has-key($line-heights, $name) {
    @return map-get($line-heights, $name);
  } @else if map-has-key($scale-names, $name) {
    @return map-get($line-heights, map-get($scale-names, $name));
  } @else {
    @warn "We didn't find the size called #{$name}. Please check available sizes";
    @return map-get($line-heights, 0);
  }
}

/**
 * Set the color for anchors in the type-color-reverse
 *
 * NOTE: This is an internal mixin. It shouldn't be documented
 */
@mixin type-color-reverse-anchor($color, $base-level) {
  &:not(.type-color-reverse-anchor-reset) {
    a:not(.button):hover {
      color: color-level($color, $base-level + 100);
    }
  }
}
