summaryrefslogtreecommitdiffabout
authorLars Hjemli <larsh@slaptop.hjemli.net>2007-01-27 23:39:26 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-01-27 23:52:41 (UTC)
commit777faf7e509e1de2b795b2a326ff00c9bd799104 (patch) (side-by-side diff)
treeccb440445caf46cbfa3d4bd21d743697f37a9876
parent447025f62ccbbb6e038d42009368e28f3e162460 (diff)
downloadcgit-777faf7e509e1de2b795b2a326ff00c9bd799104.zip
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.gz
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.bz2
Cleanup table listings
Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css10
-rw-r--r--ui-log.c2
-rw-r--r--ui-repolist.c2
-rw-r--r--ui-summary.c4
-rw-r--r--ui-tree.c2
-rw-r--r--ui-view.c2
6 files changed, 9 insertions, 13 deletions
diff --git a/cgit.css b/cgit.css
index d94b1b7..d2c0d0b 100644
--- a/cgit.css
+++ b/cgit.css
@@ -25,5 +25,4 @@ a:hover {
table.list {
- border: solid 1px black;
+ border: none;
border-collapse: collapse;
- border: solid 1px #aaa;
}
@@ -33,3 +32,3 @@ table.list tr {
table.list tr:hover {
- background: #eeb;
+ background: #eee;
}
@@ -40,5 +39,3 @@ 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;
@@ -54,3 +51,2 @@ img {
-
div#header {
diff --git a/ui-log.c b/ui-log.c
index c353b2a..725f49b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -58,3 +58,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep)
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>"
diff --git a/ui-repolist.c b/ui-repolist.c
index 9f12b18..bd4af59 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -30,3 +30,3 @@ void cgit_print_repolist(struct cacheitem *item)
html("<table class='list nowrap'>");
- html("<tr>"
+ html("<tr class='nohover'>"
"<th class='left'>Name</th>"
diff --git a/ui-summary.c b/ui-summary.c
index 1591632..04d4912 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -98,3 +98,3 @@ 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>"
@@ -107,3 +107,3 @@ 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>"
diff --git a/ui-tree.c b/ui-tree.c
index ed9f05e..1d07e70 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -71,3 +71,3 @@ void cgit_print_tree(const char *hex, char *path)
html("<table class='list'>\n");
- html("<tr>");
+ html("<tr class='nohover'>");
html("<th class='left'>Mode</th>");
diff --git a/ui-view.c b/ui-view.c
index b75ce9a..07cd8be 100644
--- a/ui-view.c
+++ b/ui-view.c
@@ -36,3 +36,3 @@ void cgit_print_view(const char *hex)
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");