Created
February 3, 2014 15:38
-
-
Save RyanRoberts/8786126 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
<p class="gradient-test">Donec ullamcorper nulla non metus auctor frinitemlla. Sed posuere consect etur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vestibulum id ligula porta felis euismod semper.</p> |
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) | |
// ---- | |
=my-mixin($class-name, $tal: left, $width: 33.333%) | |
.#{$class-name} | |
text-align: $tal | |
// First content thing | |
@content | |
.#{$class-name}__item | |
width: $width | |
// I want a second @content or somethign to add | |
// styles to the this module class | |
@content | |
+my-mixin(spammy) | |
// this get's applied to both, duh, but is there something | |
// that might solve this and allow additional properties for | |
// the module class? | |
background: orange | |
// Extending doesn't work, obviously. Extending content would | |
// be nice though… hmm… | |
.spammy__item | |
@extend .spammy__item | |
content: "wtf am I doing" |
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
.spammy { | |
text-align: left; | |
background: orange; | |
} | |
.spammy__item { | |
width: 33.333%; | |
background: orange; | |
} | |
.spammy__item { | |
content: "wtf am I doing"; | |
} |
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
<p class="gradient-test">Donec ullamcorper nulla non metus auctor frinitemlla. Sed posuere consect etur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vestibulum id ligula porta felis euismod semper.</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment