997 karma · joined February 4, 2009
.uno {
@extend .dos;
text-align: center;
}
.dos {
color: green;
font-size: 18px;
} * No more = needed to use SassScript
* $ instead of ! for variables
* Support for CSS identifiers. E.g. solid instead of "solid"
* Dashes can be used in place of underscores in variable names and sass functions.
There are a number of features planned for Sass 3.2 and beyond that address your other concerns, but Sass needed better infrastructure to do those. We have that now so we can go full steam ahead on new features. Expect the following in future releases: * Defining custom functions in Sass
* Keyword arguments to mixins and maybe functions.
* Support for a new directive called @extend
that implements selector inheritance.
* Optimizing compiler
* Support for new core datatypes like List and Null * New CSS-Based Syntax called SCSS is available
* Full CSS3 Support
* New Color Utilities and Support
* Variable now start with $
* No more Scripting context.
* Dashes in variable names
* Firebug Integration
* Watcher for files and directories .foo> This has no whitespace outside the foo div.
.foo< This has no whitespace just inside the foo div.
.foo>< This has no whitespace outside or inside.
http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#wh...Haml (the syntax) sucks for content. This is a fact.
Haml (the project) provides ample facilities for working around the syntactic limitations.
And I'm the guy who invented most of the programming facilities of Sass and I'll tell you, they're not very good programming tools -- but they're enough to make some really great stylesheets.
But Sass challenges the way stylesheet authors approach building and maintaining their code. And so from a work-flow perspective, Sass is incredibly disruptive.
SassScript is Sass's built in scripting language and it is turing complete. Here's a stylesheet that calculates and displays the mandlebröt set using background colors:
I read a lot of other people's code. I think that's important to developing taste -- at least as important as writing a lot of code if not more so.
I feel exactly the same way. But one thing I do think I have (and you do too, obviously) is taste. I can look at my code and see it as good or bad (most of the time bad). That means I can keep striving to make it good. And my eye for what is good and bad keeps maturing so when I go look at code I wrote two years ago that I was pretty proud of, I see bad code now.
Without the ability to see that your code can and should be better, your work ethic cannot kick in.
That said, Nathan did a ton of work to make these functions more efficient and to work correctly with alpha layers.
Edit: grammar.
I look forward to learning this new web framework that is also called ruby on rails ;-)
If they had given you their Sass code, you would be empowered to make design changes much more easily that you could have with CSS. If I were you, I'd be demanding that my designers use it ;-)
But the 10 years ago you wouldn't have taken your advice. 10 years ago CSS was not ubiquitous. There were not good tools. The ecosystem was just getting going. And yet somehow the tradeoff was worth it for you.
Technical designers learn sass quickly. They like it and so the tools will follow. The ecosystem will grow. Already Sass experience is considered a plus in job reqs for many forward-thinking startups. Sass and Compass will mature in the next few years, and you're objections will fall by the way side and a few years after that, instead of having a competetive advantage, you'll be at a competitive disadvantage by not using something like it.
I don't know if Sass and Compass will ultimately be the tools of choice for generating CSS, but I'm certain that there will be tools like them.