Created
October 20, 2012 06:43
-
-
Save dlh01/3922398 to your computer and use it in GitHub Desktop.
SASS mixin for Bootstrap breakpoints
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
/** | |
* Bootstrap breakpoints. Thanks goes to Chris Coyier for the inspiration. | |
* | |
* Original post and usage example: http://css-tricks.com/custom-user-mixins/ | |
*/ | |
@mixin breakpoint($point) { | |
@if $point == large-display { | |
@media (min-width: 1200px) { @content; } | |
} | |
@if $point == default { | |
@media (min-width: 908px) { @content; } | |
} | |
@if $point == portrait-tablets { | |
@media (min-width: 768px) { @content; } | |
} | |
@if $point == phones-to-tablets { | |
@media (max-width: 767px) { @content; } | |
} | |
@if $point == phones { | |
@media (max-width: 480px) { @content; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment