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
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 { · 38 unmodified lines
48img {48img {
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
77div#blob {80div#blob {
ui-shared.c+3−2
@@ -107,12 +107,13 @@ void cgit_print_docstart(char *title, struct cacheitem *item) · 106 unmodified lines
107 107
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}
112 113
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);
118 htmlf("</a>");119 htmlf("</a>");
@@ -135,5 +136,5 @@ void cgit_print_pageheader(char *title, int show_search) · 16 unmodified lines
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}