Skip to content

Commit 36a5add

Browse files
committed
Added fix for media (#34).
1 parent 9a1a538 commit 36a5add

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ module.exports = function(css, options){
318318
var media = m[1].trim();
319319

320320
if (!open()) return error("@media missing '{'");
321-
comments();
322321

323-
var style = rules();
322+
var style = comments().concat(rules());
324323

325324
if (!close()) return error("@media missing '}'");
326325

0 commit comments

Comments
 (0)