cgit

commit 777faf7e509e1de2b795b2a326ff00c9bd799104

Author: Lars Hjemli <larsh@slaptop.hjemli.net>

Cleanup table listings

Make the output for <table class='list'> a bit nicer

Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>

 cgit.css | 10 +++-------
 ui-log.c | 2 +-
 ui-repolist.c | 2 +-
 ui-summary.c | 4 ++--
 ui-tree.c | 2 +-
 ui-view.c | 2 +-


diff --git a/cgit.css b/cgit.css
index d94b1b7b95a6b1fc00a1a85dbbaab21c3e267d6d..d2c0d0b7b2990c5265c765bfc22b305c55cd595c 100644
--- a/cgit.css
+++ b/cgit.css
@@ -23,24 +23,21 @@ 	text-decoration: underline;
 }
 
 table.list {
-	border: solid 1px black;
+	border: none;
 	border-collapse: collapse;
-	border: solid 1px #aaa;
 }
 table.list tr {
 	background: white;
 }
 table.list tr:hover {
-	background: #eeb;
+	background: #eee;
 }
 table.list tr.nohover:hover {
 	background: white;
 }
 table.list th {
 	font-weight: normal;
-	background: #ddd;
-	border-top: solid 1px #aaa;
-	border-bottom: solid 1px #aaa;
+	border-bottom: solid 1px #777;
 	padding: 0.1em 0.5em 0.1em 0.5em;
 	vertical-align: baseline;
 }
@@ -51,7 +48,6 @@ }
 img {
 	border: none;
 }
-
 
 div#header {
 	background-color: #ddd;




diff --git a/ui-log.c b/ui-log.c
index c353b2ae6e82587bb535f836cea850a6c00306c8..725f49be55bb2eb313e859a4d9f30c555826d047 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -56,7 +56,7 @@ 	prepare_revision_walk(&rev);
 
 	html("<h2>Log</h2>");
 	html("<table class='list nowrap'>");
-	html("<tr><th class='left'>Date</th>"
+	html("<tr class='nohover'><th class='left'>Date</th>"
 	     "<th class='left'>Message</th>"
 	     "<th class='left'>Author</th></tr>\n");
 




diff --git a/ui-repolist.c b/ui-repolist.c
index 9f12b181b1982126ef8f72f3a971d96d646d565d..bd4af595eb5006980637f5962285aa85c4ec1113 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -28,7 +28,7 @@ 	}
 
 	html("<h2>Repositories</h2>\n");
 	html("<table class='list nowrap'>");
-	html("<tr>"
+	html("<tr class='nohover'>"
 	     "<th class='left'>Name</th>"
 	     "<th class='left'>Description</th>"
 	     "<th class='left'>Owner</th></tr>\n");




diff --git a/ui-summary.c b/ui-summary.c
index 159163285f22b09446e383bf4782acf23474ead7..04d491269e305c01563b051553e350c9aca0367b 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -96,7 +96,7 @@ }
 
 static void cgit_print_branches()
 {
-	html("<tr><th class='left'>Branch</th>"
+	html("<tr class='nohover'><th class='left'>Branch</th>"
 	     "<th class='left'>Updated</th>"
 	     "<th class='left'>Author</th>"
 	     "<th class='left'>Head commit</th></tr>\n");
@@ -105,7 +105,7 @@ }
 
 static void cgit_print_tags()
 {
-	html("<tr><th class='left'>Tag</th>"
+	html("<tr class='nohover'><th class='left'>Tag</th>"
 	     "<th class='left'>Created</th>"
 	     "<th class='left'>Author</th>"
 	     "<th class='left'>Reference</th></tr>\n");




diff --git a/ui-tree.c b/ui-tree.c
index ed9f05ea9cddf12df55228be316cd8d0b02510d7..1d07e7002297275680715042a1c5ba9eedecc0d4 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -69,7 +69,7 @@
 	html("<h2>Tree content</h2>\n");
 	html_txt(path);
 	html("<table class='list'>\n");
-	html("<tr>");
+	html("<tr class='nohover'>");
 	html("<th class='left'>Mode</th>");
 	html("<th class='left'>Name</th>");
 	html("<th class='right'>Size</th>");




diff --git a/ui-view.c b/ui-view.c
index b75ce9a4c619e25f5ee79395c556a84235cc6f12..07cd8beef4dfdc1df8e6f62ddeeabe20c06841a3 100644
--- a/ui-view.c
+++ b/ui-view.c
@@ -34,7 +34,7 @@
 	buf[size] = '\0';
 	html("<h2>Object content</h2>\n");
 	html("<table class='list'>\n");
-	htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size);
+	htmlf("<tr class='nohover'><th class='left'>%s %s, %li bytes</th></tr>\n", type, hex, size);
 	html("<tr><td class='blob'>\n");
 	html_txt(buf);
 	html("\n</td></tr>\n");