As does my stupidity
I’ve been continuing on with my site redesign, which means I continue to use Sass. I’m dead serious with the title of this post, too. Not just Sass, but Compass as well. Sass would be good by itself, but the stuff that Compass puts in, especially it’s CSS3 module. I have used the border-radius and box-shadow includes enough now, that writing them in regular CSS seems an incredible chore.
I only have to write this:
@include border-radius(10px 0px 0px 10px);
To achieve this:
-moz-border-radius:10px 0px 0px 10px; -webkit-border-radius:10px 0px 0px 10px; -o-border-radius:10px 0px 0px 10px; -ms-border-radius:10px 0px 0px 10px; -khtml-border-radius:10px 0px 0px 10px; border-radius:10px 0px 0px 10px;
You can see why this is awesome. If you can’t, you should stop reading. No, seriously though, how many of you actually write all of those in CSS? I don’t. I write the one for -moz, -webkit, and the last one. Compass is covering ALL of them, so in effect, it is doing more than I originally would have, and I’m writing less. So how did my stupidity grow? Good question.