Last active
April 11, 2016 13:28
-
-
Save peduarte/1689ece8e74983d19b5c to your computer and use it in GitHub Desktop.
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
// Defining media query helpers | |
// Aliases for susy-breakpoint | |
// http://susydocs.oddbird.net/en/latest/toolkit/#breakpoint | |
@mixin medium { | |
@include susy-breakpoint($bp-medium, $susy-medium) { @content }; | |
} | |
@mixin to-medium { | |
@include susy-breakpoint(0 ($bp-medium - 1), $susy-small) { @content }; | |
} | |
@mixin medium-only { | |
@include susy-breakpoint($bp-medium ($bp-wide - 1), $susy-medium) { @content }; | |
} | |
@mixin wide { | |
@include susy-breakpoint($bp-wide, $susy-wide) { @content }; | |
} | |
@mixin to-wide { | |
@include susy-breakpoint(0 ($bp-wide - 1), $susy-wide) { @content }; | |
} | |
@mixin wide-only { | |
@include susy-breakpoint($bp-wide ($bp-huge - 1), $susy-wide) { @content }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Pedro, I am studying your workflow for past several days and I am quite impressed.
Can you please explain why did you removed "small" mixins? You find that media queries not so usable?