Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// SASS
nav {
a {
color: green;
li.selected & {
color: red;
}
}
}
// OUTPUT I WANT
nav a { color: green; }
nav li.selected a { color: red; }
// OUTPUT I GET
nav a { color: green; }
li.selected nav a { color: red; }
// HOW TO GET DESIRED OUTPUT
nav {
a {
color: green;
}
li.selected {
a {
color: red;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment