Created
February 11, 2014 14:32
-
-
Save distractdiverge/8935886 to your computer and use it in GitHub Desktop.
Abstracted Mixins for Responsive Sass (Desktop First)
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
@include 'compass'; | |
@include 'breakpoint'; | |
// | |
// Note all breakpoints are specified in Pixels, but Breakpoint will convert this to EMs for us. | |
// | |
$breakpoint-to-ems: true; | |
@mixin at-mobile-breakpoint() { | |
@include breakpoint(320px, 768px) { | |
@content; | |
} | |
} | |
@mixin at-tablet-breakpoint() { | |
@include breakpoint(768px, 1024px) { | |
@content; | |
} | |
} | |
// Desktop is Default Style | |
@mixin at-large-desktop-breakpoint() { | |
@include breakpoint(1200px) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment