Created
October 27, 2014 04:09
-
-
Save wfendler/c24824857e4ab30ba716 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.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$VIEWPORT--HAND_START: 320px; | |
$VIEWPORT--HAND_END: 480px; | |
$BP--WITHIN--HAND: "(min-width: #{$VIEWPORT--HAND_START}) and (max-width: #{$VIEWPORT--HAND_END})"; | |
@mixin media-query ($MQ) { | |
@media only screen and #{$MQ} { | |
@content; | |
} | |
} | |
.box--within--hand { | |
// @media only screen and (min-width: $VIEWPORT--HAND_START) and (max-width: $VIEWPORT--HAND_END) { | |
// font-size: 20px; | |
// } | |
@include media-query($BP--WITHIN--HAND) { | |
padding: 2rem; | |
} | |
} |
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
@media only screen and (min-width: 320px) and (max-width: 480px) { | |
.box--within--hand { | |
padding: 2rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment