Skip to content

Instantly share code, notes, and snippets.

@nandomoreirame
Created September 3, 2017 16:30
Show Gist options
  • Save nandomoreirame/763fa7b1a5db0b39455b738a1d037593 to your computer and use it in GitHub Desktop.
Save nandomoreirame/763fa7b1a5db0b39455b738a1d037593 to your computer and use it in GitHub Desktop.
pxToRem.sass
/// @argument {number (with unit)} $px
///
/// @access public
@function pxToRem($px)
@return (round(remove-unitless($px)) / remove-unitless($font-size-base-px))+rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment