2 ms·
I think this technique may render CSS compilers (sass, etc.) largely unnecessary. Their main advantages are variables and arithmetic. The use of factored out mi
by leephillips 15y ago
I think this technique may render CSS compilers (sass, etc.) largely unnecessary. Their main advantages are variables and arithmetic. The use of factored out mixin-type classes does a good part of what variables do for you. And one of the chief reasons that we need to do arithmetic in CSS is the weird box model, where padding adds to the width of a div. Use "box-sizing: border-box;" and this problem goes away.