3 ms·
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 "1
by lvivski 14y ago
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.
- deleted 14y ago[deleted]
- robin_reala 14y agoStandard CSS syntax for arithmetic operations is the calc() operator: http://www.w3.org/TR/css3-values/#calc-notation http://www.w3.org/TR/css3-values/#calc-notation
- lvivski 14y agowell, yes. CSS has variables syntax too (http://dev.w3.org/csswg/css-variables/ 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