File tree 4 files changed +39
-8
lines changed 4 files changed +39
-8
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ tree.Media.prototype = {
74
74
} ,
75
75
markReferenced : function ( ) {
76
76
var i , rules = this . rules [ 0 ] . rules ;
77
+ this . rules [ 0 ] . markReferenced ( ) ;
77
78
this . isReferenced = true ;
78
79
for ( i = 0 ; i < rules . length ; i ++ ) {
79
80
if ( rules [ i ] . markReferenced ) {
Original file line number Diff line number Diff line change 1
- /*
2
- The media statement above is invalid (no selector)
3
- We should ban invalid media queries with properties and no selector?
4
- */
1
+ input [type = "text" ].class # id [attr = 32 ]: not (1) {
2
+ color : white;
3
+ }
4
+ div # id .class [a = 1 ][b = 2 ].class : not (1) {
5
+ color : white;
6
+ }
7
+ @media print {
8
+ .class {
9
+ color : blue;
10
+ }
11
+ .class .sub {
12
+ width : 42 ;
13
+ }
14
+ }
5
15
.visible {
6
16
color : red;
7
17
}
47
57
.visible {
48
58
extend : test;
49
59
}
60
+ .test-mediaq-import {
61
+ color : green;
62
+ test : 340px ;
63
+ }
64
+ @media (max-size : 450px ) {
65
+ .test-mediaq-import {
66
+ color : red;
67
+ }
68
+ }
Original file line number Diff line number Diff line change 1
1
@import (reference ) url(" import-once.less" );
2
2
@import (reference ) url(" css-3.less" );
3
3
@import (reference ) url(" media.less" );
4
- /*
5
- The media statement above is invalid (no selector)
6
- We should ban invalid media queries with properties and no selector?
7
- */
8
4
@import (reference ) url(" import/import-reference.less" );
9
5
10
6
.b {
15
11
16
12
.visible :extend(.z all ) {
17
13
extend: test;
14
+ }
15
+
16
+ .test-mediaq-import {
17
+ .mixin-with-mediaq (340px );
18
+ }
19
+
20
+ .class :extend(.class all ) {
18
21
}
Original file line number Diff line number Diff line change 40
40
pulled- in: yes;
41
41
}
42
42
/* comment pulled in */
43
+ }
44
+ @max-size : 450px ;
45
+ .mixin-with-mediaq (@num ) {
46
+ color : green ;
47
+ test: @num ;
48
+ @media (max - size: @max-size ) {
49
+ color : red ;
50
+ }
43
51
}
You can’t perform that action at this time.
0 commit comments