/**
 * Remove the unit of a length
 *
 * NOTE: This is an internal function. It shouldn't be documented
 */
@function strip-unit($number) {
  @if type-of($number) == 'number' and not unitless($number) {
    @return $number / ($number * 0 + 1);
  }

  @return $number;
}

/*
---
name: clearfix()
category: Foundations/Mixins
tag: function
---
Add clearfix code to the current selector. Clearfix is useful to prevent bad positioning of
floated elements.

```scss
.test {
  @include clearfix();
}
```
*/
@mixin clearfix() {
  &:after {
    content: '';
    display: table;
    clear: both;
  }
}
