Skip to content

Instantly share code, notes, and snippets.

@juniovitorino juniovitorino/toEM.sass
Last active Dec 19, 2015

Embed
What would you like to do?
SASS Function to convert PX in EM
$em-base: 16px !default;
@function toEM($px) {
@return $px / $em-base * 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.