forked from less/less.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the any and deep keywords for extending, see issue less#2101
- Loading branch information
1 parent
8526dee
commit b7b6bad
Showing
19 changed files
with
248 additions
and
19 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
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,13 @@ | ||
.grand { | ||
grand: rules; | ||
} | ||
.grand .mother, | ||
.grand .father, | ||
.father2 { | ||
parent: rules; | ||
} | ||
.grand .mother .child, | ||
.grand .father .child, | ||
.father2 .child { | ||
child: rules; | ||
} |
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,11 @@ | ||
.grand { | ||
grand: rules; | ||
} | ||
.grand .mother, | ||
.grand .father, | ||
.father2 { | ||
parent: rules; | ||
} | ||
.grand .mother .child { | ||
child: rules; | ||
} |
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 |
---|---|---|
|
@@ -17,6 +17,12 @@ | |
.k.j { | ||
color: white; | ||
} | ||
.g2.h2 { | ||
color: black; | ||
} | ||
.i2.j2 { | ||
color: white; | ||
} | ||
.l, | ||
.m, | ||
.n, | ||
|
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,11 @@ | ||
.grand { | ||
grand: rules; | ||
} | ||
.grand .mother, | ||
.father2 { | ||
parent: rules; | ||
} | ||
.grand .mother .child, | ||
.father2 .child { | ||
child: rules; | ||
} |
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
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
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,15 @@ | ||
.grand { | ||
grand: rules; | ||
|
||
.mother { | ||
parent: rules; | ||
|
||
.child { | ||
child: rules; | ||
} | ||
} | ||
} | ||
|
||
.father:extend(.mother all){}; | ||
.father2:extend(.grand .mother all){}; | ||
|
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,15 @@ | ||
.grand { | ||
grand: rules; | ||
|
||
.mother { | ||
parent: rules; | ||
|
||
.child { | ||
child: rules; | ||
} | ||
} | ||
} | ||
|
||
.father:extend(.mother any){}; | ||
.father2:extend(.grand .mother any){}; | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
} | ||
|
||
.foo { | ||
&:extend(.clearfix all); | ||
&:extend(.clearfix deep); | ||
color: red; | ||
} | ||
|
||
|
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,15 @@ | ||
.grand { | ||
grand: rules; | ||
|
||
.mother { | ||
parent: rules; | ||
|
||
.child { | ||
child: rules; | ||
} | ||
} | ||
} | ||
|
||
.father:extend(.mother deep){}; | ||
.father2:extend(.grand .mother deep){}; | ||
|
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
Oops, something went wrong.