Skip to content

Instantly share code, notes, and snippets.

@benjaminparry
Created April 11, 2014 15:15
Show Gist options
  • Save benjaminparry/10476955 to your computer and use it in GitHub Desktop.
Save benjaminparry/10476955 to your computer and use it in GitHub Desktop.
Direct child using sass &
// What I want to do…
.nav-main__item--has-sub {
> .nav-main__link {
// Modifier styles
}
}
// This doesn’t seem to work…
.nav-main__link {
// Base styles
.nav-main__item--has-sub > & {
// Modifier styles
}
}
// Suggestions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment