3 ms·
Or just see if your favorite editor has a folding mode.
by jjs 16y ago
Or just see if your favorite editor has a folding mode.
- thmz 16y agoOr some navigator (map) like there is in Netbeans. And also question why you have 1000+ lines of CSS. news.ycombinator uses only 31 selectors. And it looks.. well maybe not great , but very readable and very useable (I like it a lot). And I think it's better to have more classes defined in your DOM-object than doing the same stuff multiple times. I mean, most of the time widths, margins and paddings are reusable. So why not create classes for them.
- dimarco 16y agowould a folding mode turn a CSS dec like: .selected { color:white; } into .selected{} or .selected { color:white; }? Most folding modes that I've seen makes the block hidden, which is nothing like what single line CSS is.
- FlemishBeeCycle 16y agoHis main complaint was finding selectors ... so, if we're going by the article that shouldn't work fine. But really, if you plan your CSS instead of applying edge-case band-aid over edge-case band-aid, this becomes a complete non-issue.
- grayrest 16y agoVim's folding shows the first line, so it works fine there.