Topic on User talk:GethN7
This is a permanent link to the first version of this post.
You can view later versions on the post history page.
Actually, the best solution is to probably do what I did at Kings Wiki:
http://en.kingswiki.com/w/index.php?title=MediaWiki:Common.css&diff=16688&oldid=12348
Have one class ("spoiler") for the background and border and a separate class ("spoilerhidden") for the color of the text, then have Template:Spoiler be <span class="spoiler spoilerhidden">{{{1}}}</span>
. That way, the gadget could be rewritten to toggle "spoilerhidden" out / in.