.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / declaration-colon-space-after / README.md
1 # declaration-colon-space-after
2
3 Require a single space or disallow whitespace after the colon of declarations.
4
5 ```css
6 a { color: pink }
7 /**      ↑
8  * The space after this colon */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"|"always-single-line"`
14
15 ### `"always"`
16
17 There *must always* be a single space after the colon.
18
19 The following patterns are considered violations:
20
21 ```css
22 a { color :pink }
23 ```
24
25 ```css
26 a { color:pink }
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 a { color : pink }
33 ```
34
35 ```css
36 a { color: pink }
37 ```
38
39 ### `"never"`
40
41 There *must never* be whitespace after the colon.
42
43 The following patterns are considered violations:
44
45 ```css
46 a { color:pink }
47 ```
48
49 ```css
50 a { color :pink }
51 ```
52
53 The following patterns are *not* considered violations:
54
55 ```css
56 a { color :pink }
57 ```
58
59 ```css
60 a { color:pink }
61 ```
62
63 ### `"always-single-line"`
64
65 There *must always* be a single space after the colon *if the declaration's value is single-line*.
66
67 The following patterns are considered violations:
68
69 ```css
70 a {
71   box-shadow:0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
72 }
73 ```
74
75 The following patterns are *not* considered violations:
76
77 ```css
78 a {
79   box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
80 }
81 ```
82
83 ```css
84 a {
85   box-shadow:
86     0 0 0 1px #5b9dd9,
87     0 0 2px 1px rgba(30, 140, 190, 0.8);
88 }
89 ```
90
91 ```css
92 a {
93   box-shadow:0 0 0 1px #5b9dd9,
94     0 0 2px 1px rgba(30, 140, 190, 0.8);
95 }
96 ```