Skip to content

Commit d7c5b81

Browse files
committed
Docs: Update space-between-declarations examples
1 parent 2875c43 commit d7c5b81

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

doc/options.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here is a full list in the same order they are applied while processing css:
2121
- [space-after-opening-brace](#space-after-opening-brace)
2222
- [space-before-selector-delimiter](#space-before-selector-delimiter)
2323
- [space-after-selector-delimiter](#space-after-selector-delimiter)
24-
- [space-after-declaration](#space-after-declaration)
24+
- [space-between-declarations](#space-between-declarations)
2525
- [block-indent](#block-indent)
2626
- [sort-order-fallback](#sort-order-fallback)
2727
- [sort-order](#sort-order)
@@ -36,7 +36,7 @@ Following options are ignored while processing `*.sass` files:
3636
- space-before-opening-brace
3737
- space-after-opening-brace
3838
- space-before-closing-brace
39-
- space-after-declaration
39+
- space-between-declarations
4040

4141

4242
## always-semicolon
@@ -504,21 +504,21 @@ p >
504504
a { color: panda; }
505505
```
506506

507-
## space-after-declaration
507+
## space-between-declarations
508508

509-
Set space after declaration (i.e. `color: tomato`).
509+
Set space between declarations (i.e. `color: tomato`).
510510

511511
Acceptable values:
512512

513513
* `{Number}` — number of whitespaces;
514514
* `{String}` — string with whitespaces, tabs or line breaks.
515515

516-
Example: `{ 'space-after-declaration': 1 }`
516+
Example: `{ 'space-between-declarations': 1 }`
517517

518518
```scss
519519
// Before:
520520
a {
521-
color: panda;
521+
color: panda; /* comment */
522522
top: 0;
523523
/* comment */
524524
right: 0;
@@ -527,11 +527,13 @@ a {
527527

528528
// After:
529529
a {
530-
color: panda; top: 0; /* comment */
531-
right: 0; position: absolute }
530+
color: panda; /* comment */ top: 0;
531+
/* comment */
532+
right: 0; position: absolute
533+
}
532534
```
533535

534-
Example: `{ 'space-after-declaration': '\n ' }`
536+
Example: `{ 'space-between-declarations': '\n ' }`
535537

536538
```scss
537539
// Before:
@@ -542,8 +544,7 @@ a {
542544
a {
543545
color: panda;
544546
top: 0;
545-
right: 0;
546-
}
547+
right: 0;}
547548
```
548549

549550

0 commit comments

Comments
 (0)