[Replaced] CSSComb file for WP core.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Jan 19, 2015
Using it with my upcoming projects. Much appreciated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Configuration Options are detailed at https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
Current WP CSS coding standards for property ordering are outlined at http://make.wordpress.org/core/handbook/coding-standards/css/#property-ordering . These are too generic, so using an automated tool (via grunt, editor plugin, website (once re-done)) with unambiguous prescriptive list of individual properties is better.
verboseare optional and just here to show they exist. Main focus here is the sort order. Properties are broken up into Display, Positioning, Box Model, Colors and Typography, and Other as per CS. All given in one array, so no clear linespaces will appear in the sorted output.
$includecover sorting with both Sass and LESS variables and mixins / extend, so suitable for all projects outside of core too.