Skip to content

Instantly share code, notes, and snippets.

View paulakreuger's full-sized avatar

Paula Kreuger paulakreuger

  • @allihoopa
  • Stockholm
View GitHub Profile
$browser-context: 16; // Default
@function em($pixels, $context: $browser-context) {
@return #{$pixels/$context}em
}
h1 {
font-size: em(21, 15); // Outputs 1.4em
}