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

SCSS Compile Errors (replace / with math.div) #1449

Closed
plegner opened this issue Jun 7, 2021 · 1 comment · Fixed by #1452
Closed

SCSS Compile Errors (replace / with math.div) #1449

plegner opened this issue Jun 7, 2021 · 1 comment · Fixed by #1452

Comments

@plegner
Copy link

plegner commented Jun 7, 2021

The latest version of Dart SCSS no longer supports / for division, to prevent conflicts with other CSS rules. For example,

$spacer-1: round($spacer / 2);

should be replaced with

@use "sass:map";
$spacer-1: round(math.div($spacer, 2));

Here are some instances where this happens:

css/support/variables/layout.scss 36:18
css/layout/grid.scss 4:18
css/layout/grid.scss 5:18
css/layout/grid.scss 6:18
css/layout/grid.scss 7:18
@mktcode
Copy link
Contributor

mktcode commented Jun 8, 2021

Just trying out primer for the first time and I was like.... oh no... Please no warnings that I'll just have to accept for the time being. I'll try to prepare a PR. :D

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

Successfully merging a pull request may close this issue.

2 participants