6 ms·
That's a feature of Compass, not Sass. http://compass-style.org/ http://compass-style.org/
by shioyama 14y ago
That's a feature of Compass, not Sass.
http://compass-style.org/ http://compass-style.org/
- ajacksified 14y agoMore accurately, SASS includes the ability to create functions to build out prefixes, and Compass includes default functions to do this.
- wahnfrieden 14y agoYeah, we do this with SASS without using compass.
- shioyama 14y agoI stand corrected. I think though that Compass is the most common way people do this.
- lucaspiller 14y agoAnd Stylus with Nib - I don't believe they do the lighten / darkening of colours however.
- tlack 14y agoActually, lightening and darkening are built-in functions in Stylus: http://learnboost.github.com/stylus/docs/bifs.html http://learnboost.github.com/stylus/docs/bifs.html Stylus is amazing
- boronine 14y agoYou may find my Stylus plugin useful: http://boronine.com/colorspaces.js/ http://boronine.com/colorspaces.js/
- alanh 14y agoHow do Stylus+Nib compare to Sass+Compass, in your opinion?
- ryanflorence 14y agoThey 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).
- yuchi 14y agoIMHO 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 http://www.liferay.com
- darklajid 14y agoNo 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?