Hi,

I've modified your css and spoiler.module a little bit. What do you think about it? Perhaps it looks a little bit better than just chaning text and background collor.

in spoiler.module I changed the function _spoiler_filter_process with:
return preg_replace('#\[\s*spoiler\s*\](.*?)\[\s*/\s*spoiler\s*\]#is', t('<a href="#" class="spoiler">Spoiler: <span>$1</span></a>'), $text);

and in spoiler.css I replaced the whole content with:

a.spoiler, a.spoiler:visited, a.spoiler:active, a.spoiler:hover {color:#000; background:#fff; border: 1px dotted #ccc; text-decoration:none;}
a.spoiler span {display:none;}
a.spoiler:hover {border: 1px dotted #cccccc;}
a.spoiler:hover span {display:inline; font-weight:normal;}

Comments

Zen’s picture

Status: Active » Needs work

Could you please submit your changes in patch form? Also, please set the "status" field to "patch (code needs review)" when you submit your patch.

Thanks!

Zen’s picture

Status: Needs work » Closed (won't fix)

No reply - module has also changed since.