.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / unit-case / README.md
1 # unit-case
2
3 Specify lowercase or uppercase for units.
4
5 ```css
6     a { width: 10px; }
7 /**              ↑
8  *     These units */
9 ```
10
11 ## Options
12
13 `string`: `"lower"|"upper"`
14
15 ### `"lower"`
16
17 The following patterns are considered violations:
18
19 ```css
20 a {
21   width: 10PX;
22 }
23 ```
24
25 ```css
26 a {
27   width: 10Px;
28 }
29 ```
30
31 ```css
32 a {
33   width: 10pX;
34 }
35 ```
36
37 ```css
38 a {
39   width: 10PIXEL;
40 }
41 ```
42
43 ```css
44 a {
45   width: calc(10PX * 2);
46 }
47 ```
48
49 The following patterns are *not* considered violations:
50
51 ```css
52 a {
53   width: 10px;
54 }
55 ```
56
57 ```css
58 a {
59   width: calc(10px * 2);
60 }
61 ```
62
63 ### `"upper"`
64
65 The following patterns are considered violations:
66
67 ```css
68 a {
69   width: 10px;
70 }
71 ```
72
73 ```css
74 a {
75   width: 10Px;
76 }
77 ```
78
79 ```css
80 a {
81   width: 10pX;
82 }
83 ```
84
85 ```css
86 a {
87   width: 10pixel;
88 }
89 ```
90
91 ```css
92 a {
93   width: calc(10px * 2);
94 }
95 ```
96
97 The following patterns are *not* considered violations:
98
99 ```css
100 a {
101   width: 10PX;
102 }
103 ```
104
105 ```css
106 a {
107   width: calc(10PX * 2);
108 }
109 ```