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

semantic.css not generating valid CSS #7065

Open
githubbob42 opened this issue Sep 21, 2021 · 6 comments
Open

semantic.css not generating valid CSS #7065

githubbob42 opened this issue Sep 21, 2021 · 6 comments

Comments

@githubbob42
Copy link

Starting with v1.40.0 of SASS (dart-sass) , sass is now parsing calc() syntax more thoroughly and marking errors if there is already broken CSS.

As you can see in the lines from the dist/semantic.css file, values like --1px are not valid values and seems to come from trying to negate negative values(?). E.g.

@ribbonImageMargin: -0.05rem; /* Rounding Offset on Triangle */
@ribbonImageOffset: calc(-@ribbonImageMargin - @ribbonTriangleSize);

and it's causing our builds to fail:

Creating an optimized production build...
Failed to compile.

./src/App.scss
SassError: Expected digit.
      ╷
14460 │   left: calc(--0.05rem - 1.2em);
      │               ^

image

@lubber-de

This comment was marked as spam.

@Semantic-Org Semantic-Org deleted a comment from WebMechanic Oct 6, 2022
@bordernone
Copy link

+1

2 similar comments
@flipmcswiss
Copy link

+1

@BryanBerger98
Copy link

+1

@poof86
Copy link

poof86 commented Feb 21, 2023

+1 had to remove the -- for it to work

@bordernone
Copy link

edit package.json and change the sass version to 1.39.0

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

6 participants