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