From: Giuseppe Bilotta Date: Thu, 13 Nov 2008 22:49:12 GMT Subject: [PATCH v2 06/11] gitweb: use CSS to style split head lists. Message-ID: <1226616555-24503-7-git-send-email-giuseppe.bilotta@gmail.com> In-Reply-To: <1226616555-24503-6-git-send-email-giuseppe.bilotta@gmail.com> 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 a01eac8..751749f 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 836b6ba..03e0b21 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4296,9 +4296,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.6.5