Skip to content

Instantly share code, notes, and snippets.

@eightdotthree
Last active August 29, 2015 14:06
Show Gist options
  • Save eightdotthree/3381d53dbb9364be7432 to your computer and use it in GitHub Desktop.
Save eightdotthree/3381d53dbb9364be7432 to your computer and use it in GitHub Desktop.
SASS mixin for bootstrap media queries.
@mixin bootstrap_mq($point) {
@if $point == xs {
@media (min-width: $screen-xs-min) { @content }
}
@if $point == sm {
@media (min-width: $screen-sm-min) { @content }
}
@if $point == md {
@media (min-width: $screen-md-min) { @content }
}
@if $point == lg {
@media (min-width: $screen-lg-min) { @content }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment