File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 198198 margin:0 }
199199` ` `
200200
201+ # ## sort-order
202+
203+ ** Note** : you can use an example of [.csscomb.json](https://github.com/csscomb/csscomb.js/blob/master/.csscomb.json) to set your own sort order
204+
205+ Available values:
206+ * ` {Array}` of rules
207+ * ` {Array}` of arrays of rules for groups separation
208+
209+ Example: ` { " sort-order" : [ " margin" , " padding" ] }`
210+
211+ ` ` ` css
212+ /* before * /
213+ p {
214+ padding: 0;
215+ margin: 0;
216+ }
217+
218+ /* after * /
219+ p {
220+ margin: 0;
221+ padding: 0;
222+ }
223+ ` ` `
224+
225+ Example: ` { " sort-order" : [ [ " margin" , " padding" ], [ " border" , " background" ] ] }`
226+
227+ ` ` ` css
228+ /* before * /
229+ p {
230+ background: none;
231+ border: 0;
232+ margin: 0;
233+ padding: 0;
234+ }
235+
236+ /* after * /
237+ p {
238+ margin: 0;
239+ padding: 0;
240+
241+ border: 0;
242+ background: none;
243+ }
244+ ` ` `
245+
201246# ## stick-brace
202247
203248Available values:
You can’t perform that action at this time.
0 commit comments