mirror of
https://github.com/less/less.js.git
synced 2026-02-07 13:35:10 -05:00
Add parent selector to user variable
This commit is contained in:
@@ -107,3 +107,16 @@ a {
|
||||
::bnord {color: red }
|
||||
&::bnord {color: red }
|
||||
}
|
||||
|
||||
.a {
|
||||
(~".b") {
|
||||
color: red;
|
||||
}
|
||||
&(~".c") {
|
||||
color: black;
|
||||
}
|
||||
@d: 3;
|
||||
:nth-child(@d) {
|
||||
color: purple;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user