Created
February 6, 2014 16:33
-
-
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)
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
<div class="foo">foo</div> |
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
// ---- | |
// 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; | |
} | |
} |
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
@media all and (min-width: 600px) { | |
.bar { | |
color: red; | |
} | |
} | |
@media screen and (max-width: 320) { | |
.dave { | |
color: red; | |
} | |
} |
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
<div class="foo">foo</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment