Created
February 10, 2014 21:47
-
-
Save juliocesar/8924888 to your computer and use it in GitHub Desktop.
A breakpoints mixin I use, taken from some post by Chris Coyer that I can't remember right now.
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
// Screen size breakpoints | |
// ======================= | |
// | |
// Example usage: | |
// | |
// .page-header | |
// +breakpoint(desktop) | |
// width: 50% | |
// +breakpoint(tablet) | |
// width: 80% | |
// width: 75% | |
@mixin breakpoint($point) | |
@if $point == tablet | |
@media (max-width: $desktop-width) | |
@content | |
@else if $point == mobile | |
@media (max-width: $tablet-width) | |
@content | |
@else | |
@media (max-width: $point) | |
@content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment