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

Issue with sass rules, like @import ecc.. #627

Open
ghost opened this issue Jan 6, 2020 · 7 comments
Open

Issue with sass rules, like @import ecc.. #627

ghost opened this issue Jan 6, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2020

Hi everyone!

I have this scss

.magic-class {
display:block;
grid-template-columns: 1rem 1rem 1rem;
@include box(2rem);
@include transition();
@include box;
overflow:hidden;
touch-action: none;
}

And when I run css comb it will be like

.magic-class {
@include box(2rem);

@include transition();

@include box;
touch-action: none;
display: block;
overflow: hidden;
grid-template-columns: 1rem 1rem 1rem;
}

How can I prevent to add this extra lines after every @import rule?

Help me pls, thank you

@ghost
Copy link
Author

ghost commented Jan 10, 2020

Anyone?

@henriquebs12
Copy link

Same question here. Plus, is there a way to indent those @import/@include etc? CSSComb is removing the indentation.

@SahilMepani
Copy link

I've the same issue. Anyone else help

@dnwhte
Copy link

dnwhte commented Apr 10, 2020

Changing the EOL sequence to LF seems to fix it for me.

@ghost
Copy link
Author

ghost commented Apr 11, 2020

@dnwhte How do you have do It? I would to try your suggestion, and see by myself if It work

@pastuh
Copy link

pastuh commented Apr 12, 2020

Looks like a lot of bugs exist.. So i skip for now :X

@ghost
Copy link
Author

ghost commented Apr 15, 2020

I suggest for all to use another tool for sort scss properties, csscomb is no longer maintained and it has some bugs.
In particular:
Postcss tool: https://github.com/Siilwyn/css-declaration-sorter/
Postcss tool: https://github.com/hudochenkov/postcss-sorting/

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

4 participants