-
Notifications
You must be signed in to change notification settings - Fork 13
Rules for CSSComb
Ski-lleR edited this page Jun 27, 2016
·
5 revisions
Download the file
I've set the option for css look like this after parsing (feel free to modify like you want) :
.example {
[SPACE][SPACE]font: .1rem 'Optima';
}
[BLANK LINE]
.example {
[SPACE][SPACE]font: .1rem 'Optima';
}
Property are ordered like this :
- Position
- Display
- Table, list & counter-style thing
- Sizing (including margin, padding etc...)
- Flex
- Background
- Border
- Radius
- Common typography
- Uncommon typography
- Box shadow
- Columns
- Grid
- Input move (cursor, touch/pointer event)
- Imaging (filter, orientation, transform etc...)
- Animation
- Transition
- Strange property 1
- Strange property 2
I know there is a lot of property with all vendor specific, but the reason is because i use autoprefixer before running CSSComb, and i support IE >= 8 | Android >= 2.1, so that prevent some property to finish unordered at bottom.
If you have idea to improve the order, use the Issues tracker.