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) (unidiff) | |
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
@@ -24,7 +24,6 @@ a:hover { | |||
24 | 24 | ||
25 | table.list { | 25 | table.list { |
26 | border: solid 1px black; | 26 | border: none; |
27 | border-collapse: collapse; | 27 | border-collapse: collapse; |
28 | border: solid 1px #aaa; | ||
29 | } | 28 | } |
30 | table.list tr { | 29 | table.list tr { |
@@ -32,5 +31,5 @@ table.list tr { | |||
32 | } | 31 | } |
33 | table.list tr:hover { | 32 | table.list tr:hover { |
34 | background: #eeb; | 33 | background: #eee; |
35 | } | 34 | } |
36 | table.list tr.nohover:hover { | 35 | table.list tr.nohover:hover { |
@@ -39,7 +38,5 @@ table.list tr.nohover:hover { | |||
39 | table.list th { | 38 | table.list th { |
40 | font-weight: normal; | 39 | font-weight: normal; |
41 | background: #ddd; | 40 | border-bottom: solid 1px #777; |
42 | border-top: solid 1px #aaa; | ||
43 | border-bottom: solid 1px #aaa; | ||
44 | padding: 0.1em 0.5em 0.1em 0.5em; | 41 | padding: 0.1em 0.5em 0.1em 0.5em; |
45 | vertical-align: baseline; | 42 | vertical-align: baseline; |
@@ -53,5 +50,4 @@ img { | |||
53 | } | 50 | } |
54 | 51 | ||
55 | |||
56 | div#header { | 52 | div#header { |
57 | background-color: #ddd; | 53 | background-color: #ddd; |
@@ -57,5 +57,5 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) | |||
57 | html("<h2>Log</h2>"); | 57 | html("<h2>Log</h2>"); |
58 | html("<table class='list nowrap'>"); | 58 | html("<table class='list nowrap'>"); |
59 | html("<tr><th class='left'>Date</th>" | 59 | html("<tr class='nohover'><th class='left'>Date</th>" |
60 | "<th class='left'>Message</th>" | 60 | "<th class='left'>Message</th>" |
61 | "<th class='left'>Author</th></tr>\n"); | 61 | "<th class='left'>Author</th></tr>\n"); |
diff --git a/ui-repolist.c b/ui-repolist.c index 9f12b18..bd4af59 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -29,5 +29,5 @@ void cgit_print_repolist(struct cacheitem *item) | |||
29 | html("<h2>Repositories</h2>\n"); | 29 | html("<h2>Repositories</h2>\n"); |
30 | html("<table class='list nowrap'>"); | 30 | html("<table class='list nowrap'>"); |
31 | html("<tr>" | 31 | html("<tr class='nohover'>" |
32 | "<th class='left'>Name</th>" | 32 | "<th class='left'>Name</th>" |
33 | "<th class='left'>Description</th>" | 33 | "<th class='left'>Description</th>" |
diff --git a/ui-summary.c b/ui-summary.c index 1591632..04d4912 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -97,5 +97,5 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1, | |||
97 | static void cgit_print_branches() | 97 | static void cgit_print_branches() |
98 | { | 98 | { |
99 | html("<tr><th class='left'>Branch</th>" | 99 | html("<tr class='nohover'><th class='left'>Branch</th>" |
100 | "<th class='left'>Updated</th>" | 100 | "<th class='left'>Updated</th>" |
101 | "<th class='left'>Author</th>" | 101 | "<th class='left'>Author</th>" |
@@ -106,5 +106,5 @@ static void cgit_print_branches() | |||
106 | static void cgit_print_tags() | 106 | static void cgit_print_tags() |
107 | { | 107 | { |
108 | html("<tr><th class='left'>Tag</th>" | 108 | html("<tr class='nohover'><th class='left'>Tag</th>" |
109 | "<th class='left'>Created</th>" | 109 | "<th class='left'>Created</th>" |
110 | "<th class='left'>Author</th>" | 110 | "<th class='left'>Author</th>" |
@@ -70,5 +70,5 @@ void cgit_print_tree(const char *hex, char *path) | |||
70 | html_txt(path); | 70 | html_txt(path); |
71 | html("<table class='list'>\n"); | 71 | html("<table class='list'>\n"); |
72 | html("<tr>"); | 72 | html("<tr class='nohover'>"); |
73 | html("<th class='left'>Mode</th>"); | 73 | html("<th class='left'>Mode</th>"); |
74 | html("<th class='left'>Name</th>"); | 74 | html("<th class='left'>Name</th>"); |
@@ -35,5 +35,5 @@ void cgit_print_view(const char *hex) | |||
35 | html("<h2>Object content</h2>\n"); | 35 | html("<h2>Object content</h2>\n"); |
36 | html("<table class='list'>\n"); | 36 | html("<table class='list'>\n"); |
37 | htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size); | 37 | htmlf("<tr class='nohover'><th class='left'>%s %s, %li bytes</th></tr>\n", type, hex, size); |
38 | html("<tr><td class='blob'>\n"); | 38 | html("<tr><td class='blob'>\n"); |
39 | html_txt(buf); | 39 | html_txt(buf); |