Last active
December 30, 2015 16:11
-
-
Save flyingfisch/a567776d94a03a7ba3e9 to your computer and use it in GitHub Desktop.
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
// == 1 instead of == 0 because document.styleSheets includes the user agent stylesheets | |
if (document.styleSheets.length == 1) { | |
var el = document.getElementsByTagName("body")[0].style; | |
el.maxWidth = '40em'; | |
el.margin = '1em auto'; | |
// optional, I may be getting carried away now... | |
el.fontFamily = '"Palatino Linotype","Book Antiqua",Palatino,serif'; | |
el.lineHeight = '1.7em'; | |
el.fontSize = '18px'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment