summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css23
-rw-r--r--ui-shared.c5
2 files changed, 16 insertions, 12 deletions
diff --git a/cgit.css b/cgit.css
index d2c0d0b..63acd78 100644
--- a/cgit.css
+++ b/cgit.css
@@ -4,5 +4,5 @@ body {
4 background: white; 4 background: white;
5 padding: 0em; 5 padding: 0em;
6 margin: 0.5em 1em; 6 margin: 0em;
7} 7}
8 8
@@ -49,28 +49,31 @@ img {
49 border: none; 49 border: none;
50} 50}
51 51table#layout {
52div#header { 52 width: 100%;
53 border-collapse: collapse;
54 margin: 0px;
55}
56td#header {
53 background-color: #ddd; 57 background-color: #ddd;
54 padding: 0.25em 0.25em 0.25em 0.5em; 58 padding: 0.25em 0.25em 0.25em 0.5em;
55 font-size: 150%; 59 font-size: 150%;
56 font-weight: bold; 60 font-weight: bold;
57 border: solid 1px #aaa; 61 border-bottom: solid 1px #aaa;
58 vertical-align: middle; 62 vertical-align: middle;
59 margin-bottom: 2em;
60} 63}
61div#header img#logo { 64td#header img#logo {
62 float: right; 65 float: right;
63} 66}
64 67
65div#header input { 68td#header input {
66 float: right; 69 float: right;
67 margin: 0.25em 1em; 70 margin: 0.25em 1em;
68} 71}
69div#header a { 72td#header a {
70 color: black; 73 color: black;
71} 74}
72 75
73div#content { 76td#content {
74 margin: 0.5em 0.5em; 77 padding: 1em 0.5em;
75} 78}
76 79
diff --git a/ui-shared.c b/ui-shared.c
index bebd3e0..6300516 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -108,4 +108,5 @@ void cgit_print_docstart(char *title, struct cacheitem *item)
108void cgit_print_docend() 108void cgit_print_docend()
109{ 109{
110 html("</td></tr></table>");
110 html("</body>\n</html>\n"); 111 html("</body>\n</html>\n");
111} 112}
@@ -113,5 +114,5 @@ void cgit_print_docend()
113void cgit_print_pageheader(char *title, int show_search) 114void cgit_print_pageheader(char *title, int show_search)
114{ 115{
115 html("<div id='header'>"); 116 html("<table id='layout'><tr><td id='header'>");
116 htmlf("<a href='%s'>", cgit_logo_link); 117 htmlf("<a href='%s'>", cgit_logo_link);
117 htmlf("<img id='logo' src='%s'/>\n", cgit_logo); 118 htmlf("<img id='logo' src='%s'/>\n", cgit_logo);
@@ -136,4 +137,4 @@ void cgit_print_pageheader(char *title, int show_search)
136 if (cgit_query_repo) 137 if (cgit_query_repo)
137 html("</a>"); 138 html("</a>");
138 html("</div>"); 139 html("</td></tr><tr><td id='content'>");
139} 140}