summaryrefslogtreecommitdiff
path: root/lib/VNDB/Func.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-13 11:08:41 +0100
committerYorhel <git@yorhel.nl>2008-12-13 11:08:41 +0100
commit84cb0d328d83008343c92d51f24239c69b6d5914 (patch)
tree52eadcd5420ee48c2675063ffa53984403625cdf /lib/VNDB/Func.pm
parenta416eb118824fd4aea5e5acf06e81a8c36f7f0c8 (diff)
FF2 style fixes
Three-box-layout didn't work very well together with the screenshots on the homepage and the CSS icon hack needed a &nbsp; to get rid of a strange top margin. With this, the following browsers should render all pages correctly: FF2, FF3 and the latest Opera, Safari and Chrome
Diffstat (limited to 'lib/VNDB/Func.pm')
-rw-r--r--lib/VNDB/Func.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm
index 0fb0e6a1..37bec8be 100644
--- a/lib/VNDB/Func.pm
+++ b/lib/VNDB/Func.pm
@@ -6,7 +6,7 @@ use warnings;
use YAWF ':html';
use Exporter 'import';
use POSIX 'strftime';
-our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat clearfloat |;
+our @EXPORT = qw| shorten date datestr monthstr userstr bb2html gtintype liststat clearfloat cssicon |;
# I would've done this as a #define if this was C...
@@ -193,5 +193,13 @@ sub clearfloat {
}
+# Draws a CSS icon, arguments: class, title
+sub cssicon {
+ acronym class => "icons $_[0]", title => $_[1];
+ lit '&nbsp;';
+ end;
+}
+
+
1;