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

LESS mixins: Autoprefixer inserts curly braces {} after mixin with braces #8

Closed
qbasic16 opened this issue Aug 18, 2016 · 4 comments
Closed

Comments

@qbasic16
Copy link

As the title says, the problem is with LESS files, that if you use mixis with braces like mentioned on the official page, then autoprefixer replaces the last part "();" with "{}". Note that the trailing semicolon is removed as well.
LESS - Mixin feature

Before autoprefixer:

.slick-btns{
    .absolute();
    .p-top-right();
}

After autoprefixer:

.slick-btns{
    .absolute(){}
    .p-top-right(){}
}

LESS will not insert the mixins and therefore produces an empty .slick-btns class in my example.

Thanks for your work.

Best regards
Peter

@mrmlnc mrmlnc self-assigned this Aug 18, 2016
@mrmlnc
Copy link
Owner

mrmlnc commented Aug 18, 2016

Hello, @qbasic16,

First, thanks for you report.

Unfortunately, this is not a problem of this extension. To work with Less, Autoprefixer uses postcss-less. I copy your question in their repository and as soon as the bug is fixed, I'll update this plugin.

@qbasic16
Copy link
Author

Hi @mrmlnc

Thank you for your extremely fast response and for reporting it!
I subscribed to it.

@mrmlnc
Copy link
Owner

mrmlnc commented Aug 18, 2016

I reopen your issue to not forget about it.

@mrmlnc mrmlnc reopened this Aug 18, 2016
mrmlnc added a commit that referenced this issue Sep 13, 2016
mrmlnc added a commit that referenced this issue Sep 13, 2016
@mrmlnc
Copy link
Owner

mrmlnc commented Sep 13, 2016

@mrmlnc mrmlnc closed this as completed Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants