author | Lars 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) |
commit | 777faf7e509e1de2b795b2a326ff00c9bd799104 (patch) (side-by-side diff) | |
tree | ccb440445caf46cbfa3d4bd21d743697f37a9876 | |
parent | 447025f62ccbbb6e038d42009368e28f3e162460 (diff) | |
download | cgit-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>
-rw-r--r-- | cgit.css | 10 | ||||
-rw-r--r-- | ui-log.c | 2 | ||||
-rw-r--r-- | ui-repolist.c | 2 | ||||
-rw-r--r-- | ui-summary.c | 4 | ||||
-rw-r--r-- | ui-tree.c | 2 | ||||
-rw-r--r-- | ui-view.c | 2 |
6 files changed, 9 insertions, 13 deletions
@@ -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 { @@ -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>" @@ -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>"); @@ -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"); |