See D3955. We should develop a CSS style guide and enforce it with lint, similar to the JS and PHP guides.
Proposed rules:
- Write colors using lowercase ("#a12345", not "#A12345").
- Write colors in the most compact form (if @chad wants -- this happens in minification anyway).
- No rule alphabetization -- see https://secure.phabricator.com/D3223#comment-15 for my rationale. I'm fine with alphabetizing or enforcing some other order if you guys prefer.
- Omit quotes for url() (this gets rewritten in minification anyway).
- Single space after :; do not align rule bodies.
Flexible on any of this, but we should pick some set of rules and then apply it to the whole codebase.