Created
April 1, 2015 06:23
-
-
Save dbani-dev/0d00c19154ff97703f67 to your computer and use it in GitHub Desktop.
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
@mixin module($name) { | |
.#{$name} { | |
@at-root { | |
@content; | |
} | |
} | |
} | |
@include module("nav") { | |
#{&}-list { | |
outline: 1px solid orange; | |
height: 400px; | |
} | |
#{&}-item { | |
background: red; | |
height: 20px; | |
margin-bottom: 10px; | |
&.active { | |
background: blue; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment