CSS compilers and converting IE hacks to conditional css
Posted
by xckpd7
on Stack Overflow
See other posts from Stack Overflow
or by xckpd7
Published on 2010-04-30T18:26:38Z
Indexed on
2010/04/30
18:27 UTC
Read the original article
Hit count: 446
Skip to bottom for question, but first, a little context.
So I have been looking into CSS compilers (like Sass & Less) for a while, and have been really interested in them, not because they help me understand anything easier (I've been doing css for a couple of years now) but rather they cut down on cruft and help me see things easier.
I recently have been looking into reliably implementing inline-block (and clearfix), which require lots of extraneous code & hacks. Now according to all the authorities in the field, I shouldn't put IE hacks in the same page I do my CSS in, I should make them conditional. But for me that is a really big hassle to go through and manage all this additional code, which is why I really like things like Less. Instead of applying unsemantic classes, you specify a mixin and apply it once, and you're all set.
So I guess I got a little of the track (I wanted to explain my points) but bascially, I'm at the point where these CSS compilers are very useful for me, and allow me to abstract a lot of the cruft away, and reliably apply them once and then just compile it. I would like to have a way to be able to compile IE specific styles into their own conditional files (ala Less / Sass) so I don't have to deal with managing 2 files for no reason.
Does anything like a script/applcation that runs and can make underscore / star hacks apart of their own file exist?
© Stack Overflow or respective owner