Last active
December 24, 2015 10:49
-
-
Save alexshive/6787034 to your computer and use it in GitHub Desktop.
REM Font mixin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // credit to: https://coderwall.com/p/_7wmcg | |
| $base-font-size: 16; | |
| @mixin rem-font($pixels) { | |
| font-size: $pixels + px; | |
| font-size: ( $pixels / $base-font-size ) + rem; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment