csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Issue with sass rules, like @import ecc..

Open ghost opened this issue 6 years ago • 7 comments

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 avatar Jan 06 '20 15:01 ghost

Anyone?

ghost avatar Jan 10 '20 06:01 ghost

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

henriquebs12 avatar Jan 18 '20 15:01 henriquebs12

I've the same issue. Anyone else help

SahilMepani avatar Jan 19 '20 20:01 SahilMepani

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

dnwhte avatar Apr 10 '20 21:04 dnwhte

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

ghost avatar Apr 11 '20 20:04 ghost

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

pastuh avatar Apr 12 '20 18:04 pastuh

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/

ghost avatar Apr 15 '20 10:04 ghost