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

calc #28

Open
honsa opened this issue Feb 13, 2018 · 1 comment
Open

calc #28

honsa opened this issue Feb 13, 2018 · 1 comment

Comments

@honsa
Copy link

honsa commented Feb 13, 2018

Hello

Thx for this nice little plugin, it does a good job.

Just recognized that calc with variables is not interpreted correct.

Here is the example:

less:
width: calc(@layout-width - (2 * @layout-padding));

converted scss
width: calc($layout-width - (2 * $layout-padding));

expected scss
width: calc(#{$layout-width} - (2 * #{$layout-padding}));

@MonsieurV
Copy link
Contributor

I've tried an implementation of CSS variable interpolation (only for calc as for now) on https://github.com/MonsieurV/less2sass

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