Skip to content

Instantly share code, notes, and snippets.

@Gaya
Created August 5, 2015 07:32
Show Gist options
  • Save Gaya/53b1ba7253892594dc70 to your computer and use it in GitHub Desktop.
Save Gaya/53b1ba7253892594dc70 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
}
.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