Files
less.js/test/less/import/import-reference.less
jurcovicovam dc2b685194 Added unit test for referenced parent selectors
Name: Parent selectors not working within mixins using (reference)
Number: #1979
2015-01-23 18:42:02 +01:00

74 lines
909 B
Plaintext

.z {
color: red;
.c {
color: green;
}
}
.only-with-visible,
.z {
color: green;
&:hover {
color: green;
}
& {
color: green;
}
& + & {
color: green;
.sub {
color: green;
}
}
}
& {
.hidden {
hidden: true;
}
}
@media tv {
.hidden {
hidden: true;
}
}
/* comment is not output */
.zz {
.y {
pulled-in: yes;
}
/* comment pulled in */
}
@max-size: 450px;
.mixin-with-mediaq(@num) {
color: green;
test: @num;
@media (max-size: @max-size) {
color: red;
}
}
//https://github.com/less/less.js/issues/2359
@supports (something: else) {
.class {
something: else;
}
.nestedToo {
.class {
something: else;
}
}
.invisible {
something: else;
}
}
//https://github.com/less/less.js/issues/1979
.mixin-with-nested-selectors() {
.test {
color: red;
&:first-child {
color: blue;
}
}
}