Last active
September 13, 2018 19:12
-
-
Save ECkurt/2ce3ec91dfbd1d5600511e0226709581 to your computer and use it in GitHub Desktop.
Typography & Layout CSS Tweaks
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
/* Improved font rendering & legibility */ | |
body { | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
p,ol,ul,li { | |
line-height: 1.5em; | |
-webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.1); | |
} | |
h1, h2, h3, h4, h5, h6 { | |
letter-spacing: normal; | |
line-height: 1.2em; | |
text-transform: none; | |
} | |
/* Set article images to the largest appropriate native resolution */ | |
p img { | |
width: 100%; | |
max-width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment