News for hackers. Stuff that matters.
Re:Style like a BOSS. New css preprocessor. by Brajeshwar on Tuesday October 02, 2012 @03:45AM (#4600961)
I've done quite a bit of my share with LESS. My default is Sass. With the recent Sass 3.2, there are lots of awesome stuffs.

If I have to tutor or bring in a CSS person (but a pre-processor newbie) to my team, it's very easy to start off, "It's pretty much CSS. Just start off with using Variables. We can then take on other interesting stuffs." Once, you can persuade a designer (helping her with the setup) to start using them, it's amazing how many of them won't go back to doing RAW CSS after LESS or SASS.

As for BOSS, it looks like one has to study and learn a totally different stuff than CSS. I browse through the test codes and it isn't really welcoming!

Re:Style like a BOSS. New css preprocessor. by lvivski on Tuesday October 02, 2012 @03:51AM (#4600971)
BOSS is completely compatible with standard CSS syntax. You can use as less or as many features as you want.

Ex. you wan only arithmetic operations to write "10px + 10%", you are welcome to do so, or use only variables.

Ruleset nesting works like in SASS or LESS with small addition of BEM, but it's totally compatible with CSS selectors. And you may not use nesting if you don't want to.

Re:Style like a BOSS. New css preprocessor. by robin_reala on Tuesday October 02, 2012 @07:17AM (#4601436)
Standard CSS syntax for arithmetic operations is the calc() operator:

http://www.w3.org/TR/css3-values/#calc-notation

Re:Style like a BOSS. New css preprocessor. by lvivski on Tuesday October 02, 2012 @08:02AM (#4601547)
well, yes. CSS has variables syntax too (http://dev.w3.org/csswg/css-variables/) but for the time of compiling you don't know anything about the runtime, so you can't calculate things like "10em + 5px" 'cause EM's absolute value depends on many things, so I had to separate "real" css calculations and "fake" ones