Created
April 21, 2015 07:39
-
-
Save maxkarkowski/47bdf5192983cbf74095 to your computer and use it in GitHub Desktop.
Fontsize
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
html { | |
font-size: 62.5%; /* sets the base font to 10px for easier math */ | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
-moz-osx-font-smoothing: grayscale; | |
-webkit-font-smoothing: antialiased; | |
} | |
body { | |
font-size: 16px; | |
font-size: 1.6rem; | |
/* sets the default sizing to make sure nothing is actually 10px */ | |
} | |
h1 { | |
font-size: 32px; | |
font-size: 3.2rem; | |
} | |
@media screen and (min-width: 1280px) { | |
html { | |
font-size: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment