News for hackers. Stuff that matters.
Re:I can style a whole app with only four hex values and SASS. by jewel on Wednesday May 02, 2012 @05:59PM (#3921429)
I believe the author is missing out on one other feature of Sass: browser-prefix values are generated automatically, so no more (-webkit-, -ms-, etc.). This would make his Sass gradient code more succinct.
Re:I can style a whole app with only four hex values and SASS. by shioyama on Wednesday May 02, 2012 @06:00PM (#3921434)
That's a feature of Compass, not Sass.

http://compass-style.org/

Re:I can style a whole app with only four hex values and SASS. by ajacksified on Wednesday May 02, 2012 @06:12PM (#3921479)
More accurately, SASS includes the ability to create functions to build out prefixes, and Compass includes default functions to do this.
Re:I can style a whole app with only four hex values and SASS. by wahnfrieden on Wednesday May 02, 2012 @06:23PM (#3921511)
Yeah, we do this with SASS without using compass.
Re:I can style a whole app with only four hex values and SASS. by shioyama on Wednesday May 02, 2012 @06:59PM (#3921627)
I stand corrected. I think though that Compass is the most common way people do this.
Re:I can style a whole app with only four hex values and SASS. by darklajid on Thursday May 03, 2012 @09:37AM (#3923767)
No language hate - but are there similar projects that don't require a ruby installation?

I'm currently playing with a very, very small environment. I might want to check out a (powerful) css preprocessor project, but it feels wasteful to add a dependency on an otherwise unnecessary (for my work/projects) language. Alternatives? Suggestions?

Re:I can style a whole app with only four hex values and SASS. by lucaspiller on Wednesday May 02, 2012 @06:55PM (#3921610)
And Stylus with Nib - I don't believe they do the lighten / darkening of colours however.
Re:I can style a whole app with only four hex values and SASS. by tlack on Wednesday May 02, 2012 @07:08PM (#3921654)
Actually, lightening and darkening are built-in functions in Stylus:

http://learnboost.github.com/stylus/docs/bifs.html

Stylus is amazing

Re:I can style a whole app with only four hex values and SASS. by boronine on Wednesday May 02, 2012 @10:12PM (#3922075)
You may find my Stylus plugin useful: http://boronine.com/colorspaces.js/
Re:I can style a whole app with only four hex values and SASS. by alanh on Wednesday May 02, 2012 @10:34PM (#3922139)
How do Stylus+Nib compare to Sass+Compass, in your opinion?
Re:I can style a whole app with only four hex values and SASS. by ryanflorence on Thursday May 03, 2012 @12:08AM (#3922340)
They are both awesome and compare quite well :D I think its mostly a question of the syntax you prefer (and possibly the way you'd like to manage the dependency, with ruby gems, npm, or manually).
Re:I can style a whole app with only four hex values and SASS. by yuchi on Thursday May 03, 2012 @03:24AM (#3922775)
IMHO Stylus is an overall win over SASS. The ability to write transparent mixins for my team (made by people not wanting to know how to implement `display:inline-block` on IE) is so great I can't be happier.

I've been able to completely replace SASS on Liferay [1] themes development and raised my team's productivity a lot.

[1]: http://www.liferay.com