|
1 | | -# CSSCOMB [](http://travis-ci.org/csscomb/csscomb.js) |
| 1 | +# CSSComb [](http://csscomb.com/) |
| 2 | +[](http://travis-ci.org/csscomb/csscomb.js) |
2 | 3 |
|
3 | 4 | CSSComb is a coding style formatter for CSS. |
4 | 5 | You can easily write your own [configuration](#configuration) to make your style sheets beautiful and consistent. |
@@ -164,6 +165,44 @@ b { color: #ffcc00 } |
164 | 165 | b { color: #fc0 } |
165 | 166 | ``` |
166 | 167 |
|
| 168 | +### combinator-space |
| 169 | +
|
| 170 | +Available values: |
| 171 | + * `{Boolean}`: `true` sets one space, `false` removes the spaces. |
| 172 | + * `{String}`: any combination of whitespaces. |
| 173 | + * `{Array}` with two `{String}` values: for setting left and right whitespace. |
| 174 | +
|
| 175 | +Example: `{ "combinator-space": true }` |
| 176 | +
|
| 177 | +```css |
| 178 | +/* before */ |
| 179 | +a>b { color: red } |
| 180 | +
|
| 181 | +/* after */ |
| 182 | +a > b { color: red } |
| 183 | +``` |
| 184 | +
|
| 185 | +Example: `{ "combinator-space": "" }` |
| 186 | +
|
| 187 | +```css |
| 188 | +/* before */ |
| 189 | +a > b { color: red } |
| 190 | +
|
| 191 | +/* after */ |
| 192 | +a>b { color: red } |
| 193 | +``` |
| 194 | +
|
| 195 | +Example: `{ "combinator-space": [" ", "\n"] }` |
| 196 | +
|
| 197 | +```css |
| 198 | +/* before */ |
| 199 | +a>b { color: red } |
| 200 | +
|
| 201 | +/* after */ |
| 202 | +a > |
| 203 | +b { color: red } |
| 204 | +``` |
| 205 | +
|
167 | 206 | ### element-case |
168 | 207 |
|
169 | 208 | Available values: `{String}` `lower` or `upper` |
@@ -281,8 +320,8 @@ Available value: `{Boolean}` true |
281 | 320 |
|
282 | 321 | Example: `{ "strip-spaces": true }` |
283 | 322 |
|
284 | | -Before: |
285 | | -```a { color: red } \nb { font-weight: normal }\n\n\n` |
| 323 | +Before: `a { color: red } \nb { font-weight: normal }\n\n\n` |
| 324 | +
|
286 | 325 | After: `a { color: red }\nb { font-weight: normal }\n` |
287 | 326 |
|
288 | 327 | ### unitless-zero |
@@ -318,7 +357,8 @@ Thanks for assistance and contributions: |
318 | 357 | [@puzankov](https://github.com/puzankov), |
319 | 358 | [@L0stSoul](https://github.com/L0stSoul), |
320 | 359 | [@ignovak](https://github.com/ignovak), |
321 | | -[@kizu](https://github.com/kizu) |
| 360 | +[@kizu](https://github.com/kizu), |
| 361 | +[@anton-rudeshko](https://github.com/anton-rudeshko) |
322 | 362 |
|
323 | 363 | ## License |
324 | 364 |
|
|
0 commit comments