mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Reverts operations not being performed in media queries
This commit is contained in:
@@ -1645,7 +1645,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
||||
nodes.push(e);
|
||||
} else if (parserInput.$char('(')) {
|
||||
p = this.property();
|
||||
e = this.permissiveValue(')');
|
||||
e = this.value();
|
||||
if (parserInput.$char(')')) {
|
||||
if (p && e) {
|
||||
nodes.push(new(tree.Paren)(new(tree.Declaration)(p, e, null, null, parserInput.i, fileInfo, true)));
|
||||
|
||||
@@ -216,7 +216,7 @@ body {
|
||||
var: all-and-tv;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: (60px + 1)) {
|
||||
@media screen and (min-width: 61px) {
|
||||
.selector {
|
||||
foo: bar;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
@ratio_large: 16;
|
||||
@ratio_small: 9;
|
||||
|
||||
@media all and (device-aspect-ratio: @ratio_large / @ratio_small) {
|
||||
@media all and (device-aspect-ratio: ~'@{ratio_large} / @{ratio_small}') {
|
||||
body { max-width: 800px; }
|
||||
}
|
||||
|
||||
@@ -233,7 +233,6 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
// Change in behavior of media queries in 3.5+ - inline expressions not eval'd
|
||||
@some-var: 60px;
|
||||
@media screen and (min-width: (@some-var + 1)) {
|
||||
.selector {
|
||||
|
||||
Reference in New Issue
Block a user