Skip to content

Instantly share code, notes, and snippets.

@wfendler
Created October 27, 2014 04:09
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 wfendler/c24824857e4ab30ba716 to your computer and use it in GitHub Desktop.
Save wfendler/c24824857e4ab30ba716 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
}
@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