.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / at-rule-name-space-after / README.md
1 # at-rule-name-space-after
2
3 Require a single space after at-rule names.
4
5 ```css
6 @media (max-width: 600px) {}
7 /**   ↑
8  * The space after at-rule names */
9 ```
10
11 This rule ignores `@import` in Less.
12
13 ## Options
14
15 `string`: `"always"|"always-single-line"`
16
17 ### `"always"`
18
19 There *must always* be a single space after at-rule names.
20
21 The following patterns are considered violations:
22
23 ```css
24 @charset"UTF-8";
25 ```
26
27 ```css
28 @media(min-width: 700px) {}
29 ```
30
31 ```css
32 @media  (min-width: 700px) {}
33 ```
34
35 ```css
36 @media
37 (min-width: 700px) {}
38 ```
39
40 The following patterns are *not* considered violations:
41
42 ```css
43 @charset "UTF-8";
44 ```
45
46 ```css
47 @import url("x.css");
48 ```
49
50 ```css
51 @media (min-width: 700px) {}
52 ```
53
54 ### `"always-single-line"`
55
56 There *must always* be a single space after at-rule names in single-line declaration blocks.
57
58 The following patterns are considered violations:
59
60 ```css
61 @charset"UTF-8";
62 ```
63
64 ```css
65 @media(min-width: 700px) {}
66 ```
67
68 ```css
69 @media  (min-width: 700px) {}
70 ```
71
72 The following patterns are *not* considered violations:
73
74 ```css
75 @charset "UTF-8";
76 ```
77
78 ```css
79 @import url("x.css");
80 ```
81
82 ```css
83 @media (min-width: 700px) {}
84 ```
85
86 ```css
87 @media
88 (min-width: 700px) {}
89 ```
90
91 ```css
92 @media(min-width: 700px) and
93   (orientation: portrait) {}
94 ```
95
96 ```css
97 @media
98   (min-width: 700px) and
99   (orientation: portrait) {}
100 ```