mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
media-query can now be a variable
This commit is contained in:
@@ -1074,11 +1074,18 @@ less.Parser = function Parser(env) {
|
||||
},
|
||||
|
||||
mediaFeatures: function () {
|
||||
var f, features = [];
|
||||
while (f = $(this.mediaFeature)) {
|
||||
features.push(f);
|
||||
if (! $(',')) { break }
|
||||
}
|
||||
var features = [];
|
||||
|
||||
do {
|
||||
if (e = $(this.mediaFeature)) {
|
||||
features.push(e);
|
||||
if (! $(',')) { break }
|
||||
} else if (e = $(this.entities.variable)) {
|
||||
features.push(e);
|
||||
if (! $(',')) { break }
|
||||
}
|
||||
} while (e);
|
||||
|
||||
return features.length > 0 ? features : null;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user