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