From 43b305d21cc324b49b9c483ea76ce08b165eea9b Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 10 Jul 2013 09:42:40 -0700 Subject: [PATCH] Improve html.cgi border spacing layout The html.cgi source files use h1, h2, etc. that the *.cgi scripts do not. The technique used to get the correct spacing needs to be a little different. --- cgi/html.cgi | 3 ++- html/girocco.css | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cgi/html.cgi b/cgi/html.cgi index 5489951..f288c14 100755 --- a/cgi/html.cgi +++ b/cgi/html.cgi @@ -58,6 +58,7 @@ foreach (split(/\n/, $template)) { next; } elsif (s/^\@header//) { $gcgi = Girocco::CGI->new($heading, $section); + print "
"; next; } else { s/@\@path\((\w+?)\)@@/url_path(${$Girocco::Config::{$1}})/ge; @@ -65,5 +66,5 @@ foreach (split(/\n/, $template)) { print "$_\n"; } } - +print "
"; $gcgi and $gcgi->srcname("html/$pathinfo"); diff --git a/html/girocco.css b/html/girocco.css index 2c4b20f..a84c482 100644 --- a/html/girocco.css +++ b/html/girocco.css @@ -9,6 +9,16 @@ margin-right: 1ex; } +div.htmlcgi .projectlist, div.htmlcgi p, div.htmlcgi pre { + margin-left: 0; + margin-right: 0; +} + +div.htmlcgi { + margin-left: 1ex; + margin-right: 1ex; +} + .formlabel { margin-right: 0.5em; padding-top: 0.3em; -- 2.11.4.GIT