Skip to content
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

Certain calc fields not generated correctly #61

Open
JasonBarnabe opened this issue Mar 4, 2019 · 2 comments
Open

Certain calc fields not generated correctly #61

JasonBarnabe opened this issue Mar 4, 2019 · 2 comments

Comments

@JasonBarnabe
Copy link

semantic-ui-less 2.4.1
less 3.9.0
Running in a Rails 5.2 app using webpacker 3.5.5.

@attachedWidth: calc(100% + (-@attachedHorizontalOffset * 2));

@borderWidth: 1px;
@attachedHorizontalOffset: -@borderWidth;
@attachedWidth: calc(100% + (-@attachedHorizontalOffset * 2));

results in @attachedWidth being calc(100% + (--1px * 2)), which is not valid.

I'm only having this happen in my development environment. Possibly a minifier/compressor is correcting to calc(100% + 2px).

Adding this override fixes it:

@attachedWidth: calc(100% + (@attachedHorizontalOffset * -2));
@meze
Copy link

meze commented Mar 11, 2019

Having the same problem with attached.segment. Solved it temporarily by overriding the theme's variables:

@attachedWidth: calc(~"100% - (" @attachedHorizontalOffset ~"* 2)");

less calculates the value but it should be the expression, not the result of it.

@lubber-de

This comment was marked as spam.

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

3 participants