Created
May 25, 2012 18:03
-
-
Save rogeruiz/2789540 to your computer and use it in GitHub Desktop.
Examples of a Mixin with Ampersands
This file contains hidden or 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
| @mixin augmented-inner-mixin($augmentedClassName: arnold, $nestedClassName: foo) { | |
| &.#{$augmentedClassName} { //div.matt | |
| margin: 0 auto | |
| .#{$nestedClassName} { | |
| padding: 100px; | |
| } | |
| } | |
| } | |
| div { | |
| @include augmented-inner-mixin(matt); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment