Skip to content

Commit

Permalink
gitweb: Normalize searchbar font size
Browse files Browse the repository at this point in the history
Currently, searchbar font was as big as the page heading font, because
font-size was made relative - but to the parent element, which was for some
reason indeed page_header. Since that seems to be illogical to me, I just
moved the div.search outside of div.page_header. I'm no CSS/DOM expert but
no adverse effects were observed by me.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed May 18, 2007
1 parent 8299886 commit d77b567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,8 @@ sub git_header_html {
}
print "\n";
}
print "</div>\n";

my ($have_search) = gitweb_check_feature('search');
if ((defined $project) && ($have_search)) {
if (!defined $searchtext) {
Expand Down Expand Up @@ -1932,7 +1934,6 @@ sub git_header_html {
"</div>" .
$cgi->end_form() . "\n";
}
print "</div>\n";
}

sub git_footer_html {
Expand Down

0 comments on commit d77b567

Please sign in to comment.