Skip to content

missing units after compilation #3144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
parulmahajan1992 opened this issue Dec 18, 2017 · 2 comments
Closed

missing units after compilation #3144

parulmahajan1992 opened this issue Dec 18, 2017 · 2 comments

Comments

@parulmahajan1992
Copy link

parulmahajan1992 commented Dec 18, 2017

@var1: 2em;
@var2: 1/2em;

#myClass{
width: @var1*@var2 ;
}

Output for this is:

#myClass {width: 1em};

But if we interchange the variables as:

#myClass{
width: @var2*@var1;
}

Output for this is:

#myClass {width: 1};

em is missing. :(

@seven-phases-max
Copy link
Member

seven-phases-max commented Dec 18, 2017

Please use backticks to format your code.


I suppose it's a result of the #3047 bug.
Quick workaround:

@var1: 2em;
@var2: 1/2em*1em;

#myClass{
    width: @var2*@var1;
}

@seven-phases-max
Copy link
Member

Closing in favour of #3047.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants