.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / media-feature-colon-space-before / README.md
1 # media-feature-colon-space-before
2
3 Require a single space or disallow whitespace before the colon in media features.
4
5 ```css
6 @media (max-width :600px) {}
7 /**               ↑
8  * The space before this colon */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"`
14
15 ### `"always"`
16
17 There *must always* be a single space before the colon.
18
19 The following patterns are considered violations:
20
21 ```css
22 @media (max-width:600px) {}
23 ```
24
25 ```css
26 @media (max-width: 600px) {}
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 @media (max-width :600px) {}
33 ```
34
35 ```css
36 @media (max-width : 600px) {}
37 ```
38
39 ### `"never"`
40
41 There *must never* be whitespace before the colon.
42
43 The following patterns are considered violations:
44
45 ```css
46 @media (max-width :600px) {}
47 ```
48
49 ```css
50 @media (max-width : 600px) {}
51 ```
52
53 The following patterns are *not* considered violations:
54
55 ```css
56 @media (max-width:600px) {}
57 ```
58
59 ```css
60 @media (max-width: 600px) {}
61 ```