Created
September 25, 2014 21:22
-
-
Save marcialca/2480e54f96a641b48d4e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// 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