.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / at-rule-whitelist / README.md
1 # at-rule-whitelist
2
3 Specify a whitelist of allowed at-rules.
4
5 ```css
6     @keyframes name {}
7 /** ↑
8  * At-rules like this */
9 ```
10
11 This rule ignores `@import` in Less.
12
13 ## Options
14
15 `array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`
16
17 Given:
18
19 ```js
20 ["extend", "keyframes"]
21 ```
22
23 The following patterns are considered violations:
24
25 ```css
26 @import "path/to/file.css";
27 ```
28
29 ```css
30 @media screen and (max-width: 1024px) {
31   a { display: none; }
32 }
33 ```
34
35 The following patterns are *not* considered violations:
36
37 ```css
38 a { @extend placeholder; }
39 ```
40
41 ```css
42 @keyframes name {
43   from { top: 10px; }
44   to { top: 20px; }
45 }
46 ```
47
48 ```css
49 @KEYFRAMES name {
50   from { top: 10px; }
51   to { top: 20px; }
52 }
53 ```
54
55 ```css
56 @-moz-keyframes name {
57   from { top: 10px; }
58   to { top: 20px; }
59 }