Skip to content

Commit 70efe1a

Browse files
committed
Merge pull request htmlacademy#10 from htmlacademy/feature/add-postcss-sorting-config
Конфиг для postcss-sorting
2 parents 7d9f8c8 + 633e7f0 commit 70efe1a

File tree

1 file changed

+363
-0
lines changed

1 file changed

+363
-0
lines changed

.postcss-sorting.json

Lines changed: 363 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,363 @@
1+
{
2+
"empty-lines-between-children-rules": 1,
3+
"empty-lines-between-media-rules": 1,
4+
"sort-order": [
5+
[
6+
"@mixin"
7+
],
8+
[
9+
"content",
10+
"position",
11+
"top",
12+
"right",
13+
"bottom",
14+
"left",
15+
"z-index"
16+
],
17+
[
18+
"display",
19+
"-webkit-flex",
20+
"-ms-flex",
21+
"flex",
22+
"-webkit-flex-grow",
23+
"flex-grow",
24+
"-webkit-flex-shrink",
25+
"flex-shrink",
26+
"-webkit-flex-basis",
27+
"flex-basis",
28+
"-webkit-flex-flow",
29+
"flex-flow",
30+
"-webkit-flex-direction",
31+
"-ms-flex-direction",
32+
"flex-direction",
33+
"-webkit-flex-wrap",
34+
"flex-wrap",
35+
"-webkit-justify-content",
36+
"justify-content",
37+
"-webkit-align-content",
38+
"align-content",
39+
"-webkit-align-items",
40+
"align-items",
41+
"-webkit-order",
42+
"-ms-flex-order",
43+
"order",
44+
"-webkit-align-self",
45+
"align-self",
46+
"float",
47+
"clear",
48+
"-webkit-box-sizing",
49+
"-moz-box-sizing",
50+
"box-sizing",
51+
"width",
52+
"min-width",
53+
"max-width",
54+
"height",
55+
"min-height",
56+
"max-height",
57+
"margin",
58+
"margin-top",
59+
"margin-right",
60+
"margin-bottom",
61+
"margin-left",
62+
"padding",
63+
"padding-top",
64+
"padding-right",
65+
"padding-bottom",
66+
"padding-left",
67+
"overflow",
68+
"-ms-overflow-x",
69+
"overflow-x",
70+
"-ms-overflow-y",
71+
"overflow-y",
72+
"-webkit-overflow-scrolling"
73+
],
74+
[
75+
"list-style",
76+
"list-style-position",
77+
"list-style-type",
78+
"list-style-image",
79+
"border-collapse",
80+
"border-spacing",
81+
"table-layout",
82+
"empty-cells",
83+
"caption-side",
84+
"font",
85+
"font-weight",
86+
"font-size",
87+
"line-height",
88+
"font-family",
89+
"vertical-align",
90+
"text-align",
91+
"direction",
92+
"color",
93+
"text-transform",
94+
"text-decoration",
95+
"font-style",
96+
"font-variant",
97+
"font-size-adjust",
98+
"font-stretch",
99+
"font-effect",
100+
"font-emphasize",
101+
"font-emphasize-position",
102+
"font-emphasize-style",
103+
"font-smooth",
104+
"-webkit-text-align-last",
105+
"-moz-text-align-last",
106+
"-ms-text-align-last",
107+
"text-align-last",
108+
"letter-spacing",
109+
"word-spacing",
110+
"white-space",
111+
"text-emphasis",
112+
"text-emphasis-color",
113+
"text-emphasis-style",
114+
"text-emphasis-position",
115+
"text-indent",
116+
"-ms-text-justify",
117+
"text-justify",
118+
"-ms-writing-mode",
119+
"text-outline",
120+
"text-wrap",
121+
"-ms-text-overflow",
122+
"text-overflow",
123+
"text-overflow-ellipsis",
124+
"text-overflow-mode",
125+
"text-orientation",
126+
"-ms-word-wrap",
127+
"word-wrap",
128+
"-ms-word-break",
129+
"word-break",
130+
"-moz-tab-size",
131+
"-o-tab-size",
132+
"tab-size",
133+
"-webkit-hyphens",
134+
"-moz-hyphens",
135+
"hyphens",
136+
"unicode-bidi",
137+
"columns",
138+
"column-count",
139+
"column-fill",
140+
"column-gap",
141+
"column-rule",
142+
"column-rule-color",
143+
"column-rule-style",
144+
"column-rule-width",
145+
"column-span",
146+
"column-width",
147+
"text-shadow",
148+
"page-break-after",
149+
"page-break-before",
150+
"page-break-inside"
151+
],
152+
[
153+
"background",
154+
"background-color",
155+
"background-image",
156+
"background-repeat",
157+
"background-position",
158+
"-ms-background-position-x",
159+
"background-position-x",
160+
"-ms-background-position-y",
161+
"background-position-y",
162+
"-webkit-background-size",
163+
"-moz-background-size",
164+
"-o-background-size",
165+
"background-size",
166+
"-webkit-background-clip",
167+
"-moz-background-clip",
168+
"background-clip",
169+
"background-origin",
170+
"background-attachment",
171+
"box-decoration-break",
172+
"background-blend-mode",
173+
"border",
174+
"border-width",
175+
"border-style",
176+
"border-color",
177+
"border-top",
178+
"border-top-width",
179+
"border-top-style",
180+
"border-top-color",
181+
"border-right",
182+
"border-right-width",
183+
"border-right-style",
184+
"border-right-color",
185+
"border-bottom",
186+
"border-bottom-width",
187+
"border-bottom-style",
188+
"border-bottom-color",
189+
"border-left",
190+
"border-left-width",
191+
"border-left-style",
192+
"border-left-color",
193+
"-webkit-border-radius",
194+
"-moz-border-radius",
195+
"border-radius",
196+
"-webkit-border-top-left-radius",
197+
"-moz-border-radius-topleft",
198+
"border-top-left-radius",
199+
"-webkit-border-top-right-radius",
200+
"-moz-border-radius-topright",
201+
"border-top-right-radius",
202+
"-webkit-border-bottom-right-radius",
203+
"-moz-border-radius-bottomright",
204+
"border-bottom-right-radius",
205+
"-webkit-border-bottom-left-radius",
206+
"-moz-border-radius-bottomleft",
207+
"border-bottom-left-radius",
208+
"-webkit-border-image",
209+
"-moz-border-image",
210+
"-o-border-image",
211+
"border-image",
212+
"-webkit-border-image-source",
213+
"-moz-border-image-source",
214+
"-o-border-image-source",
215+
"border-image-source",
216+
"-webkit-border-image-slice",
217+
"-moz-border-image-slice",
218+
"-o-border-image-slice",
219+
"border-image-slice",
220+
"-webkit-border-image-width",
221+
"-moz-border-image-width",
222+
"-o-border-image-width",
223+
"border-image-width",
224+
"-webkit-border-image-outset",
225+
"-moz-border-image-outset",
226+
"-o-border-image-outset",
227+
"border-image-outset",
228+
"-webkit-border-image-repeat",
229+
"-moz-border-image-repeat",
230+
"-o-border-image-repeat",
231+
"border-image-repeat",
232+
"outline",
233+
"outline-width",
234+
"outline-style",
235+
"outline-color",
236+
"outline-offset",
237+
"-webkit-box-shadow",
238+
"-moz-box-shadow",
239+
"box-shadow",
240+
"-webkit-transform",
241+
"-moz-transform",
242+
"-ms-transform",
243+
"-o-transform",
244+
"transform",
245+
"-webkit-transform-origin",
246+
"-moz-transform-origin",
247+
"-ms-transform-origin",
248+
"-o-transform-origin",
249+
"transform-origin",
250+
"-webkit-backface-visibility",
251+
"-moz-backface-visibility",
252+
"backface-visibility",
253+
"-webkit-perspective",
254+
"-moz-perspective",
255+
"perspective",
256+
"-webkit-perspective-origin",
257+
"-moz-perspective-origin",
258+
"perspective-origin",
259+
"-webkit-transform-style",
260+
"-moz-transform-style",
261+
"transform-style",
262+
"visibility",
263+
"cursor",
264+
"opacity",
265+
"-webkit-filter",
266+
"filter"
267+
],
268+
[
269+
"-webkit-transition",
270+
"-moz-transition",
271+
"-ms-transition",
272+
"-o-transition",
273+
"transition",
274+
"-webkit-transition-delay",
275+
"-moz-transition-delay",
276+
"-ms-transition-delay",
277+
"-o-transition-delay",
278+
"transition-delay",
279+
"-webkit-transition-timing-function",
280+
"-moz-transition-timing-function",
281+
"-ms-transition-timing-function",
282+
"-o-transition-timing-function",
283+
"transition-timing-function",
284+
"-webkit-transition-duration",
285+
"-moz-transition-duration",
286+
"-ms-transition-duration",
287+
"-o-transition-duration",
288+
"transition-duration",
289+
"-webkit-transition-property",
290+
"-moz-transition-property",
291+
"-ms-transition-property",
292+
"-o-transition-property",
293+
"transition-property",
294+
"-webkit-animation",
295+
"-moz-animation",
296+
"-ms-animation",
297+
"-o-animation",
298+
"animation",
299+
"-webkit-animation-name",
300+
"-moz-animation-name",
301+
"-ms-animation-name",
302+
"-o-animation-name",
303+
"animation-name",
304+
"-webkit-animation-duration",
305+
"-moz-animation-duration",
306+
"-ms-animation-duration",
307+
"-o-animation-duration",
308+
"animation-duration",
309+
"-webkit-animation-play-state",
310+
"-moz-animation-play-state",
311+
"-ms-animation-play-state",
312+
"-o-animation-play-state",
313+
"animation-play-state",
314+
"-webkit-animation-timing-function",
315+
"-moz-animation-timing-function",
316+
"-ms-animation-timing-function",
317+
"-o-animation-timing-function",
318+
"animation-timing-function",
319+
"-webkit-animation-delay",
320+
"-moz-animation-delay",
321+
"-ms-animation-delay",
322+
"-o-animation-delay",
323+
"animation-delay",
324+
"-webkit-animation-iteration-count",
325+
"-moz-animation-iteration-count",
326+
"-ms-animation-iteration-count",
327+
"-o-animation-iteration-count",
328+
"animation-iteration-count",
329+
"-webkit-animation-direction",
330+
"-moz-animation-direction",
331+
"-ms-animation-direction",
332+
"-o-animation-direction",
333+
"animation-direction"
334+
],
335+
[
336+
"appearance",
337+
"quotes",
338+
"counter-reset",
339+
"counter-increment",
340+
"resize",
341+
"-webkit-user-select",
342+
"-moz-user-select",
343+
"-ms-user-select",
344+
"user-select",
345+
"nav-index",
346+
"nav-up",
347+
"nav-right",
348+
"nav-down",
349+
"nav-left",
350+
"pointer-events",
351+
"will-change",
352+
"clip",
353+
"clip-path",
354+
"zoom"
355+
],
356+
[
357+
"@media"
358+
],
359+
[
360+
">child"
361+
]
362+
]
363+
}

0 commit comments

Comments
 (0)