diff options
| -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
| @@ -23,24 +23,21 @@ a:hover { | |||
| 23 | } | 23 | } |
| 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 { |
| 31 | background: white; | 30 | background: white; |
| 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 { |
| 37 | background: white; | 36 | background: white; |
| 38 | } | 37 | } |
| 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; |
| 46 | } | 43 | } |
| @@ -52,7 +49,6 @@ img { | |||
| 52 | border: none; | 49 | border: none; |
| 53 | } | 50 | } |
| 54 | 51 | ||
| 55 | |||
| 56 | div#header { | 52 | div#header { |
| 57 | background-color: #ddd; | 53 | background-color: #ddd; |
| 58 | padding: 0.25em 0.25em 0.25em 0.5em; | 54 | padding: 0.25em 0.25em 0.25em 0.5em; |
| @@ -56,7 +56,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) | |||
| 56 | 56 | ||
| 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"); |
| 62 | 62 | ||
diff --git a/ui-repolist.c b/ui-repolist.c index 9f12b18..bd4af59 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
| @@ -28,7 +28,7 @@ void cgit_print_repolist(struct cacheitem *item) | |||
| 28 | 28 | ||
| 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>" |
| 34 | "<th class='left'>Owner</th></tr>\n"); | 34 | "<th class='left'>Owner</th></tr>\n"); |
diff --git a/ui-summary.c b/ui-summary.c index 1591632..04d4912 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
| @@ -96,7 +96,7 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1, | |||
| 96 | 96 | ||
| 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>" |
| 102 | "<th class='left'>Head commit</th></tr>\n"); | 102 | "<th class='left'>Head commit</th></tr>\n"); |
| @@ -105,7 +105,7 @@ static void cgit_print_branches() | |||
| 105 | 105 | ||
| 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>" |
| 111 | "<th class='left'>Reference</th></tr>\n"); | 111 | "<th class='left'>Reference</th></tr>\n"); |
| @@ -69,7 +69,7 @@ void cgit_print_tree(const char *hex, char *path) | |||
| 69 | html("<h2>Tree content</h2>\n"); | 69 | html("<h2>Tree content</h2>\n"); |
| 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>"); |
| 75 | html("<th class='right'>Size</th>"); | 75 | html("<th class='right'>Size</th>"); |
| @@ -34,7 +34,7 @@ void cgit_print_view(const char *hex) | |||
| 34 | buf[size] = '\0'; | 34 | buf[size] = '\0'; |
| 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); |
| 40 | html("\n</td></tr>\n"); | 40 | html("\n</td></tr>\n"); |
