Last active
January 26, 2018 19:28
-
-
Save curtisj44/d02ce8dab222d9678d36 to your computer and use it in GitHub Desktop.
font-smoothing Sass mixin
This file contains 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
=font-smoothing($apply: true) { | |
@if ($apply == true) { | |
-moz-osx-font-smoothing: grayscale; | |
-webkit-font-smoothing: antialiased; | |
} @else { | |
-moz-osx-font-smoothing: auto; | |
-webkit-font-smoothing: subpixel-antialiased; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment