CleanCSS
CSS beautifier and sorter for Sublime text 2
Details
Installs
- Total 18K
- Win 11K
- Mac 5K
- Linux 2K
Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CleanCSS is a Sublime Text 3 package for beautifying your CSS. CleanCSS indents all your rules properly, aligns all the values by the colon, and sorts each property into categories within each rule:
- Imports (for LESS)
- Variables (for LESS)
- Mixins (for LESS)
- Content
- Positional
- Dimensional
- Appearance
- Animation
Installation
CleanCSS is on Package Control, so just open the Command Palette and select “Package Control: Install Package”, then search for CleanCSS and you're done!
Usage
You can clean a css file by accessing the CleanCSS command from the command palette
or you can bind a key to the clean_css
command in Preferences -> Key Bindings - User
for ultra fast cleaning
{"keys":["f6"], "command" : "clean_css"},
Configuration
You can access the configuration settings by selecting Preferences -> Package Settings -> CleanCSS
.
add_space_between_categories
(Boolean) If true, then an empty line will be inserted between categoriesadd_space_between_rules
(Boolean) Adds spaces inbetween each css rule.indent_string
(String) The string of characters used to indent. Defaults to a tab.min_styles_to_collaspe
(Number) If the rule has equal to or less styles, it won't add the category spacing. Defaults to 3.vertically_align_selector_property_values
(Boolean) If true, will align the colons of each style within each rulecategories
(Array) Contains how CleanCSS should sort and group each CSS property. Feel free to customize this as you like. Ordering of the properities in here will dictate how the properties are ordered when you clean the file.