Created
November 1, 2012 09:39
-
-
Save yatil/3992748 to your computer and use it in GitHub Desktop.
IE Mediaqueries
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
@mixin respond-to($media) { | |
@if $media == small { | |
@media only screen and (max-width: 699px) { @content; } | |
} | |
@else if $media == medium { | |
@if $oldIE { | |
@content; | |
} @else { | |
@media only screen and (min-width: 600px) { @content; } | |
} | |
} | |
@else if $media == large { | |
@if $oldIE { | |
@content; | |
} @else { | |
@media only screen and (min-width: 700px) { @content; } | |
} | |
} | |
@else if $media == larger { | |
@if $oldIE { | |
} @else { | |
@media only screen and (min-width: 1050px) { @content; } | |
} | |
} | |
@else if $media == evenlarger { | |
@if $oldIE { | |
} @else { | |
@media only screen and (min-width: 1250px) { @content; } | |
} | |
} | |
@else if $media == huge { | |
@if $oldIE { | |
} @else { | |
@media only screen and (min-width: 1400px) { @content; } | |
} | |
} | |
} |
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
h2 { | |
padding: 5px 10px 5px 8px; | |
font-size: 18px; | |
@include respond-to(large) { | |
padding-top: 10px; | |
padding-bottom: 10px; | |
font-size: 24px; | |
} | |
} |
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
@import "compass"; | |
$oldIE: true; | |
@import "main"; |
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
<!--[if gte IE 9]> --> | |
<link rel="stylesheet" href="/css/style.css" /> | |
<!-- <![endif]--> | |
<!--[if lt IE 9]> | |
<link rel="stylesheet" href="/css/ie.css" /> | |
<![endif]--> |
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
@import "compass"; | |
$oldIE: false; | |
@import "main"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment