We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@custom-media
1 parent a2639ea commit 677dd07Copy full SHA for 677dd07
index.js
@@ -384,23 +384,19 @@ module.exports = function(css, options){
384
385
386
/**
387
- * Parse custom-media.
388
- */
+ * Parse custom-media.
+ */
389
390
function atcustommedia() {
391
var pos = position();
392
var m = match(/^@([-\w]+)?custom-media (--[^\s]+) *([^{]+);/);
393
if (!m) return;
394
395
- var vendor = trim(m[1]);
396
- var name = trim(m[2]);
397
- var list = trim(m[3]);
398
-
399
return pos({
400
type: 'custom-media',
401
- vendor: vendor,
402
- name: name,
403
- media: list
+ vendor: trim(m[1]),
+ name: trim(m[2]),
+ media: trim(m[3])
404
});
405
}
406
0 commit comments