4 ms·
It's so funny, but as I become an exponentially better and better programmer, I start finding myself more and more drawn to stuff like this that someone put tog
by tomasien 14y ago
It's so funny, but as I become an exponentially better and better programmer, I start finding myself more and more drawn to stuff like this that someone put together in 2 days and is billed as "light weight" over any other feature than something with a trillion options already built for me.
Whenever a Javscript library throws a ton of inline !important css just to get their shit to look good, I'm like "now what am I supposed to do to make it look how I want it to look? To behave how I want it to behave? STOP IT!"
- highace 14y agoThere's only one logical outcome: we need to introduce the !really-important marker.
- tomasien 14y agoMaybe it would make things more confusing, but I've never understood why you can't just add extra !'s to !important and make it more important, like a z-index of importance. I can never see it getting very many levels deep, it's only REALLY for using other peoples code and overriding it where you can't get to it.
- tekacs 14y agoI strongly suspect that this would, amongst other things, encourage some particularly sloppy library maintainers to ship 'fixes' or indeed first versions with many rules marked with !!!!!!!!!!important, to avoid just this. :/
- FuzzyDunlop 14y agoIt'd be akin to the smattering of z-index:9999 you see all over the place.
- avalaunch 14y agoTrue, but just because something can be abused by sloppy programmers doesn't mean it isn't a good idea. Can you imagine if you z-index was a boolean?
- wmeredith 14y agoThe allowance of only one important is a feature not a bug. If everything is important than nothing is.
- alex_doom 14y agoThe Ministry of Doublespeak reminds you to simply use two !important !important.
- diiiimaaaa 14y agoI completely agree with you. For this exact reason I've made this plugin modular. Which means that you can include only parts that actually use, both from JS part (thanks to Grunt) and from CSS part (thanks to Sass).
- tmzt 14y agoIs it possible to use this as a dialog box/modal without the image features?