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

Sass warning: Using Slash as Division #23

Open
JBraddockm opened this issue Oct 25, 2021 · 1 comment
Open

Sass warning: Using Slash as Division #23

JBraddockm opened this issue Oct 25, 2021 · 1 comment

Comments

@JBraddockm
Copy link

Hi,

I have set up the template to compile with Laravel Mix and Tailwind CSS and am in the process of eventually integrating TailwindCss fully into the theme. Everything works well so far.

However, as I was getting warnings about using slash as division in scss files, I updated the corresponding lines with the suggested lines by the Sass compiler. Everything works as expected except in one case it doesn't.

It suggests that I update ( ( $grid-width - $gap * ( $columns - 1 ) ) / $columns ) / $grid-width * 100%; with math.div($grid-width - $gap * $columns - 1, $columns); but this doesn't generate the correct values.

The following works but it appears like a hack and I am not sure if this is to correct way to address the issue.

math.div(math.div(($grid-width - $gap * ($columns - 1)), $columns), $grid-width * 000.010) + 0%;

Thanks.

@Lovor01
Copy link

Lovor01 commented Jan 19, 2022

Hello,
yes, this is correct way to address the issue. This is not a theme-related problem, but Sass related problem, they decided to deprecate / in order to make code more compatible with plain css. Read more on their pages.

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