Skip to content

Instantly share code, notes, and snippets.

@printercu
Created May 13, 2014 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save printercu/46591a3de61eb11e589f to your computer and use it in GitHub Desktop.
Save printercu/46591a3de61eb11e589f to your computer and use it in GitHub Desktop.
bootstrap media queries
$screen: "only screen" !default;
$landscape: "#(orientation: landscape)" !default;
$portrait: "#(orientation: portrait)" !default;
$xs-up: $screen !default;
$xs-only: "#(max-width: #{$screen-xs-max})" !default;
$sm-up: "#(min-width:#{$screen-sm-min})" !default;
$sm-only: "#(min-width:#{$screen-sm-min}) and (max-width:#{$screen-sm-max})" !default;
$md-up: "#(min-width:#{$screen-md-min})" !default;
$md-only: "#(min-width:#{$screen-md-min}) and (max-width:#{$screen-md-max})" !default;
$lg-up: "#(min-width:#{$screen-lg-min})" !default;
$lg-only: "#(min-width:#{$screen-lg-min})" !default;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment