You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, known limitation, see #1480 (probably needs to be documented). All arithmetic within media query expressions requires parens (regardless of the --strict-math option value). e.g.:
@var: (1 + 1); // parens have to be even here
@media (max-width: @var) {}
LESS CODE:
@x: 0.6
@media screen and (max-width: 1735px*@x)
Does not compile into expected:
@media screen and (max-width: 1041px)
However into:
@media screen and (max-width: 1735px*0.6)
It's not a big deal, but it's inconstinent with declarations like:
width: 1735px*@x
This one works as expected:
width: 1041px
EDIT: With parenthess is calculation OK:
@x: 0.6
@media screen and (max-width: (1735px*@x))
The text was updated successfully, but these errors were encountered: