summaryrefslogtreecommitdiffabout
path: root/cgit.css
authorLars Hjemli <hjemli@gmail.com>2008-05-03 10:44:20 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-05-04 15:30:02 (UTC)
commit17890d0058c1555133c8767ceb123e809e6971ab (patch) (unidiff)
treee20eac18444fd75f6e25f03b6622245ca848d0d6 /cgit.css
parentaa3c4486b41b8b13d0f52477f033837fc8bb9524 (diff)
downloadcgit-17890d0058c1555133c8767ceb123e809e6971ab.zip
cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar.gz
cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar.bz2
Add link to index page from repo header, remove page name
This makes it more obvious how to get back to the index, especially when the config option `logo-link` is used. And the page name displayed in the header provided no extra information. It only consumed space and deserved to die. While at it, make sure that the different parts of the header doesn't wrap when horizontal space is limited. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index fac5f85..a37d218 100644
--- a/cgit.css
+++ b/cgit.css
@@ -1,350 +1,353 @@
1body, table, form { 1body, table, form {
2 padding: 0em; 2 padding: 0em;
3 margin: 0em; 3 margin: 0em;
4} 4}
5 5
6body { 6body {
7 font-family: sans-serif; 7 font-family: sans-serif;
8 font-size: 10pt; 8 font-size: 10pt;
9 color: #333; 9 color: #333;
10 background: white; 10 background: white;
11 padding: 4px; 11 padding: 4px;
12} 12}
13 13
14a { 14a {
15 color: blue; 15 color: blue;
16 text-decoration: none; 16 text-decoration: none;
17} 17}
18 18
19a:hover { 19a:hover {
20 text-decoration: underline; 20 text-decoration: underline;
21} 21}
22 22
23table { 23table {
24 border-collapse: collapse; 24 border-collapse: collapse;
25} 25}
26 26
27table#header { 27table#header {
28 width: 100%; 28 width: 100%;
29 margin-bottom: 1em; 29 margin-bottom: 1em;
30} 30}
31 31
32table#header td.logo { 32table#header td.logo {
33 width: 96px; 33 width: 96px;
34} 34}
35 35
36table#header td.main { 36table#header td.main {
37 font-size: 250%; 37 font-size: 250%;
38 padding-left: 10px; 38 padding-left: 10px;
39 white-space: nowrap;
39} 40}
40 41
41table#header td.main a { 42table#header td.main a {
42 color: #000; 43 color: #000;
43} 44}
44 45
45table#header td.form { 46table#header td.form {
46 text-align: right; 47 text-align: right;
47 vertical-align: bottom; 48 vertical-align: bottom;
48 padding-right: 1em; 49 padding-right: 1em;
49 padding-bottom: 2px; 50 padding-bottom: 2px;
51 white-space: nowrap;
50} 52}
51 53
52table#header td.form form, 54table#header td.form form,
53table#header td.form input, 55table#header td.form input,
54table#header td.form select { 56table#header td.form select {
55 font-size: 90%; 57 font-size: 90%;
56} 58}
57 59
58table#header td.sub { 60table#header td.sub {
59 color: #777; 61 color: #777;
60 border-top: solid 1px #ccc; 62 border-top: solid 1px #ccc;
61 padding-left: 10px; 63 padding-left: 10px;
62} 64}
63 65
64table.tabs { 66table.tabs {
65 /* border-bottom: solid 2px #ccc; */ 67 /* border-bottom: solid 2px #ccc; */
66 border-collapse: collapse; 68 border-collapse: collapse;
67 margin-top: 2em; 69 margin-top: 2em;
68 margin-bottom: 0px; 70 margin-bottom: 0px;
69 width: 100%; 71 width: 100%;
70} 72}
71 73
72table.tabs td { 74table.tabs td {
73 padding: 0px 1em; 75 padding: 0px 1em;
74 vertical-align: bottom; 76 vertical-align: bottom;
75} 77}
76 78
77table.tabs td a { 79table.tabs td a {
78 padding: 2px 0.75em; 80 padding: 2px 0.75em;
79 color: #777; 81 color: #777;
80 font-size: 110%; 82 font-size: 110%;
81} 83}
82 84
83table.tabs td a.active { 85table.tabs td a.active {
84 color: #000; 86 color: #000;
85 background-color: #ccc; 87 background-color: #ccc;
86} 88}
87 89
88table.tabs td.form { 90table.tabs td.form {
89 text-align: right; 91 text-align: right;
90} 92}
91 93
92table.tabs td.form form { 94table.tabs td.form form {
93 padding-bottom: 2px; 95 padding-bottom: 2px;
94 font-size: 90%; 96 font-size: 90%;
97 white-space: nowrap;
95} 98}
96 99
97table.tabs td.form input, 100table.tabs td.form input,
98table.tabs td.form select { 101table.tabs td.form select {
99 font-size: 90%; 102 font-size: 90%;
100} 103}
101 104
102div.content { 105div.content {
103 margin: 0px; 106 margin: 0px;
104 padding: 2em; 107 padding: 2em;
105 border-top: solid 3px #ccc; 108 border-top: solid 3px #ccc;
106 border-bottom: solid 3px #ccc; 109 border-bottom: solid 3px #ccc;
107} 110}
108 111
109 112
110table.list { 113table.list {
111 width: 100%; 114 width: 100%;
112 border: none; 115 border: none;
113 border-collapse: collapse; 116 border-collapse: collapse;
114} 117}
115 118
116table.list tr { 119table.list tr {
117 background: white; 120 background: white;
118} 121}
119 122
120table.list tr:hover { 123table.list tr:hover {
121 background: #eee; 124 background: #eee;
122} 125}
123 126
124table.list tr.nohover:hover { 127table.list tr.nohover:hover {
125 background: white; 128 background: white;
126} 129}
127 130
128table.list th { 131table.list th {
129 font-weight: bold; 132 font-weight: bold;
130 /* color: #888; 133 /* color: #888;
131 border-top: dashed 1px #888; 134 border-top: dashed 1px #888;
132 border-bottom: dashed 1px #888; 135 border-bottom: dashed 1px #888;
133 */ 136 */
134 padding: 0.1em 0.5em 0.05em 0.5em; 137 padding: 0.1em 0.5em 0.05em 0.5em;
135 vertical-align: baseline; 138 vertical-align: baseline;
136} 139}
137 140
138table.list td { 141table.list td {
139 border: none; 142 border: none;
140 padding: 0.1em 0.5em 0.1em 0.5em; 143 padding: 0.1em 0.5em 0.1em 0.5em;
141} 144}
142 145
143table.list td a { 146table.list td a {
144 color: black; 147 color: black;
145} 148}
146 149
147table.list td a:hover { 150table.list td a:hover {
148 color: #00f; 151 color: #00f;
149} 152}
150 153
151img { 154img {
152 border: none; 155 border: none;
153} 156}
154 157
155input#switch-btn { 158input#switch-btn {
156 margin: 2px 0px 0px 0px; 159 margin: 2px 0px 0px 0px;
157} 160}
158 161
159td#sidebar input.txt { 162td#sidebar input.txt {
160 width: 100%; 163 width: 100%;
161 margin: 2px 0px 0px 0px; 164 margin: 2px 0px 0px 0px;
162} 165}
163 166
164table#grid { 167table#grid {
165 margin: 0px; 168 margin: 0px;
166} 169}
167 170
168td#content { 171td#content {
169 vertical-align: top; 172 vertical-align: top;
170 padding: 1em 2em 1em 1em; 173 padding: 1em 2em 1em 1em;
171 border: none; 174 border: none;
172} 175}
173 176
174div#summary { 177div#summary {
175 vertical-align: top; 178 vertical-align: top;
176 margin-bottom: 1em; 179 margin-bottom: 1em;
177} 180}
178 181
179table#downloads { 182table#downloads {
180 float: right; 183 float: right;
181 border-collapse: collapse; 184 border-collapse: collapse;
182 border: solid 1px #777; 185 border: solid 1px #777;
183 margin-left: 0.5em; 186 margin-left: 0.5em;
184 margin-bottom: 0.5em; 187 margin-bottom: 0.5em;
185} 188}
186 189
187table#downloads th { 190table#downloads th {
188 background-color: #ccc; 191 background-color: #ccc;
189} 192}
190 193
191div#blob { 194div#blob {
192 border: solid 1px black; 195 border: solid 1px black;
193} 196}
194 197
195div.error { 198div.error {
196 color: red; 199 color: red;
197 font-weight: bold; 200 font-weight: bold;
198 margin: 1em 2em; 201 margin: 1em 2em;
199} 202}
200 203
201a.ls-blob, a.ls-dir, a.ls-mod { 204a.ls-blob, a.ls-dir, a.ls-mod {
202 font-family: monospace; 205 font-family: monospace;
203} 206}
204 207
205td.ls-size { 208td.ls-size {
206 text-align: right; 209 text-align: right;
207 font-family: monospace; 210 font-family: monospace;
208 width: 10em; 211 width: 10em;
209} 212}
210 213
211td.ls-mode { 214td.ls-mode {
212 font-family: monospace; 215 font-family: monospace;
213 width: 10em; 216 width: 10em;
214} 217}
215 218
216table.blob { 219table.blob {
217 margin-top: 0.5em; 220 margin-top: 0.5em;
218 border-top: solid 1px black; 221 border-top: solid 1px black;
219} 222}
220 223
221table.blob td.no { 224table.blob td.no {
222 border-right: solid 1px black; 225 border-right: solid 1px black;
223 color: black; 226 color: black;
224 background-color: #eee; 227 background-color: #eee;
225 text-align: right; 228 text-align: right;
226} 229}
227 230
228table.blob td.no a { 231table.blob td.no a {
229 color: black; 232 color: black;
230} 233}
231 234
232table.blob td.no a:hover { 235table.blob td.no a:hover {
233 color: black; 236 color: black;
234 text-decoration: none; 237 text-decoration: none;
235} 238}
236 239
237table.blob td.txt { 240table.blob td.txt {
238 white-space: pre; 241 white-space: pre;
239 font-family: monospace; 242 font-family: monospace;
240 padding-left: 0.5em; 243 padding-left: 0.5em;
241} 244}
242 245
243table.nowrap td { 246table.nowrap td {
244 white-space: nowrap; 247 white-space: nowrap;
245} 248}
246 249
247table.commit-info { 250table.commit-info {
248 border-collapse: collapse; 251 border-collapse: collapse;
249 margin-top: 1.5em; 252 margin-top: 1.5em;
250} 253}
251 254
252table.commit-info th { 255table.commit-info th {
253 text-align: left; 256 text-align: left;
254 font-weight: normal; 257 font-weight: normal;
255 padding: 0.1em 1em 0.1em 0.1em; 258 padding: 0.1em 1em 0.1em 0.1em;
256 vertical-align: top; 259 vertical-align: top;
257} 260}
258 261
259table.commit-info td { 262table.commit-info td {
260 font-weight: normal; 263 font-weight: normal;
261 padding: 0.1em 1em 0.1em 0.1em; 264 padding: 0.1em 1em 0.1em 0.1em;
262} 265}
263 266
264div.commit-subject { 267div.commit-subject {
265 font-weight: bold; 268 font-weight: bold;
266 font-size: 125%; 269 font-size: 125%;
267 margin: 1.5em 0em 0.5em 0em; 270 margin: 1.5em 0em 0.5em 0em;
268 padding: 0em; 271 padding: 0em;
269} 272}
270 273
271div.commit-msg { 274div.commit-msg {
272 white-space: pre; 275 white-space: pre;
273 font-family: monospace; 276 font-family: monospace;
274} 277}
275 278
276div.diffstat-header { 279div.diffstat-header {
277 font-weight: bold; 280 font-weight: bold;
278 padding-top: 1.5em; 281 padding-top: 1.5em;
279} 282}
280 283
281table.diffstat { 284table.diffstat {
282 border-collapse: collapse; 285 border-collapse: collapse;
283 border: solid 1px #aaa; 286 border: solid 1px #aaa;
284 background-color: #eee; 287 background-color: #eee;
285} 288}
286 289
287table.diffstat th { 290table.diffstat th {
288 font-weight: normal; 291 font-weight: normal;
289 text-align: left; 292 text-align: left;
290 text-decoration: underline; 293 text-decoration: underline;
291 padding: 0.1em 1em 0.1em 0.1em; 294 padding: 0.1em 1em 0.1em 0.1em;
292 font-size: 100%; 295 font-size: 100%;
293} 296}
294 297
295table.diffstat td { 298table.diffstat td {
296 padding: 0.2em 0.2em 0.1em 0.1em; 299 padding: 0.2em 0.2em 0.1em 0.1em;
297 font-size: 100%; 300 font-size: 100%;
298 border: none; 301 border: none;
299} 302}
300 303
301table.diffstat td.mode { 304table.diffstat td.mode {
302 white-space: nowrap; 305 white-space: nowrap;
303} 306}
304 307
305table.diffstat td span.modechange { 308table.diffstat td span.modechange {
306 padding-left: 1em; 309 padding-left: 1em;
307 color: red; 310 color: red;
308} 311}
309 312
310table.diffstat td.add a { 313table.diffstat td.add a {
311 color: green; 314 color: green;
312} 315}
313 316
314table.diffstat td.del a { 317table.diffstat td.del a {
315 color: red; 318 color: red;
316} 319}
317 320
318table.diffstat td.upd a { 321table.diffstat td.upd a {
319 color: blue; 322 color: blue;
320} 323}
321 324
322table.diffstat td.graph { 325table.diffstat td.graph {
323 width: 500px; 326 width: 500px;
324 vertical-align: middle; 327 vertical-align: middle;
325} 328}
326 329
327table.diffstat td.graph table { 330table.diffstat td.graph table {
328 border: none; 331 border: none;
329} 332}
330 333
331table.diffstat td.graph td { 334table.diffstat td.graph td {
332 padding: 0px; 335 padding: 0px;
333 border: 0px; 336 border: 0px;
334 height: 7pt; 337 height: 7pt;
335} 338}
336 339
337table.diffstat td.graph td.add { 340table.diffstat td.graph td.add {
338 background-color: #5c5; 341 background-color: #5c5;
339} 342}
340 343
341table.diffstat td.graph td.rem { 344table.diffstat td.graph td.rem {
342 background-color: #c55; 345 background-color: #c55;
343} 346}
344 347
345div.diffstat-summary { 348div.diffstat-summary {
346 color: #888; 349 color: #888;
347 padding-top: 0.5em; 350 padding-top: 0.5em;
348} 351}
349 352
350table.diff { 353table.diff {