Created
August 5, 2015 07:32
-
-
Save Gaya/53b1ba7253892594dc70 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin prepend-selector($pre-selector) { | |
$selector: &; | |
@at-root { | |
#{$pre-selector} { | |
#{$selector} { | |
@content; | |
} | |
} | |
} | |
} | |
.dit-is-een-selector { | |
@include prepend-selector('.admin-bar') { | |
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
.dit-is-een-selector .admin-bar .dit-is-een-selector { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment