Created
October 22, 2013 21:21
-
-
Save JonMcL/7108388 to your computer and use it in GitHub Desktop.
Useful responsive SCSS breakpoint mixins with IE8/IE7 fallback
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
| @import 'breakpoint'; | |
| $mobile: max-width 959px; | |
| $desktop: min-width 960px; | |
| @mixin break-mobile { | |
| @include breakpoint($mobile) { | |
| @content | |
| } | |
| } | |
| @mixin break-desktop { | |
| @include breakpoint($desktop) { | |
| @content | |
| } | |
| .lt-ie9 & { | |
| @content | |
| } | |
| } | |
| @mixin break-desktop-base { | |
| @include breakpoint($desktop) { | |
| @content | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment