Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 7638d8e6cc
...
compare: 4caa03177e
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Feb 20, 2014
@antonaavik antonaavik vertically align selector property values bbd278a
Commits on Feb 28, 2014
@stolksdorf Merge pull request #7 from antonaavik/master
Optional: vertically align selector property values
4caa031
Showing with 6 additions and 2 deletions.
  1. +4 −1 CleanCSS.py
  2. +2 −1  CleanCSS.sublime-settings
View
5 CleanCSS.py
@@ -9,7 +9,10 @@ def colonPad(s, desired_index):
return s
parts = s.split(":",1)
ruleName = parts[0].strip()
- colonDist = desired_index - len(ruleName) + 1
+ if(settings.get('vertically_align_selector_property_values')):
+ colonDist = desired_index - len(ruleName) + 1
+ else:
+ colonDist = 0
return "".join([
parts[0].rstrip(),
View
3  CleanCSS.sublime-settings
@@ -5,7 +5,8 @@
// 0 to disable
"num_rules_to_collaspe" : 3,
-
+ //Vertically align selector property values
+ "vertically_align_selector_property_values" : 1,
//Your css rules will be order by category in the order they appear here, and ordered within
// each category as they are here as well

No commit comments for this range

Something went wrong with that request. Please try again.