From 3ec5a030ed1cb1fc1955df1bf18a3d398f4e83f0 Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Mon, 21 Jan 2008 21:56:28 +0000 Subject: [PATCH] adjusting table css --- skins/default/css/webgit.css | 38 +++++++++++++++++++----------------- src/branch.c | 2 +- src/log.c | 2 +- src/object_tree.c | 2 +- src/tag.c | 2 +- 5 files changed, 24 insertions(+), 22 deletions(-) diff --git a/skins/default/css/webgit.css b/skins/default/css/webgit.css index 77834b7..a6c5544 100644 --- a/skins/default/css/webgit.css +++ b/skins/default/css/webgit.css @@ -55,23 +55,6 @@ a { padding: 5px; } -#summary { - background-color: #eee; - width: 100%; -} - -#summary th { - font-size: 80%; - text-align: left; -} - -#summary td { - font-size: 80%; - vertical-align: top; - border-style: solid; - border-width: 0px 0px 1px 0px; - border-color: #aaa; -} @@ -94,4 +77,23 @@ a { /* ids for specific actions */ #header-action { -} \ No newline at end of file +} + +#summary, #branch-context, #log, #tag, #object-tree { + background-color: #eee; + width: 100%; +} + +#summary th, #branch-context th { + font-size: 80%; + text-align: left; +} + +#summary td, #branch-context td { + font-size: 80%; + vertical-align: top; + border-style: solid; + border-width: 0px 0px 1px 0px; + border-color: #aaa; +} + diff --git a/src/branch.c b/src/branch.c index 3a7366e..318566e 100644 --- a/src/branch.c +++ b/src/branch.c @@ -157,5 +157,5 @@ webgit_branch_table (struct webgit_repo_info* repo, const char* head, int count) for_each_branch_ref (show_branch_ref, &ctx); - return html (html ( html_tag ("table"), ctx.table), ctx.cont); + return html (html ( html_tag ("table", html_attr ("id", "branch-context"), ctx.table), ctx.cont); } diff --git a/src/log.c b/src/log.c index e285047..27d8759 100644 --- a/src/log.c +++ b/src/log.c @@ -186,7 +186,7 @@ webgit_log_table (struct webgit_query* query, const char* object, int count, int commit->parents = NULL; } - return html (html ( html_tag ("table"), table), cont); + return html (html ( html_tag ("table", html_attr ("id", "log")), table), cont); } diff --git a/src/object_tree.c b/src/object_tree.c index 808daba..a14c51e 100644 --- a/src/object_tree.c +++ b/src/object_tree.c @@ -152,7 +152,7 @@ webgit_object_tree_content_action (struct webgit_repo_info* repo, unsigned char* read_tree_recursive (tree, repo->query->path, repo->query->path ? strlen (repo->query->path) : 0, 0, NULL, webgit_html_tree); - return html (html_tag ("table"), tree_in_flight); + return html (html_tag ("table", html_attr ("id", "object-tree")), tree_in_flight); } Html diff --git a/src/tag.c b/src/tag.c index 107f527..5989897 100644 --- a/src/tag.c +++ b/src/tag.c @@ -175,5 +175,5 @@ webgit_tag_table (struct webgit_repo_info* repo, const char* head, int count) for_each_tag_ref (show_tag_ref, &ctx); - return html (html (html_tag ("table"), ctx.table), ctx.cont); + return html (html (html_tag ("table", html_attr ("id", "tag")), ctx.table), ctx.cont); } -- 2.20.1