Created
January 3, 2014 22:19
-
-
Save jamie94bc/8247780 to your computer and use it in GitHub Desktop.
Use case for '&' in Less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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