Re: Remove inline colors
Reply #3 –
It's actually quite easy for themers to work around it. Inline styles can be overridden by using !important in the CSS file.
IOW, template:
<a href="spambotzrus.org" class="stinky" target="_your_wallet" style="color: #reallygruesome;">ZOMG</a>
CSS file:
.stinky {color: #somethingnicer !important;}
By using this method you can easily define group colours by theme variant if you want to, regardless of what is set in admin.
Note that this is not limited to inlines styles set by PHP. It will also work for overriding inline styles set by javascript, if you need to do that.
Obligatory disclaimer: Yes, using !important indiscriminately is a sign of someone who does not know how CSS works, and will result in the deaths of millions of innocent kittens and everyone thinking your code was written by a muppet, but there are instances when using !important is the only way to sanely get the job done. In such specific cases, there is no real harm in using it as long as you are careful.