Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claudiob/csswaxer
Group CSS line by property rather than by selector for better readability and maintainability
https://github.com/claudiob/csswaxer
Last synced: 17 days ago
JSON representation
Group CSS line by property rather than by selector for better readability and maintainability
- Host: GitHub
- URL: https://github.com/claudiob/csswaxer
- Owner: claudiob
- License: other
- Created: 2010-03-28T17:38:20.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2014-06-05T19:26:32.000Z (over 10 years ago)
- Last Synced: 2024-12-14T00:50:28.447Z (26 days ago)
- Language: Ruby
- Homepage:
- Size: 129 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CssWaxer #
Ruby command-line tool that prettifies CSS files grouping lines by property rather than by selector
## Installation (from GemCutter) ##
sudo gem update --system # in order to install dependencies
gem install csswaxer## Examples ##
csswaxer http://rubygems.org/stylesheets/all.css
csswaxer http://vlex.com/stylesheets/new.css## To do ##
* Add a proper wiki
* Accept CSS files with commands split on multiple lines
* Accept different media types, not only screen
* Contain every possible CSS property
* Align TABS for each property
* Also expand shorthand property list-style (css_parser does not)
* Recreate shorthand formats in the final output## Other styles of CSS Code Readability ##
[Loud Dog](http://www.louddog.com/bloggity/2008/03/css-best-practices.php)
[Smashing Magazine](http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/)
## History ##
v0.0.9 2014/06/05
Bump CSS Parser, which is now available as a gem again. Include iconv which is required.v0.0.8 2010/08/03
CSS Parser is no (longer) available as a gem in version 1.1.0. Fixed by creating a new gem called css_parser_1.1.0 and requiring that one insteadv0.0.7 2010/04/03
Expanded shorthand properties: background, font, margin, paddingv0.0.6 2010/04/02
Requires CSS Parser > 1.1.0 which includes load_file!v0.0.5 2010/04/02
Fixed a bug; now respects multiple property values for the same selectorv0.0.4 2010/03/31
Fixed a bug; now also respects !important statementsv0.0.3 2010/03/28
Fixed a bug; now also works on remote CSS filesv0.0.1 2010/03/28
First commit that only works on CSS files with one-line style.## License ##
Released in the public domain under the Ruby license. See LICENSE for details.