History

Change global document layout

Use a document-wide table for the main layout

Lars Hjemli committed 19 years ago

Commit 8596cda1 parent 4a9dea52 files · +16 −12Browse files

Unified · Split

2 files
  1. cgit.css +13 −10
  2. ui-shared.c +3 −2
cgit.css+13−10
@@ -3,7 +3,7 @@ body { · 2 unmodified lines
33 font-size: normal;
44 background: white;
55 padding: 0em;
6− margin: 0.5em 1em;
6+ margin: 0em;
77 }
88
99
@@ -48,30 +48,33 @@ table.list td { · 38 unmodified lines
4848 img {
4949 border: none;
5050 }
51−
52−div#header {
51+table#layout {
52+ width: 100%;
53+ border-collapse: collapse;
54+ margin: 0px;
55+}
56+td#header {
5357 background-color: #ddd;
5458 padding: 0.25em 0.25em 0.25em 0.5em;
5559 font-size: 150%;
5660 font-weight: bold;
57− border: solid 1px #aaa;
61+ border-bottom: solid 1px #aaa;
5862 vertical-align: middle;
59− margin-bottom: 2em;
6063 }
61−div#header img#logo {
64+td#header img#logo {
6265 float: right;
6366 }
6467
65−div#header input {
68+td#header input {
6669 float: right;
6770 margin: 0.25em 1em;
6871 }
69−div#header a {
72+td#header a {
7073 color: black;
7174 }
7275
73−div#content {
74− margin: 0.5em 0.5em;
76+td#content {
77+ padding: 1em 0.5em;
7578 }
7679
7780 div#blob {
ui-shared.c+3−2
@@ -107,12 +107,13 @@ void cgit_print_docstart(char *title, struct cacheitem *item) · 106 unmodified lines
107107
108108 void cgit_print_docend()
109109 {
110+ html("</td></tr></table>");
110111 html("</body>\n</html>\n");
111112 }
112113
113114 void cgit_print_pageheader(char *title, int show_search)
114115 {
115− html("<div id='header'>");
116+ html("<table id='layout'><tr><td id='header'>");
116117 htmlf("<a href='%s'>", cgit_logo_link);
117118 htmlf("<img id='logo' src='%s'/>\n", cgit_logo);
118119 htmlf("</a>");
@@ -135,5 +136,5 @@ void cgit_print_pageheader(char *title, int show_search) · 16 unmodified lines
135136 html_txt(title);
136137 if (cgit_query_repo)
137138 html("</a>");
138− html("</div>");
139+ html("</td></tr><tr><td id='content'>");
139140 }