From: Giuseppe Bilotta Date: Fri, 31 Aug 2007 11:18:38 GMT Subject: [PATCH 07/14] gitweb: use CSS to style split head lists. Message-ID: <11885591201440-git-send-email-giuseppe.bilotta@gmail.com> In-Reply-To: Introduce a new div class 'subsection' in the CSS and use it to style split head lists. Signed-off-by: Giuseppe Bilotta --- gitweb/gitweb.css | 10 ++++++++++ gitweb/gitweb.perl | 4 +++- 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css index 1b88879..c36b20a 100644 --- a/gitweb/gitweb.css +++ b/gitweb/gitweb.css @@ -8,6 +8,16 @@ body { color: #000000; } +div.subsection { + border: solid #d9d8d1; + border-width: 1px; + margin: 10px; +} + +.subsection .title { + font-size: smaller; +} + a { color: #0000cc; } diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index cacb0d7..dc9727e 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3665,9 +3665,11 @@ sub git_split_heads_body { } @$headlist; foreach $leader (sort(keys %headlists)) { - print "$leader
\n" unless $leader eq "\000"; + print "
\n"; + git_print_header_div(undef, $leader) unless $leader eq "\000"; $list = $headlists{$leader}; git_heads_body($list, $head, $from, $to, $extra); + print "
\n"; } } -- 1.5.2.5