diff options
-rw-r--r-- | cgit.css | 23 | ||||
-rw-r--r-- | ui-shared.c | 5 |
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 | |||
@@ -3,7 +3,7 @@ body { | |||
3 | font-size: normal; | 3 | font-size: normal; |
4 | background: white; | 4 | background: white; |
5 | padding: 0em; | 5 | padding: 0em; |
6 | margin: 0.5em 1em; | 6 | margin: 0em; |
7 | } | 7 | } |
8 | 8 | ||
9 | 9 | ||
@@ -48,30 +48,33 @@ table.list td { | |||
48 | img { | 48 | img { |
49 | border: none; | 49 | border: none; |
50 | } | 50 | } |
51 | 51 | table#layout { | |
52 | div#header { | 52 | width: 100%; |
53 | border-collapse: collapse; | ||
54 | margin: 0px; | ||
55 | } | ||
56 | td#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 | } |
61 | div#header img#logo { | 64 | td#header img#logo { |
62 | float: right; | 65 | float: right; |
63 | } | 66 | } |
64 | 67 | ||
65 | div#header input { | 68 | td#header input { |
66 | float: right; | 69 | float: right; |
67 | margin: 0.25em 1em; | 70 | margin: 0.25em 1em; |
68 | } | 71 | } |
69 | div#header a { | 72 | td#header a { |
70 | color: black; | 73 | color: black; |
71 | } | 74 | } |
72 | 75 | ||
73 | div#content { | 76 | td#content { |
74 | margin: 0.5em 0.5em; | 77 | padding: 1em 0.5em; |
75 | } | 78 | } |
76 | 79 | ||
77 | div#blob { | 80 | div#blob { |
diff --git a/ui-shared.c b/ui-shared.c index bebd3e0..6300516 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -107,12 +107,13 @@ void cgit_print_docstart(char *title, struct cacheitem *item) | |||
107 | 107 | ||
108 | void cgit_print_docend() | 108 | void cgit_print_docend() |
109 | { | 109 | { |
110 | html("</td></tr></table>"); | ||
110 | html("</body>\n</html>\n"); | 111 | html("</body>\n</html>\n"); |
111 | } | 112 | } |
112 | 113 | ||
113 | void cgit_print_pageheader(char *title, int show_search) | 114 | void 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); |
118 | htmlf("</a>"); | 119 | htmlf("</a>"); |
@@ -135,5 +136,5 @@ void cgit_print_pageheader(char *title, int show_search) | |||
135 | html_txt(title); | 136 | html_txt(title); |
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 | } |