.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / custom-media-pattern / README.md
1 # custom-media-pattern
2
3 Specify a pattern for custom media query names.
4
5 ```css
6 @custom-media --foo (max-width: 30em);
7 /**             ↑
8  * The pattern of this */
9 ```
10
11 ## Options
12
13 `regex|string`
14
15 A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.
16
17 Given the string:
18
19 ```js
20 "foo-.+"
21 ```
22
23 The following patterns are considered violations:
24
25 ```css
26 @custom-media --bar (min-width: 30em);
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 @custom-media --foo-bar (min-width: 30em);
33 ```