Last active
August 29, 2015 14:04
-
-
Save buzzedword/aa0064d66732b1ee586e to your computer and use it in GitHub Desktop.
Bootstrap default media queries
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
@mixin breakpoint($point) { | |
@if $point == large { | |
@media (min-width: 1200px) { @content; } | |
} | |
@else if $point == medium { | |
@media (min-width: 992px) and (max-width: 1119px) { @content; } | |
} | |
@else if $point == small { | |
@media (min-width: 768px) and (max-width: 991px) { @content; } | |
} | |
@else if $point == xsmall { | |
@media (max-width: 767px) { @content; } | |
} | |
} |
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
.breakpoint(@point, @content) when (@point = large) { | |
@media (min-width: 1200px) { @content; } | |
} | |
.breakpoint(@point, @content) when (@point = medium) { | |
@media (min-width: 992px) and (max-width: 1119px) { @content; } | |
} | |
.breakpoint(@point, @content) when (@point = small) { | |
@media (min-width: 768px) and (max-width: 991px) { @content; } | |
} | |
.breakpoint(@point, @content) when (@point = xsmall) { | |
@media (max-width: 767px) { @content; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment