.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / function-calc-no-unspaced-operator / README.md
1 # function-calc-no-unspaced-operator
2
3 Disallow an unspaced operator within `calc` functions.
4
5 ```css
6 a { top: calc(1px + 2px); }
7 /**               ↑
8  * The space around this operator */
9 ```
10
11 Before the operator, there must be a single whitespace or a newline plus indentation. After the operator, there must be a single whitespace or a newline.
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 a { top: calc(1px+2px); }
21 ```
22
23 ```css
24 a { top: calc(1px+ 2px); }
25 ```
26
27 The following patterns are *not* considered violations:
28
29 ```css
30 a { top: calc(1px + 2px); }
31 ```
32
33 ```css
34 a { top: calc(calc(1em * 2) / 3); }
35 ```
36
37 ```css
38 a {
39   top: calc(var(--foo) +
40     var(--bar));
41 }
42 ```
43
44 ```css
45 a {
46   top: calc(var(--foo)
47     + var(--bar));
48 }
49 ```