Created
August 2, 2012 10:41
-
-
Save machal/3236164 to your computer and use it in GitHub Desktop.
Mobile First vs. IE8- solution with LESS
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="index.css"> | |
| <!--[if lte IE 8]><link rel="stylesheet" href="old_ie.css"><![endif]--> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
This file contains hidden or 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
| // All browsers | |
| @import "base.less"; | |
| @import "mobile.less"; | |
| @media screen and (min-device-width: 481px) { | |
| @import "desktop.less"; | |
| } |
This file contains hidden or 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
| // IE8- | |
| @import "desktop.less"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment