Last active
August 29, 2015 14:27
-
-
Save johndwells/84632959e618c38c5faa to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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="widget"> | |
<div class="widget__cog">Cog</div> | |
</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
/// Demonstrate how using the `@content` directive in an empty mixin | |
/// can be a handy tool to group related styles. | |
/// | |
/// Below example is very arbitrary, but demonstrates possibilities of | |
/// including a mixin without being inside a selector. | |
/// | |
/// @author John D Wells | |
@mixin t-group() { | |
@content; | |
} | |
@include t-group() { | |
.widget { | |
background-color: blue; | |
} | |
.widget__cog { | |
padding: 20px; | |
color: white; | |
} | |
} |
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
.widget { | |
background-color: blue; | |
} | |
.widget__cog { | |
padding: 20px; | |
color: white; | |
} |
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="widget"> | |
<div class="widget__cog">Cog</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment