Closed (won't fix)
Project:
Spoiler
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2008 at 21:29 UTC
Updated:
12 May 2009 at 08:08 UTC
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
Comment #1
Zen commentedCould 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!
Comment #2
Zen commentedNo reply - module has also changed since.