forked from stylus/stylus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes stylus#879 Extends with parent reference
- Loading branch information
1 parent
b2944cc
commit b0808e8
Showing
3 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#button_a:hover, | ||
#button_b:hover { | ||
color: #fff; | ||
} | ||
body #button_c:hover, | ||
body #button_d:hover { | ||
color: #000; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#button_a | ||
&:hover | ||
color #fff | ||
#button_b | ||
@extend #button_a | ||
|
||
body | ||
#button_c | ||
&:hover | ||
color #000 | ||
#button_d | ||
@extend body #button_c |