{"id":16847420,"url":"https://github.com/othree/css-tidy","last_synced_at":"2025-04-10T16:42:00.032Z","repository":{"id":1385635,"uuid":"1350107","full_name":"othree/css-tidy","owner":"othree","description":"The fork.","archived":false,"fork":false,"pushed_at":"2010-11-14T13:57:10.000Z","size":486,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T14:37:46.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nitrogen/simple_bridge","license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/othree.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-10T09:59:44.000Z","updated_at":"2019-01-17T05:57:07.000Z","dependencies_parsed_at":"2022-08-16T13:15:13.968Z","dependency_job_id":null,"html_url":"https://github.com/othree/css-tidy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fcss-tidy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fcss-tidy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fcss-tidy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fcss-tidy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othree","download_url":"https://codeload.github.com/othree/css-tidy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252728,"owners_count":21072703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:07:52.023Z","updated_at":"2025-04-10T16:41:59.974Z","avatar_url":"https://github.com/othree.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSSTidy\n\n## Requirements\n\n   * [Python, for SCons](http://www.python.org/)\n   * [SCons](http://www.scons.org/)\n   * C++ compiler – g++ or MinGW\n\n## Install\n\n    git clone git://github.com/alexanderte/css-tidy.git\n    cd css-tidy\n    scons\n    sudo cp release/csstidy/csstidy /usr/local/bin/\n\n## Usage\n\n    csstidy input_filename [\n        --allow_html_in_templates=[false|true] |\n        --compress_colors=[true|false] |\n        --compress_font_weight=[true|false] |\n        --discard_invalid_properties=[false|true] |\n        --lowercase_s=[false|true] |\n        --preserve_css=[false|true] |\n        --remove_backslash=[true|false] |\n        --remove_last_semicolon=[false|true] |\n        --silent=[false|true] |\n        --sort_properties=[false|true] |\n        --sort_selectors=[false|true] |\n        --timestamp=[false|true] |\n        --merge_selectors=[2|1|0] |\n        --case_properties=[0|1|2] |\n        --optimise_shorthands=[1|2|0] |\n        --template=[default|filename|low|high|highest] |\n        output_filename ]*\n\n## Templates\n\nA template is a file that consists of strings seperated by `|`. They may contain\nany other characters like newlines, tabs and HTML-tags for the visual formatting\n(only \u003cspan\u003e is allowed). \n\n1. string before @rule\n2. string+bracket after @-rule\n3. string before selector\n4. string+bracket after selector\n5. string before property\n6. string after property+before value\n7. string after value\n8. closing bracket - selector\n9. space between blocks {...}\n10. closing bracket @-rule\n11. indentation in @-rules\n12. before comments\n13. after comments\n14. after last one-line @-rule\n\n### Position of templates\n\n([1] = first string, [2] = second string,...):\n\n    [1]@charset [6]\"utf-8\"[7];\n\n    [1]@import [6]\"my.css\"[7];\n    [14]\n    [1]@media screen[2] {\n    [11][3]b[4] {\n    [11][5]color:[6]blue[7];\n\n    [11][8]}[9]\n    [11]\n    [11][3]a[4] {\n    [11][5]color:[6]red[7];\n    [11][8]}[10]\n    }\n\n    [3]a[4] {\n    [5]color:[6]red[7];\n    [8]}[9]\n\n    [3]b[4] {\n\n    [5]color:[6]blue[7];\n    [8]}[9]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fcss-tidy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothree%2Fcss-tidy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fcss-tidy/lists"}