Skip to content

Calculations in media queries #1903

@lukyer

Description

@lukyer

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))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions