Skip to content

Instantly share code, notes, and snippets.

@jamie94bc
Created January 3, 2014 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamie94bc/8247780 to your computer and use it in GitHub Desktop.
Save jamie94bc/8247780 to your computer and use it in GitHub Desktop.
Use case for '&' in Less
/**
* defaults.less
*/
div.my-class-name {
padding: 15px;
form {
padding: 10px;
}
}
/**
* app-view.less
*/
#app-view {
div.my-class-name {
&, form {
padding: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment