3 ms·
Another benefit of this layout is that you can stack similar rules to make their relationships clearer. For example: div.red { background: #f00; border:
by DougBTX 17y ago
Another benefit of this layout is that you can stack similar rules to make their relationships clearer. For example:
div.red { background: #f00; border: 3px solid #c00; }
div.green { background: #0f0; border: 4px solid #0c0; }
div.blue { background: #00f; border: 5px solid #00c; }
In multiline mode, it might not be so clear that they are related. We are experimenting with lessCSS here, in theory it might make this go away, in practice lessCSS seems quite buggy, so we are not using it for much yet.
- nex3 17y agoMay I self-promote and suggest Sass (http://sass-lang.org http://sass-lang.org)? It's much older and less buggy than Less, and the currently-in-beta Sass 3 supports a CSS-style syntax (http://nex-3.com/posts/96-scss-sass-is-a-css-extension http://nex-3.com/posts/96-scss-sass-is-a-css-extension).
- gamache 17y ago+1 for Sass. Sass allows me to apply the same modularity and reuse principles to my CSS that I do to my code, so writing it is much faster and editing it is much easier. I played with a few other CSS processors over the last few years (Less, Moonfall, one or two others) but Sass is clearly in the lead. Thanks nex3 for a very useful tool. (Oh, and FWIW, I use it on a Perl website. You don't need to be on Rails to use Sass.)
- shadowsun7 17y agoI usually do single-line inserts for global elements like blockquotes and links. For the rest - no way.