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