1// Convert pixels to ems
2
3@function em($size-in-px, $context: 16) {
4  @if not unitless($size-in-px) {
5      $size-in-px: strip-units($size-in-px);
6  }
7  @if not unitless($context) {
8      $context: strip-units($context);
9  }
10  @return ($size-in-px / $context) * 1em;
11}
12