.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / media-query-list-comma-newline-after / README.md
1 # media-query-list-comma-newline-after
2
3 Require a newline or disallow whitespace after the commas of media query lists.
4
5 ```css
6 @media screen and (color),
7   projection {}       /* ↑ */
8 /**                      ↑
9  *            These commas */
10 ```
11
12 ## Options
13
14 `string`: `"always"|"always-multi-line"|"never-multi-line"`
15
16 ### `"always"`
17
18 There *must always* be a newline after the commas.
19
20 The following patterns are considered violations:
21
22 ```css
23 @media screen and (color), projection and (color) {}
24 ```
25
26 ```css
27 @media screen and (color)
28 , projection and (color) {}
29 ```
30
31 The following patterns are *not* considered violations:
32
33 ```css
34 @media screen and (color),
35 projection and (color) {}
36 ```
37
38 ```css
39 @media screen and (color)
40 ,
41 projection and (color) {}
42 ```
43
44 ### `"always-multi-line"`
45
46 There *must always* be a newline after the commas in multi-line media query lists.
47
48 The following patterns are considered violations:
49
50 ```css
51 @media screen and (color)
52 , projection and (color) {}
53 ```
54
55 The following patterns are *not* considered violations:
56
57 ```css
58 @media screen and (color), projection and (color) {}
59 ```
60
61 ```css
62 @media screen and (color),
63 projection and (color) {}
64 ```
65
66 ```css
67 @media screen and (color)
68 ,
69 projection and (color) {}
70 ```
71
72 ### `"never-multi-line"`
73
74 There *must never* be a white after the commas in multi-line media query lists.
75
76 The following patterns are considered violations:
77
78 ```css
79 @media screen and (color),
80 projection and (color) {}
81 ```
82
83 ```css
84 @media screen and (color)
85 ,
86 projection and (color) {}
87 ```
88
89 The following patterns are *not* considered violations:
90
91 ```css
92 @media screen and (color), projection and (color) {}
93 ```
94
95 ```css
96 @media screen and (color)
97 ,projection and (color) {}
98 ```