Skip to content

Instantly share code, notes, and snippets.

@borntorun
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntorun/f3b0f9b0a7392def14fc to your computer and use it in GitHub Desktop.
Save borntorun/f3b0f9b0a7392def14fc to your computer and use it in GitHub Desktop.
less mixin to convert px to em/percent step-1
.em-font-size(@px) {
font-size: (@px/16) + 0em;
}
.myclass {
.em-font-size(32);
}
@borntorun
Copy link
Author

gist from blog post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment