Skip to content

Instantly share code, notes, and snippets.

@cassiano-gists
Created February 4, 2013 11:31
Show Gist options
  • Save cassiano-gists/4706235 to your computer and use it in GitHub Desktop.
Save cassiano-gists/4706235 to your computer and use it in GitHub Desktop.
CSS: SASS: @media for responsive design using REM units
/* http://techtime.getharvest.com/blog/in-defense-of-rem-units */
html
font-size: 16px
@media screen and (min-width: 1600px) // Large Monitors
font-size: 18px
@media screen and (min-width: 1400px) // Small Laptops
font-size: 14px
@media screen and (min-width: 1100px) // Tablet Landscape
font-size: 13px
@media screen and (min-width: 800px) // Tablet Portrait
font-size: 12px
@media screen and (min-width: 500px) // Mobile Landscape
font-size: 7px
@media screen and (min-width: 400px) // Mobile Portrait
font-size: 5px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment