some changes
authorStricted <info@nexus-irc.de>
Fri, 12 Apr 2013 11:11:59 +0000 (13:11 +0200)
committerStricted <info@nexus-irc.de>
Fri, 12 Apr 2013 13:01:53 +0000 (15:01 +0200)
gitweb.css
index.cgi

index f8c24f0a33145b830b0f776b3d3332b7b304856b..76948d9e2952b543602a30469c7ddcaee871d4fe 100644 (file)
@@ -335,6 +335,13 @@ border: 1px solid White;
   border: 1px solid #bedce7;
   padding: 5px;
 }
+.log {
+  width: 99%;
+  margin: 0 auto 15px auto;
+  background: #eaf2f5;
+  border: 1px solid #bedce7;
+  padding: 5px;
+}
 
 .header .age {
   float: left;
@@ -386,7 +393,9 @@ border: 1px solid White;
 }
 
 .patch > .header {
-  width: 98.5%;
+  width: 99.3%;
+  padding: 5px;
+  margin: 0px;
 }
 
 /* Refs
@@ -451,44 +460,40 @@ div.diff.from_file a.path,
 div.diff.from_file {
        color: #000000;
 }
-div.diff.extended_header {
-       white-space: normal;
+div.diff.header {
+       margin-top: 4px;
+       border: solid #d9d8d1;
+       border-width: 1px 0px 1px 0px;
 }
 div.diff.extended_header,
 div.diff.extended_header a.path,
-div.diff.extended_header a.hash {
-       color: #777777;
-}
-
+div.diff.extended_header a.hash ,
 div.diff.extended_header .info {
+       white-space: normal;
        color: #b0b0b0;
-}
-
-div.diff.extended_header {
        background-color: #f6f5ee;
-       padding: 2px 0px 2px 0px;
 }
 
 /* Age
 ---------------------------------------------------------------------------- */
 
 /* noage: "No commits" */
-.project_list td.noage {
+.noage {
   color: #cdcdcd;
 }
 
 /* age2: 60*60*24*2 <= age */
-.project_list td.age2, .blame td.age2 {
+.age2 {
   color: #545454;
 }
 
 /* age1: 60*60*2 <= age < 60*60*24*2 */
-.project_list td.age1 {
+.age1 {
   color: #009900;
 }
 
 /* age0: age < 60*60*2 */
-.project_list td.age0 {
+.age0 {
   color: #009900;
   font-weight: bold;
 }
index 480818d8b8ca2e9afaf55382a01710de60db4f3b..505299ef2b4137d812f88d162fad1a5097d1524c 100644 (file)
--- a/index.cgi
+++ b/index.cgi
@@ -3878,7 +3878,9 @@ sub git_print_log {
                        $signoff = 1;
                        $empty = 0;
                        if (! $opts{'-remove_signoff'}) {
+                               print "<div class=\"log\">\n";
                                print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
+                               print "</div>\n";
                                next;
                        } else {
                                # remove signoff lines
@@ -3899,7 +3901,6 @@ sub git_print_log {
 
                print format_log_line_html($line) . "<br/>\n";
        }
-
        if ($opts{'-final_empty_line'}) {
                # end with single empty line
                print "<br/>\n" unless $empty;
@@ -4100,11 +4101,11 @@ sub git_difftree_body {
        my ($difftree, $hash, @parents) = @_;
        my ($parent) = $parents[0];
        my $have_blame = gitweb_check_feature('blame');
-       print "<div class=\"list_head\">\n";
        if ($#{$difftree} > 10) {
+               print "<div class=\"list_head\">\n";
                print(($#{$difftree} + 1) . " files changed:\n");
+               print "</div>\n";
        }
-       print "</div>\n";
 
        print "<table class=\"" .
              (@parents > 1 ? "combined " : "") .
@@ -4810,7 +4811,7 @@ sub git_shortlog_body {
 
                print "<td><img class=\"graph\" src=\"git_graph.php?r=".$graph_rand.";p=".$project.";h=".$graph_hash.";from=".($from + (100 * $page)).";to=".($to + (100 * $page)).";c=".$commit."\" /></td>";
                # git_summary() used print "<td><i>$co{'age_string'}</i></td>\n" .
-               print "<td title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
+               print "<td class=\"". age_class($co{'age'}) . "\" title=\"$co{'age_string_age'}\"><i>$co{'age_string_date'}</i></td>\n" .
                      format_author_html('td', \%co, 10) . "<td>";
                print format_subject_html($co{'title'}, $co{'title_short'},
                                          href(action=>"commit", hash=>$commit), $ref);