Skip to content

Instantly share code, notes, and snippets.

@evantravers
Created February 6, 2014 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evantravers/8847772 to your computer and use it in GitHub Desktop.
Save evantravers/8847772 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com. (demonstrating how you *can* use mixins inside of @media blocks, unlike @extends, for @felixjet on #sass)
<div class="foo">foo</div>
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@mixin foo {
color: red;
}
@media all and (min-width: 600px) {
.bar {
@include foo;
}
}
.dave {
@media screen and (max-width: 320) {
@include foo;
}
}
@media all and (min-width: 600px) {
.bar {
color: red;
}
}
@media screen and (max-width: 320) {
.dave {
color: red;
}
}
<div class="foo">foo</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment