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; }
@markh-fod

This comment has been minimized.

Copy link

@markh-fod markh-fod commented Jul 1, 2013

Don't nest for the sake of nesting ;)

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