-rw-r--r-- | cgit.css | 49 | ||||
-rw-r--r-- | ui-shared.c | 22 |
2 files changed, 41 insertions, 30 deletions
@@ -10,3 +10,3 @@ body { | |||
10 | background: white; | 10 | background: white; |
11 | padding-left: 4px; | 11 | padding: 4px; |
12 | } | 12 | } |
@@ -80,3 +80,9 @@ img { | |||
80 | 80 | ||
81 | div#sidebar { | 81 | table#layout { |
82 | border-collapse: collapse; | ||
83 | border: none; | ||
84 | margin: 0px; | ||
85 | } | ||
86 | |||
87 | td#sidebar { | ||
82 | vertical-align: top; | 88 | vertical-align: top; |
@@ -84,11 +90,15 @@ div#sidebar { | |||
84 | padding: 0px 0px 0px 0px; | 90 | padding: 0px 0px 0px 0px; |
85 | margin: 4px; | 91 | margin: 0px; |
86 | float: left; | ||
87 | } | 92 | } |
88 | 93 | ||
89 | div#logo { | 94 | td#sidebar table { |
95 | border-collapse: separate; | ||
96 | border-spacing: 0px; | ||
90 | margin: 0px; | 97 | margin: 0px; |
91 | padding: 4px 0px 4px 0px; | 98 | padding: 0px; |
92 | text-align: center; | ||
93 | background-color: #ccc; | 99 | background-color: #ccc; |
100 | } | ||
101 | |||
102 | td#sidebar table.sidebar td.sidebar { | ||
103 | padding: 4px; | ||
94 | border-top: solid 1px #eee; | 104 | border-top: solid 1px #eee; |
@@ -99,6 +109,6 @@ div#logo { | |||
99 | 109 | ||
100 | div#sidebar div.infobox { | 110 | div#logo { |
101 | margin: 0px 0px 0px 0px; | 111 | margin: 0px; |
102 | padding: 0.5em; | 112 | padding: 4px 0px 4px 0px; |
103 | text-align: left; | 113 | text-align: center; |
104 | background-color: #ccc; | 114 | background-color: #ccc; |
@@ -110,3 +120,3 @@ div#sidebar div.infobox { | |||
110 | 120 | ||
111 | div#sidebar div.infobox h1 { | 121 | td#sidebar h1 { |
112 | font-size: 10pt; | 122 | font-size: 10pt; |
@@ -116,3 +126,3 @@ div#sidebar div.infobox h1 { | |||
116 | 126 | ||
117 | div#sidebar div.infobox h1.first { | 127 | td#sidebar h1.first { |
118 | margin-top: 0px; | 128 | margin-top: 0px; |
@@ -120,3 +130,3 @@ div#sidebar div.infobox h1.first { | |||
120 | 130 | ||
121 | div#sidebar div.infobox a.menu { | 131 | td#sidebar a.menu { |
122 | display: block; | 132 | display: block; |
@@ -127,3 +137,3 @@ div#sidebar div.infobox a.menu { | |||
127 | 137 | ||
128 | div#sidebar div.infobox a.menu:hover { | 138 | td#sidebar a.menu:hover { |
129 | background-color: #bbb; | 139 | background-color: #bbb; |
@@ -132,3 +142,3 @@ div#sidebar div.infobox a.menu:hover { | |||
132 | 142 | ||
133 | div#sidebar div.infobox select { | 143 | td#sidebar select { |
134 | width: 100%; | 144 | width: 100%; |
@@ -137,4 +147,4 @@ div#sidebar div.infobox select { | |||
137 | 147 | ||
138 | td#branch-dropdown-cell { | 148 | td#sidebar form { |
139 | width: 99%; | 149 | text-align: right; |
140 | } | 150 | } |
@@ -142,3 +152,2 @@ td#branch-dropdown-cell { | |||
142 | input#switch-btn { | 152 | input#switch-btn { |
143 | width: 20px; | ||
144 | margin: 2px 0px 0px 0px; | 153 | margin: 2px 0px 0px 0px; |
@@ -146,3 +155,3 @@ input#switch-btn { | |||
146 | 155 | ||
147 | div#sidebar div.infobox input.txt { | 156 | td#sidebar input.txt { |
148 | width: 100%; | 157 | width: 100%; |
diff --git a/ui-shared.c b/ui-shared.c index 2f771da..4c0613a 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -459,8 +459,10 @@ void cgit_print_pageheader(char *title, int show_search) | |||
459 | 459 | ||
460 | html("<div id='sidebar'>\n"); | 460 | html("<table id='layout' summary=''>\n"); |
461 | html("<div id='logo'><a href='"); | 461 | html("<tr><td id='sidebar'>\n"); |
462 | html("<table class='sidebar' summary=''>\n"); | ||
463 | html("<tr><td class='sidebar'>\n<a href='"); | ||
462 | html_attr(cgit_rooturl()); | 464 | html_attr(cgit_rooturl()); |
463 | htmlf("'><img src='%s' alt='cgit'/></a></div>\n", | 465 | htmlf("'><img src='%s' alt='cgit'/></a>\n", |
464 | cgit_logo); | 466 | cgit_logo); |
465 | html("<div class='infobox'>"); | 467 | html("</td></tr>\n<tr><td class='sidebar'>\n"); |
466 | if (cgit_query_repo) { | 468 | if (cgit_query_repo) { |
@@ -491,3 +493,3 @@ void cgit_print_pageheader(char *title, int show_search) | |||
491 | add_hidden_formfields(0, 1, cgit_query_page); | 493 | add_hidden_formfields(0, 1, cgit_query_page); |
492 | html("<table summary='branch selector' class='grid'><tr><td id='branch-dropdown-cell'>"); | 494 | // html("<table summary='branch selector' class='grid'><tr><td id='branch-dropdown-cell'>"); |
493 | html("<select name='h' onchange='this.form.submit();'>\n"); | 495 | html("<select name='h' onchange='this.form.submit();'>\n"); |
@@ -495,5 +497,5 @@ void cgit_print_pageheader(char *title, int show_search) | |||
495 | html("</select>\n"); | 497 | html("</select>\n"); |
496 | html("</td><td>"); | 498 | // html("</td><td>"); |
497 | html("<noscript><input type='submit' id='switch-btn' value='..'/></noscript>\n"); | 499 | html("<noscript><input type='submit' id='switch-btn' value='switch'/></noscript>\n"); |
498 | html("</td></tr></table>"); | 500 | // html("</td></tr></table>"); |
499 | html("</form>\n"); | 501 | html("</form>\n"); |
@@ -521,5 +523,5 @@ void cgit_print_pageheader(char *title, int show_search) | |||
521 | 523 | ||
522 | html("</div>\n"); | 524 | html("</td></tr></table></td>\n"); |
523 | 525 | ||
524 | html("</div>\n<table summary='page content' class='grid'><tr><td id='content'>\n"); | 526 | html("<td id='content'>\n"); |
525 | } | 527 | } |