@mixin media-ipad($orientation: false) { @include not-legacy { $orientation-media-declaration: if($orientation, "and (orientation: #{$orientation})"); $media-query: "only screen and (min-device-width: 768px) and (max-device-width: 1024px) #{$orientation-media-declaration}"; @media #{$media-query} { @content; } } }