import silent to work with media queries and directives

This commit is contained in:
Luke Page
2013-03-21 16:38:56 +00:00
parent b912a971d3
commit aa802bd84c
7 changed files with 53 additions and 18 deletions

View File

@@ -1,10 +1,17 @@
@import (silent) url("import-once.less");
@import (silent) url("css-3.less");
@import (silent) url("media.less");
/*
The media statements - 1 is invalid (no selector) and 1 is just a comment
We should band invalid media queries solving the 1st case and not treat comments as rules,
solving the 2nd issue.
*/
@import (silent) url("import/import-silent.less");
.b {
.a();
.z();
}
.visible:extend(.a all) {
.visible:extend(.z all) {
extend: test;
}

View File

@@ -1,11 +1,11 @@
.a {
.z {
color: red;
.c {
color: green;
}
}
.only-with-visible,
.a {
.z {
color: green;
&:hover {
color: green;
@@ -25,4 +25,10 @@
.hidden {
hidden: true;
}
}
@media tv {
.hidden {
hidden: true;
}
}