3 ms·
I tend to write CSS for projects by hand without a pre-processor, borrowing from previous projects only when called for. One of the things I've been doing rece
by bluetwo 9y ago
I tend to write CSS for projects by hand without a pre-processor, borrowing from previous projects only when called for.
One of the things I've been doing recently that helps debugging a lot is to group the attributes within a css class into three, separated by a line.
1) Things that control where the item shows up.
2) Things that control the overall appearance of the item, like size and background.
3) Things that control appearance of things within the item, like font color.
- Siilwyn 9y agoThat sounds a lot like the 'concentric order'. Can sort like that automatically: https://github.com/Siilwyn/css-declaration-sorter/blob/master/readme.md#sorting-orders https://github.com/Siilwyn/css-declaration-sorter/blob/maste...