Skip to content

Instantly share code, notes, and snippets.

@marcialca
Created September 25, 2014 21:22
Show Gist options
  • Save marcialca/2480e54f96a641b48d4e to your computer and use it in GitHub Desktop.
Save marcialca/2480e54f96a641b48d4e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
@mixin query($breakpoint, $orientation:portrait, $qval: min) {
@if $breakpoint == 'small' {}
@if $breakpoint == 'medium' {}
@if $breakpoint == 'large' {}
@else {
@if type-of($breakpoint) != number {
@error "QUERY MIXIN ONLY ACCEPTS NUMBERS AS BREAKPOINT MEASURES"
}
@else {
@media only screen and ($qval + "-width": $breakpoint + em) and ("orientation": $orientation) {
@content;
}
}
}
};
$bkSmallPortrait:('22.5em','portrait'); // 360px
$bkSmallLandscape:('22.5em','landscape'); // 360px
$bkMediumPortrait:('45em','portrait'); // 720px
$bkMediumLandscape:('45em','landscape'); // 720px
$bkLargePortrait:('67.5em','portrait'); // 1080px
$bkLargeLandscape:('67.5em','landscape'); // 1080px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment