Created
January 31, 2013 16:39
-
-
Save cfarm/4684196 to your computer and use it in GitHub Desktop.
Responsive Breakpoints
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
// ========================================================================== | |
// responsive breakpoints | |
// 320 - 480 - 768 - 1024 | |
// ========================================================================== | |
@media screen and (max-width: 30em) { | |
// helper to display 320px width on desktop | |
// comment this out if you need to look @ 480px width | |
.wl-appwrapper { | |
width: 320px; | |
} | |
} | |
// min 480px | |
@media screen and (min-width: 30em) { | |
#footer:after { | |
content:"min-width: 480px / 30em"; | |
margin-top: 20px; | |
width: 100%; | |
height: 20px; | |
background-color: #ebebeb; | |
color: #000; | |
z-index: 100; | |
font-size: 12px; | |
background-color: #ccc; | |
} | |
} | |
// min 768px | |
@media screen and (min-width: 48em) { | |
#footer:after { | |
content:"min-width: 768px / 48em"; | |
background-color: #666; | |
} | |
} | |
// min 964px - full width | |
@media screen and (min-width: 60.25em) { | |
#footer:after { | |
content:"min-width: 964px / 60.25em - full width"; | |
background-color: #999; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment