Created
July 26, 2013 08:07
-
-
Save jitendravyas/6087109 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
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
// --- | |
// Compass (v0.13.alpha.4) | |
// Sass (v3.2.9) | |
// --- | |
$smartphone: 38em; | |
$fablet: 59em; | |
@mixin respond-to($media) { | |
@if $media == smartphone { | |
@media all and (min-width: $smartphone) { @content; } | |
} | |
@else if $media == fablet { | |
@media all and (min-width: $fablet) { @content; } | |
} | |
} | |
.test { | |
width: 250px; | |
@include respond-to(smartphone) { width: 325px; } | |
@include respond-to(fablet) { width: 425px; } | |
} |
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
.test { width: 250px; } | |
@media all and (min-width: 38em) { .test { width: 325px; } } | |
@media all and (min-width: 59em) { .test { width: 425px; } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment