1. // https://github.com/hudochenkov/postcss-sorting#options
    2. "postcssSorting.config": {
    3. // 组件顺序,待定
    4. "order": [
    5. "custom-properties",
    6. "dollar-variables",
    7. "declarations",
    8. "at-rules",
    9. "rules"
    10. ],
    11. // 属性属性参见
    12. // https://github.com/twbs/bootstrap/blob/v4-dev/.scss-lint.yml
    13. "properties-order": [
    14. "position",
    15. "top",
    16. "right",
    17. "bottom",
    18. "left",
    19. "z-index",
    20. "-webkit-box-sizing",
    21. "-moz-box-sizing",
    22. "box-sizing",
    23. "display",
    24. "flex",
    25. "flex-align",
    26. "flex-basis",
    27. "flex-direction",
    28. "flex-wrap",
    29. "flex-flow",
    30. "flex-grow",
    31. "flex-order",
    32. "flex-pack",
    33. "align-items",
    34. "align-self",
    35. "justify-content",
    36. "order",
    37. "float",
    38. "width",
    39. "min-width",
    40. "max-width",
    41. "height",
    42. "min-height",
    43. "max-height",
    44. "padding",
    45. "padding-top",
    46. "padding-right",
    47. "padding-bottom",
    48. "padding-left",
    49. "margin",
    50. "margin-top",
    51. "margin-right",
    52. "margin-bottom",
    53. "margin-left",
    54. "overflow",
    55. "overflow-x",
    56. "overflow-y",
    57. "-webkit-overflow-scrolling",
    58. "-ms-overflow-x",
    59. "-ms-overflow-y",
    60. "-ms-overflow-style",
    61. "clip",
    62. "clear",
    63. "font",
    64. "font-family",
    65. "font-size",
    66. "font-style",
    67. "font-weight",
    68. "font-variant",
    69. "font-size-adjust",
    70. "font-stretch",
    71. "font-effect",
    72. "font-emphasize",
    73. "font-emphasize-position",
    74. "font-emphasize-style",
    75. "font-smooth",
    76. "-webkit-hyphens",
    77. "-moz-hyphens",
    78. "hyphens",
    79. "line-height",
    80. "color",
    81. "text-align",
    82. "-webkit-text-align-last",
    83. "-moz-text-align-last",
    84. "-ms-text-align-last",
    85. "text-align-last",
    86. "text-emphasis",
    87. "text-emphasis-color",
    88. "text-emphasis-style",
    89. "text-emphasis-position",
    90. "text-decoration",
    91. "text-indent",
    92. "text-justify",
    93. "text-outline",
    94. "-ms-text-overflow",
    95. "text-overflow",
    96. "text-overflow-ellipsis",
    97. "text-overflow-mode",
    98. "text-shadow",
    99. "text-transform",
    100. "text-wrap",
    101. "-webkit-text-size-adjust",
    102. "-ms-text-size-adjust",
    103. "letter-spacing",
    104. "-ms-word-break",
    105. "word-break",
    106. "word-spacing",
    107. "-ms-word-wrap",
    108. "word-wrap",
    109. "overflow-wrap",
    110. "-moz-tab-size",
    111. "-o-tab-size",
    112. "tab-size",
    113. "white-space",
    114. "vertical-align",
    115. "list-style",
    116. "list-style-position",
    117. "list-style-type",
    118. "list-style-image",
    119. "pointer-events",
    120. "-ms-touch-action",
    121. "touch-action",
    122. "cursor",
    123. "visibility",
    124. "zoom",
    125. "table-layout",
    126. "empty-cells",
    127. "caption-side",
    128. "border-spacing",
    129. "border-collapse",
    130. "content",
    131. "quotes",
    132. "counter-reset",
    133. "counter-increment",
    134. "resize",
    135. "-webkit-user-select",
    136. "-moz-user-select",
    137. "-ms-user-select",
    138. "-o-user-select",
    139. "user-select",
    140. "nav-index",
    141. "nav-up",
    142. "nav-right",
    143. "nav-down",
    144. "nav-left",
    145. "background",
    146. "background-color",
    147. "background-image",
    148. "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
    149. "filter:progid:DXImageTransform.Microsoft.gradient",
    150. "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
    151. "filter",
    152. "background-repeat",
    153. "background-attachment",
    154. "background-position",
    155. "background-position-x",
    156. "background-position-y",
    157. "-webkit-background-clip",
    158. "-moz-background-clip",
    159. "background-clip",
    160. "background-origin",
    161. "-webkit-background-size",
    162. "-moz-background-size",
    163. "-o-background-size",
    164. "background-size",
    165. "border",
    166. "border-color",
    167. "border-style",
    168. "border-width",
    169. "border-top",
    170. "border-top-color",
    171. "border-top-style",
    172. "border-top-width",
    173. "border-right",
    174. "border-right-color",
    175. "border-right-style",
    176. "border-right-width",
    177. "border-bottom",
    178. "border-bottom-color",
    179. "border-bottom-style",
    180. "border-bottom-width",
    181. "border-left",
    182. "border-left-color",
    183. "border-left-style",
    184. "border-left-width",
    185. "border-radius",
    186. "border-top-left-radius",
    187. "border-top-right-radius",
    188. "border-bottom-right-radius",
    189. "border-bottom-left-radius",
    190. "-webkit-border-image",
    191. "-moz-border-image",
    192. "-o-border-image",
    193. "border-image",
    194. "-webkit-border-image-source",
    195. "-moz-border-image-source",
    196. "-o-border-image-source",
    197. "border-image-source",
    198. "-webkit-border-image-slice",
    199. "-moz-border-image-slice",
    200. "-o-border-image-slice",
    201. "border-image-slice",
    202. "-webkit-border-image-width",
    203. "-moz-border-image-width",
    204. "-o-border-image-width",
    205. "border-image-width",
    206. "-webkit-border-image-outset",
    207. "-moz-border-image-outset",
    208. "-o-border-image-outset",
    209. "border-image-outset",
    210. "-webkit-border-image-repeat",
    211. "-moz-border-image-repeat",
    212. "-o-border-image-repeat",
    213. "border-image-repeat",
    214. "outline",
    215. "outline-width",
    216. "outline-style",
    217. "outline-color",
    218. "outline-offset",
    219. "-webkit-box-shadow",
    220. "-moz-box-shadow",
    221. "box-shadow",
    222. "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
    223. "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
    224. "opacity",
    225. "-ms-interpolation-mode",
    226. "-webkit-transition",
    227. "-moz-transition",
    228. "-ms-transition",
    229. "-o-transition",
    230. "transition",
    231. "-webkit-transition-delay",
    232. "-moz-transition-delay",
    233. "-ms-transition-delay",
    234. "-o-transition-delay",
    235. "transition-delay",
    236. "-webkit-transition-timing-function",
    237. "-moz-transition-timing-function",
    238. "-ms-transition-timing-function",
    239. "-o-transition-timing-function",
    240. "transition-timing-function",
    241. "-webkit-transition-duration",
    242. "-moz-transition-duration",
    243. "-ms-transition-duration",
    244. "-o-transition-duration",
    245. "transition-duration",
    246. "-webkit-transition-property",
    247. "-moz-transition-property",
    248. "-ms-transition-property",
    249. "-o-transition-property",
    250. "transition-property",
    251. "-webkit-transform",
    252. "-moz-transform",
    253. "-ms-transform",
    254. "-o-transform",
    255. "transform",
    256. "-webkit-transform-origin",
    257. "-moz-transform-origin",
    258. "-ms-transform-origin",
    259. "-o-transform-origin",
    260. "transform-origin",
    261. "-webkit-animation",
    262. "-moz-animation",
    263. "-ms-animation",
    264. "-o-animation",
    265. "animation",
    266. "-webkit-animation-name",
    267. "-moz-animation-name",
    268. "-ms-animation-name",
    269. "-o-animation-name",
    270. "animation-name",
    271. "-webkit-animation-duration",
    272. "-moz-animation-duration",
    273. "-ms-animation-duration",
    274. "-o-animation-duration",
    275. "animation-duration",
    276. "-webkit-animation-play-state",
    277. "-moz-animation-play-state",
    278. "-ms-animation-play-state",
    279. "-o-animation-play-state",
    280. "animation-play-state",
    281. "-webkit-animation-timing-function",
    282. "-moz-animation-timing-function",
    283. "-ms-animation-timing-function",
    284. "-o-animation-timing-function",
    285. "animation-timing-function",
    286. "-webkit-animation-delay",
    287. "-moz-animation-delay",
    288. "-ms-animation-delay",
    289. "-o-animation-delay",
    290. "animation-delay",
    291. "-webkit-animation-iteration-count",
    292. "-moz-animation-iteration-count",
    293. "-ms-animation-iteration-count",
    294. "-o-animation-iteration-count",
    295. "animation-iteration-count",
    296. "-webkit-animation-direction",
    297. "-moz-animation-direction",
    298. "-ms-animation-direction",
    299. "-o-animation-direction",
    300. "animation-direction"
    301. ]
    302. },