Skip to content

Commit ce4cbc4

Browse files
committed
Added more colon-space examples to README
1 parent a7b8617 commit ce4cbc4

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ a { color: red }
8585
### colon-space
8686
Available values:
8787
* `{Boolean}` true (means `after`)
88-
* `{String}`: `before`, `after` or `both`
88+
* `{String}`: `before`, `after`, `both` or any combination of whitespaces
89+
and/or a colon (` `, `: `, `\t:\n\t` etc.)
8990
9091
Example: `{ "colon-space": true }`
92+
9193
```css
9294
/* before */
9395
a { color:red }
@@ -96,6 +98,31 @@ a { color:red }
9698
a { color: red }
9799
```
98100
101+
Example: `{ "colon-space": ":\n " }`
102+
103+
```css
104+
/* before */
105+
a {
106+
color: red;
107+
}
108+
109+
/* after */
110+
a {
111+
color:
112+
red;
113+
}
114+
```
115+
116+
Example: `{ "colon-space": ":" }`
117+
118+
```css
119+
/* before */
120+
a { color: red }
121+
122+
/* after */
123+
a { color:red }
124+
```
125+
99126
## Tests
100127
101128
Run `npm test` for tests.

0 commit comments

Comments
 (0)