3 ms·
take a look at LESS CSS. It does exactly this and more. http://lesscss.org/ http://lesscss.org/
by rpwverheij 14y ago
take a look at LESS CSS. It does exactly this and more. http://lesscss.org/ http://lesscss.org/
- CWIZO 14y agoI don't think it does. What OP is proposing would require to modify the CSS engine to update the style of elements when something changes (hide some element when some other suddenly (via JS for instance) becomes visible). LESS/SASS does not give you that. Yes you have "if" clauses, but they are evaluated based on some fixed state when "compiling" to CSS.
- deleted 14y ago[deleted]