This seems like a good place to solicit feedback on my css style. (Update: css for my current project: http://readwarp.com/main.css)
I use one-line CSS selectors.[1] My CSS tends to the minimal because it's not my differentiator. Especially in the small there's a huge difference between having two screens of css vs six screens, with little extra complexity.
I rarely have long lines. Mostly because my styles are minimalist, but also this: selectors occur multiple times in my css. I organize my css into thematic sections. Layout. Fonts. Colors. Different 'aspects' of the same selector occur in multiple sections. Is this wrong? I haven't noticed any browser unable to handle it.
I do indent nested classes - but only in the layout section where the cascading matters most.
When I do have long lines I hard wrap and indent and use two lines. Still maximizes screen use, so I don't understand those who say 1% of selectors being on two lines defeats the purpose of one-line selectors.
Like jules, I don't understand the counter-argument that you can just use folding. The whole point of one-line mode is that you can see attributes.
I use folding to collapse sections of a file. To have to open and close folds at such a fine granularity strikes me as ridiculous. I would just end up having the folds always open.
[1] I'm a programmer first, so I guess that runs counter to JoelSutherland's generalization.
I use one-line CSS selectors.[1] My CSS tends to the minimal because it's not my differentiator. Especially in the small there's a huge difference between having two screens of css vs six screens, with little extra complexity.
I rarely have long lines. Mostly because my styles are minimalist, but also this: selectors occur multiple times in my css. I organize my css into thematic sections. Layout. Fonts. Colors. Different 'aspects' of the same selector occur in multiple sections. Is this wrong? I haven't noticed any browser unable to handle it.
I do indent nested classes - but only in the layout section where the cascading matters most.
When I do have long lines I hard wrap and indent and use two lines. Still maximizes screen use, so I don't understand those who say 1% of selectors being on two lines defeats the purpose of one-line selectors.
Like jules, I don't understand the counter-argument that you can just use folding. The whole point of one-line mode is that you can see attributes.
I use folding to collapse sections of a file. To have to open and close folds at such a fine granularity strikes me as ridiculous. I would just end up having the folds always open.
[1] I'm a programmer first, so I guess that runs counter to JoelSutherland's generalization.