Skip to content

Commit

Permalink
Docs: Update space-between-declarations examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyganch committed Jul 19, 2014
1 parent 2875c43 commit d7c5b81
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions doc/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Here is a full list in the same order they are applied while processing css:
- [space-after-opening-brace](#space-after-opening-brace)
- [space-before-selector-delimiter](#space-before-selector-delimiter)
- [space-after-selector-delimiter](#space-after-selector-delimiter)
- [space-after-declaration](#space-after-declaration)
- [space-between-declarations](#space-between-declarations)
- [block-indent](#block-indent)
- [sort-order-fallback](#sort-order-fallback)
- [sort-order](#sort-order)
Expand All @@ -36,7 +36,7 @@ Following options are ignored while processing `*.sass` files:
- space-before-opening-brace
- space-after-opening-brace
- space-before-closing-brace
- space-after-declaration
- space-between-declarations


## always-semicolon
Expand Down Expand Up @@ -504,21 +504,21 @@ p >
a { color: panda; }
```

## space-after-declaration
## space-between-declarations

Set space after declaration (i.e. `color: tomato`).
Set space between declarations (i.e. `color: tomato`).

Acceptable values:

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

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

```scss
// Before:
a {
color: panda;
color: panda; /* comment */
top: 0;
/* comment */
right: 0;
Expand All @@ -527,11 +527,13 @@ a {

// After:
a {
color: panda; top: 0; /* comment */
right: 0; position: absolute }
color: panda; /* comment */ top: 0;
/* comment */
right: 0; position: absolute
}
```

Example: `{ 'space-after-declaration': '\n ' }`
Example: `{ 'space-between-declarations': '\n ' }`

```scss
// Before:
Expand All @@ -542,8 +544,7 @@ a {
a {
color: panda;
top: 0;
right: 0;
}
right: 0;}
```


Expand Down

0 comments on commit d7c5b81

Please sign in to comment.