Last active
June 16, 2016 19:46
-
-
Save joechan3/0beeedba0a599103df7bcbe54723deb6 to your computer and use it in GitHub Desktop.
Applying RWD Styles
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
@-ms-viewport { | |
width: device-width; | |
} | |
@import "reset"; | |
@import "smallest"; | |
@media print { | |
@import "print"; | |
} |
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
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="stylesheets/base.css"> | |
<link rel="stylesheet" media="not print" href="stylesheets/mq.css"> | |
<!--[if (lte IE 8)&(!IEMobile)]> | |
<link rel="stylesheet" href="stylesheets/nomq.css"> | |
<![endif]--> | |
</head> | |
<!--nomq.css same as mq.css but media queries stripped out, recommend to use precompiler to handle this--> |
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
@media (min-width: 30em){ | |
@include "min-width-30em"; | |
} | |
@media (min-width: 60em){ | |
@include "min-width-60em"; | |
} |
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
@include "min-width-30em"; | |
@include "min-width-60em"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment