[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7901":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},7901,"csscss","zmoazeni\u002Fcsscss","zmoazeni","A CSS redundancy analyzer that analyzes redundancy.","http:\u002F\u002Fzmoazeni.github.io\u002Fcsscss\u002F",null,"Ruby",2901,149,1,15,0,58.53,"MIT License",true,false,"master",[],"2026-06-12 04:00:36","[![Build Status](https:\u002F\u002Ftravis-ci.org\u002Fzmoazeni\u002Fcsscss.png?branch=master)](https:\u002F\u002Ftravis-ci.org\u002Fzmoazeni\u002Fcsscss)\n[![Code Climate](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fzmoazeni\u002Fcsscss.png)](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fzmoazeni\u002Fcsscss)\n\n## What is it? ##\n\ncsscss will parse any CSS files you give it and let you know which\nrulesets have duplicated declarations.\n\n## What is it for? ##\n\nOne of the best strategies for me to maintain CSS is to reduce\nduplication as much as possible. It's not a silver bullet, but it sure\nhelps.\n\nTo do that, you need to have all the rulesets in your head at all times.\nThat's hard, csscss is easy. Let it tell you what is redundant.\n\n## How do I use it? ##\n\nFirst you need to install it. It is currently packaged as a ruby gem:\n\n    $ gem install csscss\n\nNote: csscss only works on ruby 1.9.x and up. It will have trouble with ruby 1.8.x.\n\nThen you can run it in at the command line against CSS files.\n\n    $ csscss path\u002Fto\u002Fstyles.css path\u002Fto\u002Fother-styles.css\n\n    {.contact .content .primary} and {article, #comments} share 5 rules\n    {.profile-picture}, {.screenshot img} and {a.blurb img} share 4 rules\n    {.work h2:first-child, .contact h2} and {body.home h2} share 4 rules\n    {article.blurb:hover} and {article:hover} share 3 rules\n\nRun it in a verbose mode to see all the duplicated styles.\n\n    $ csscss -v path\u002Fto\u002Fstyles.css\n\nRun it against remote files by passing a valid URL.\n\n    $ csscss -v http:\u002F\u002Fexample.com\u002Fcss\u002Fmain.css\n\nYou can also choose a minimum number of matches, which will ignore any\nrulesets that have fewer matches.\n\n    $ csscss -n 10 -v path\u002Fto\u002Fstyle.css # ignores rulesets with \u003C 10 matches\n\nIf you prefer writing in [Sass](http:\u002F\u002Fsass-lang.com\u002F), you can also parse your sass\u002Fscss files.\n\n    $ gem install sass\n    $ csscss path\u002Fto\u002Fstyle.scss\n\nSass users may be interested in the `--ignore-sass-mixins`\nexperimental flag that won't match duplicate declarations from including mixins.\n\nIf you prefer writing in [LESS](http:\u002F\u002Flesscss.org\u002F), you can also parse your LESS files.\n\n    $ gem install less\n    $ csscss path\u002Fto\u002Fstyle.less\n\nLESS requires an additional javascript runtime.\n[v8\u002Ftherubyracer](https:\u002F\u002Frubygems.org\u002Fgems\u002Ftherubyracer) on most\nrubies, and [therubyrhino](https:\u002F\u002Frubygems.org\u002Fgems\u002Ftherubyrhino) on\njruby.\n\n## Are there any community extensions? ##\n\n* [compass-csscss](https:\u002F\u002Fgithub.com\u002FComcast\u002Fcompass-csscss) integrates csscss with [compass](http:\u002F\u002Fcompass-style.org\u002F) projects.\n* [grunt-csscss](https:\u002F\u002Fgithub.com\u002Fpeterkeating\u002Fgrunt-csscss) a [grunt](http:\u002F\u002Fgruntjs.com\u002F) task to automatically run csscss.\n* [gulp-csscss](https:\u002F\u002Fwww.npmjs.org\u002Fpackage\u002Fgulp-csscss\u002F) a [gulp](http:\u002F\u002Fgulpjs.com\u002F) task to automatically run csscss.\n\n_Please submit [an issue](https:\u002F\u002Fgithub.com\u002Fzmoazeni\u002Fcsscss\u002Fissues\u002Fnew) if you know of any others._\n\n## Why doesn't csscss automatically remove duplications for me? ##\n\nI have been asked this a lot, but csscss is intentionally designed this\nway. Check out [this\npost](https:\u002F\u002Fconnectionrequired.com\u002Fblog\u002F2013\u002F04\u002Fwhy-csscss-doesnt-remove-duplication-for-you)\nfor my reasoning.\n\n## I found bugs ##\n\nThis is still a new and evolving project. I heartily welcome feedback.\nIf you find any issues, please report them on\n[github](https:\u002F\u002Fgithub.com\u002Fzmoazeni\u002Fcsscss\u002Fissues).\n\nPlease include the smallest CSS snippet to describe the issue and the\noutput you expect to see.\n\n## I'm a dev, I can help ##\n\nAwesome! Thanks! Here are the steps I ask:\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Make sure the tests pass (`bundle exec rake test`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create new Pull Request\n","csscss 是一个 CSS 冗余分析工具，用于识别 CSS 文件中的重复声明。其核心功能在于能够解析给定的 CSS 文件，并指出哪些规则集拥有相同的声明，从而帮助开发者减少代码冗余，提高维护效率。该工具使用 Ruby 语言开发，支持命令行操作，同时也兼容 Sass 和 LESS 预处理器语法。特别适用于需要优化 CSS 代码、减少文件体积以及提升网页加载速度的场景。此外，通过社区扩展，如与 Compass、Grunt 或 Gulp 等构建工具集成，进一步增强了其实用性。",2,"2026-06-11 03:14:59","top_language"]