Created
October 9, 2014 09:39
-
-
Save SamHasler/c5c50a311e15b1188778 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin classStartWith($classStarters...) { | |
$selectors: null; | |
@each $classStart in $classStarters { | |
$selectors: $selectors, unquote("[class^=\"#{$classStart}\"], [class*=\" #{$classStart}\"]"); | |
} | |
#{$selectors} { | |
@content; | |
} | |
} | |
@include classStartWith(covernode,listnode){ | |
@at-root .anotherselector, & { | |
example: rule; | |
} | |
@at-root &, .anotherselector { | |
example: rule; | |
} | |
} | |
This file contains hidden or 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
.anotherselector, [class^="covernode"], [class*=" covernode"], [class^="listnode"], [class*=" listnode"] { | |
example: rule; | |
} | |
[class^="covernode"], .anotherselector, [class*=" covernode"], [class^="listnode"], [class*=" listnode"] { | |
example: rule; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment