summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-03 21:42:33 +0200
committerYorhel <git@yorhel.nl>2009-07-03 21:42:33 +0200
commit45843fa3b02a69951fe7f4144ccdcbca76609180 (patch)
treeabd9480361e9b0650223b8c25b0aff0e75d5292d
parent83d006a8b947b9246305aef76a51f98459d8e993 (diff)
Make sure the search-tab-thingy stays nicely above the search box
It didn't always look good in all screen resolutions.
-rw-r--r--data/style.css4
-rw-r--r--lib/VNDB/Util/CommonHTML.pm14
2 files changed, 8 insertions, 10 deletions
diff --git a/data/style.css b/data/style.css
index ce510235..2f2038aa 100644
--- a/data/style.css
+++ b/data/style.css
@@ -442,10 +442,8 @@ fieldset.search .submit {
padding: 0 1px;
}
p.searchtabs {
- width: 84%;
- padding-right: 15%;
- text-align: center;
height: 12px;
+ padding-right: 70px;
}
p.searchtabs a {
padding: 2px 6px 2px 6px;
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 2bf496f6..cbb84dd8 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -522,14 +522,14 @@ sub htmlHistory {
sub htmlSearchBox {
my($self, $sel, $v) = @_;
- p class => 'searchtabs';
- a href => '/v/all', $sel eq 'v' ? (class => 'sel') : (), 'Visual novels';
- a href => '/r', $sel eq 'r' ? (class => 'sel') : (), 'Releases';
- a href => '/p/all', $sel eq 'p' ? (class => 'sel') : (), 'Producers';
- a href => '/g', $sel eq 'g' ? (class => 'sel') : (), 'Tags';
- a href => '/u/all', $sel eq 'u' ? (class => 'sel') : (), 'Users';
- end;
fieldset class => 'search';
+ p class => 'searchtabs';
+ a href => '/v/all', $sel eq 'v' ? (class => 'sel') : (), 'Visual novels';
+ a href => '/r', $sel eq 'r' ? (class => 'sel') : (), 'Releases';
+ a href => '/p/all', $sel eq 'p' ? (class => 'sel') : (), 'Producers';
+ a href => '/g', $sel eq 'g' ? (class => 'sel') : (), 'Tags';
+ a href => '/u/all', $sel eq 'u' ? (class => 'sel') : (), 'Users';
+ end;
input type => 'text', name => 'q', id => 'q', class => 'text', value => $v;
input type => 'submit', class => 'submit', value => 'Search!';
end;