File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,14 @@ Compiler.prototype.host = function(node){
166
166
+ this . emit ( '}' ) ;
167
167
} ;
168
168
169
+ /**
170
+ * Visit custom-media node.
171
+ */
172
+
173
+ Compiler . prototype [ 'custom-media' ] = function ( node ) {
174
+ return this . emit ( '@custom-media ' + node . name + ' ' + node . media + ';' , node . position ) ;
175
+ } ;
176
+
169
177
/**
170
178
* Visit rule node.
171
179
*/
Original file line number Diff line number Diff line change @@ -202,6 +202,14 @@ Compiler.prototype.host = function(node){
202
202
+ '\n}' ) ;
203
203
} ;
204
204
205
+ /**
206
+ * Visit custom-media node.
207
+ */
208
+
209
+ Compiler . prototype [ 'custom-media' ] = function ( node ) {
210
+ return this . emit ( '@custom-media ' + node . name + ' ' + node . media + ';' , node . position ) ;
211
+ } ;
212
+
205
213
/**
206
214
* Visit rule node.
207
215
*/
Original file line number Diff line number Diff line change
1
+ @custom-media --wide-window screen and (min-width : 40em );
You can’t perform that action at this time.
0 commit comments