sublime-csscomb
sublime-csscomb copied to clipboard
space-after-declaration with Less functions
Hello!
I just discovered CSScomb and I love it! :smiley:
I have implemented it in one of my projects working with Less and I have seen that my Less functions aren't correctly indented in Sublime Text 3. Example :
.class{
background-color:#FFF;
border:none;.border-radius(0);
color:#000;
}
I thought space-after-declaration would be working but it's not the case. Is there a way to solve that? (I don't care if functions are at the beginning / the end or sorted by the first letter)
Here is my current configuration :
{
"color-case": "upper",
"block-indent": "\t",
"color-shorthand": true,
"element-case": "lower",
"leading-zero": false,
"quotes": "double",
"sort-order": [],
"sort-order-fallback": "abc",
"space-before-colon": "",
"space-after-colon": "",
"space-before-combinator": " ",
"space-after-combinator": " ",
"space-between-declarations": "\n",
"space-after-declaration": "\n",
"space-before-opening-brace": "",
"space-after-opening-brace": "\n",
"space-after-selector-delimiter": " ",
"space-before-selector-delimiter": "",
"space-before-closing-brace": "\n",
"unitless-zero": true,
"vendor-prefix-align": true
}
Thank you!
This is fixed now (probably in one of the new updates)
Thanks :+1:

Do you mind sharing how and why is this fixed now? I still have the same indentation problem, plus the extra empty line at the end.
Hi, I may have speak too fast, this is only partially fixed:
"1." is working, "2." is not, see example below
- If I have something like this:
then I launch CSScomb, it looks like this:

- But, if I have something like this:
then I launch CSScomb, it looks like this:

So, the problem is that if you write your css in line, this will not work correctly.