Created
February 4, 2013 11:31
-
-
Save cassiano-gists/4706235 to your computer and use it in GitHub Desktop.
CSS: SASS: @media for responsive design using REM units
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
/* 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