Created
February 13, 2016 12:27
-
-
Save igorpronin/cfd54834590d97505c15 to your computer and use it in GitHub Desktop.
sass sans-serif trick
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
// Norm | |
body | |
font-family: Helvetica, Arial, Sans-Serif | |
// Better | |
body | |
font-family: Sans-Serif | |
// Why? | |
Macs will get awesome Helvetica by default. On PC's, | |
even if they have Helvetica it can look worse than Arial for whatever reason, | |
so this way they get Arial by default. And you're still covered by the generic keyword. | |
Shorter, easier, yay. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment