Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
@mixin media($args)
@if length($args) > 2
@media screen and (#{nth($args, 1)}: nth($args, 2)) and (#{nth($args, 3)}: nth($args, 4))
@content
@else
@media screen and (#{nth($args, 1)}: nth($args, 2))
@content
+media(min-height 400px max-height 800px)
color: red
+media(min-width 400px max-width 800px)
color: red
@media screen and (min-height: 400px) and (max-height: 800px) {
color: red;
}
@media screen and (min-width: 400px) and (max-width: 800px) {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.