// ---- // Sass (v3.4.9) // Compass (v1.0.1) // ---- =media($target) .is--responsive & @if $target == mobile @media screen and (max-width: 767px) @content @if $target == tablet @media screen and (min-width: 768px) @content .block &__element color: red +media(mobile) color: green +media(tablet) color: blue