Created
March 10, 2015 16:19
Revisions
-
nickautomatic created this gist
Mar 10, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ // Super simple mobile-first breakpoint mixin: @mixin breakpoint($from) { @media screen and (min-width: $from) { @content; } } // Example usage: $small: 480px; nav { @include breakpoint($small) { display: none; } } // ...alternative usage (for, eg. one-off tweakpoints): // cf. https://adactio.com/journal/6044 nav { @include breakpoint(480px) { display: none; } }