Skip to content

Instantly share code, notes, and snippets.

@tvandervossen
Created November 3, 2015 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvandervossen/b78c69be10e94b5b1b2e to your computer and use it in GitHub Desktop.
Save tvandervossen/b78c69be10e94b5b1b2e to your computer and use it in GitHub Desktop.
;(function() {
var size, width = 1024, step = 64, selector, out = '', style = document.createElement('style')
for (size = 15; size < 32; size++) {
out += '@media (min-width: ' + width +'px) and (min-height: ' + (width * 0.7) +'px) {'
out += ' body, input, button, textarea { font-size: ' + size + 'px; }'
out += ' .column { max-width: ' + (width + step) + 'px; }'
out += ' }'
width += step
}
style.innerHTML = out
document.getElementsByTagName('head')[0].appendChild(style)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment