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

Sort CSS properties alphabetically #12

Closed
marcobiedermann opened this issue Apr 18, 2016 · 7 comments
Closed

Sort CSS properties alphabetically #12

marcobiedermann opened this issue Apr 18, 2016 · 7 comments
Assignees

Comments

@marcobiedermann
Copy link
Contributor

Sorting CSS properties by alphabet will reduce the file size when gzipped:

http://peteschuster.com/2014/12/reduce-file-size-css-sorting/

@picturepan2
Copy link
Owner

thanks. doing now.

@picturepan2
Copy link
Owner

I also added CSScomb to the Gulp process. The minified css file is reduced by 1157 byte.

@marcobiedermann
Copy link
Contributor Author

I've seen that.
But I think it is also a good idea to sort the CSS properties in all LESS files.
This way, spectre does not depend on a third party tool like CSSComb.
What do you think?

@picturepan2
Copy link
Owner

Yes. I was thinking about this - my current coding order is like position > size > box model > text etc. It is hard to follow perfectly. Since CSSComb doesn't support LESS, do you recomend any automation tool for this?

@marcobiedermann
Copy link
Contributor Author

Not automated but stylelint, now supports LESS files.

@picturepan2
Copy link
Owner

Cool. Thanks. Hope I will get to used to this new habit. Lol.

@picturepan2
Copy link
Owner

Done. I updated all LESS files by using CSSComb. I still keep CSSComb in Gulp process because Autoprefixer adds new properties.

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