mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
import silent to work with media queries and directives
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
@media only screen and (max-width: 200px) {
|
||||
width: 480px;
|
||||
}
|
||||
@media (max-width: 1200px) {
|
||||
/* a comment */
|
||||
}
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
.visible {
|
||||
color: red;
|
||||
}
|
||||
|
||||
@@ -52,9 +52,6 @@
|
||||
.sidebar {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
@media a {
|
||||
|
||||
}
|
||||
@media a and b {
|
||||
.first .second .third {
|
||||
|
||||
Reference in New Issue
Block a user