]> gitweb.ps.run Git - ps-cgit/blob - cgit.css
Use tables for page layout
[ps-cgit] / cgit.css
1 body, table {
2         padding: 0em;
3         margin: 0em;
4 }
5
6 body {
7         font-family: sans;
8         font-size: 10pt;
9         color: #333;
10         background: white;
11         padding: 4px;
12 }
13
14 table {
15       border-collapse: collapse;
16 }
17
18 h2 {
19         font-size: 120%;
20         font-weight: bold;
21         margin-top: 0em;
22         margin-bottom: 0.25em;
23 }
24
25 h3 {
26         margin-top: 0em;
27         font-size: 100%;
28         font-weight: normal;
29 }
30
31 h4 {
32         margin-top: 1.5em;
33         margin-bottom: 0.1em;
34         font-size: 100%;
35         font-weight: bold;
36 }
37
38 a {
39         color: #600;
40         text-decoration: none;
41 }
42
43 a:hover {
44         background-color: #ddd;
45         text-decoration: none;
46 }
47
48 table.list {
49         border: none;
50         border-collapse: collapse;
51 }
52
53 table.list tr {
54         background: white;
55 }
56
57 table.list tr:hover {
58         background: #f8f8f8;
59 }
60
61 table.list tr.nohover:hover {
62         background: white;
63 }
64
65 table.list th {
66         font-weight: bold;
67         border-bottom: solid 1px #777;
68         padding: 0.1em 0.5em 0.1em 0.5em;
69         vertical-align: baseline;
70 }
71
72 table.list td {
73         border: none;
74         padding: 0.1em 0.5em 0.1em 0.5em;
75 }
76
77 img {
78         border: none;
79 }
80
81 table#layout {
82         border-collapse: collapse;
83         border: none;
84         margin: 0px;
85 }
86
87 td#sidebar {
88         vertical-align: top;
89         width: 162px;
90         padding: 0px 0px 0px 0px;
91         margin: 0px;
92 }
93
94 td#sidebar table {
95         border-collapse: separate;
96         border-spacing: 0px;
97         margin: 0px;
98         padding: 0px;
99         background-color: #ccc;
100 }
101
102 td#sidebar table.sidebar td.sidebar {
103         padding: 4px;
104         border-top: solid 1px #eee;
105         border-left: solid 1px #eee;
106         border-right: solid 1px #aaa;
107         border-bottom: solid 1px #aaa;
108 }
109
110 div#logo {
111         margin: 0px;
112         padding: 4px 0px 4px 0px;
113         text-align: center;
114         background-color: #ccc;
115         border-top: solid 1px #eee;
116         border-left: solid 1px #eee;
117         border-right: solid 1px #aaa;
118         border-bottom: solid 1px #aaa;
119 }
120
121 td#sidebar h1 {
122         font-size: 10pt;
123         font-weight: bold;
124         margin: 8px 0px 0px 0px;
125 }
126
127 td#sidebar h1.first {
128         margin-top: 0px;
129 }
130
131 td#sidebar a.menu {
132         display: block;
133         background-color: #ccc;
134         padding: 0.1em 0.5em;
135         text-decoration: none;
136 }
137
138 td#sidebar a.menu:hover {
139         background-color: #bbb;
140         text-decoration: none;
141 }
142
143 td#sidebar select {
144         width: 100%;
145         margin: 2px 0px 0px 0px;
146 }
147
148 td#sidebar form {
149         text-align: right;
150 }
151
152 input#switch-btn {
153         margin: 2px 0px 0px 0px;
154 }
155
156 td#sidebar input.txt {
157         width: 100%;
158         margin: 2px 0px 0px 0px;
159 }
160
161 table#grid {
162         margin: 0px;
163 }
164
165 td#content {
166         vertical-align: top;
167         padding: 1em 2em 1em 1em;
168         border: none;
169 }
170
171 div#summary {
172         vertical-align: top;
173         margin-bottom: 1em;
174 }
175
176 table#downloads {
177         float: right;
178         border-collapse: collapse;
179         border: solid 1px #777;
180         margin-left: 0.5em;
181         margin-bottom: 0.5em;
182 }
183
184 table#downloads th {
185         background-color: #ccc;
186 }
187
188 div#blob {
189         border: solid 1px black;
190 }
191
192 div.error {
193         color: red;
194         font-weight: bold;
195         margin: 1em 2em;
196 }
197
198 a.ls-blob, a.ls-dir, a.ls-mod {
199         font-family: monospace;
200 }
201
202 td.ls-size {
203         text-align: right;
204 }
205
206 td.ls-size {
207         font-family: monospace;
208 }
209
210 td.ls-mode {
211         font-family: monospace;
212 }
213
214 table.blob {
215         margin-top: 0.5em;
216         border-top: solid 1px black;
217 }
218
219 table.blob td.no {
220         border-right: solid 1px black;
221         color: black;
222         background-color: #eee;
223         text-align: right;
224 }
225
226 table.blob td.no a {
227         color: black;
228 }
229
230 table.blob td.no a:hover {
231         color: black;
232         text-decoration: none;
233 }
234
235 table.blob td.txt {
236         white-space: pre;
237         font-family: monospace;
238         padding-left: 0.5em;
239 }
240
241 table.nowrap td {
242         white-space: nowrap;
243 }
244
245 table.commit-info {
246         border-collapse: collapse;
247         margin-top: 1.5em;
248 }
249
250 table.commit-info th {
251         text-align: left;
252         font-weight: normal;
253         padding: 0.1em 1em 0.1em 0.1em;
254         vertical-align: top;
255 }
256
257 table.commit-info td {
258         font-weight: normal;
259         padding: 0.1em 1em 0.1em 0.1em;
260 }
261
262 div.commit-subject {
263         font-weight: bold;
264         font-size: 125%;
265         margin: 1.5em 0em 0.5em 0em;
266         padding: 0em;
267 }
268
269 div.commit-msg {
270         white-space: pre;
271         font-family: monospace;
272 }
273
274 div.diffstat-header {
275         font-weight: bold;
276         padding-top: 1.5em;
277 }
278
279 table.diffstat {
280         border-collapse: collapse;
281         border: solid 1px #aaa;
282         background-color: #eee;
283 }
284
285 table.diffstat th {
286         font-weight: normal;
287         text-align: left;
288         text-decoration: underline;
289         padding: 0.1em 1em 0.1em 0.1em;
290         font-size: 100%;
291 }
292
293 table.diffstat td {
294         padding: 0.2em 0.2em 0.1em 0.1em;
295         font-size: 100%;
296         border: none;
297 }
298
299 table.diffstat td.mode {
300         white-space: nowrap;
301 }
302
303 table.diffstat td span.modechange {
304         padding-left: 1em;
305         color: red;
306 }
307
308 table.diffstat td.add a {
309         color: green;
310 }
311
312 table.diffstat td.del a {
313         color: red;
314 }
315
316 table.diffstat td.upd a {
317         color: blue;
318 }
319
320 table.diffstat td.graph {
321         width: 500px;
322         vertical-align: middle;
323 }
324
325 table.diffstat td.graph table {
326         border: none;
327 }
328
329 table.diffstat td.graph td {
330         padding: 0px;
331         border: 0px;
332         height: 7pt;
333 }
334
335 table.diffstat td.graph td.add {
336         background-color: #5c5;
337 }
338
339 table.diffstat td.graph td.rem {
340         background-color: #c55;
341 }
342
343 div.diffstat-summary {
344         color: #888;
345         padding-top: 0.5em;
346 }
347
348 table.diff {
349         width: 100%;
350 }
351
352 table.diff td {
353         font-family: monospace;
354         white-space: pre;
355 }
356
357 table.diff td div.head {
358         font-weight: bold;
359         margin-top: 1em;
360         background-color: #eee;
361 }
362
363 table.diff td div.hunk {
364         color: #009;
365 }
366
367 table.diff td div.add {
368         color: green;
369 }
370
371 table.diff td div.del {
372         color: red;
373 }
374
375 .sha1 {
376         font-family: monospace;
377         font-size: 90%;
378 }
379
380 .left {
381         text-align: left;
382 }
383
384 .right {
385         text-align: right;
386 }
387
388 table.list td.repogroup {
389         font-style: italic;
390         color: #888;
391 }
392
393 a.button {
394         font-size: 80%;
395         color: #aaa;
396         background-color: #eee;
397         border: solid 1px #aaa;
398         padding: 0em 0.5em;
399         margin: 0.1em 0.25em;
400 }
401
402 a.button:hover {
403         text-decoration: none;
404         color: #333;
405         background-color: #ccc;
406 }
407
408 a.primary {
409         font-size: 100%;
410 }
411
412 a.secondary {
413         font-size: 90%;
414 }
415
416 td.toplevel-repo {
417
418 }
419
420 table.list td.sublevel-repo {
421         padding-left: 1.5em;
422 }
423
424 span.age-mins {
425         font-weight: bold;
426         color: #080;
427 }
428
429 span.age-hours {
430         color: #080;
431 }
432
433 span.age-days {
434         color: #040;
435 }
436
437 span.age-weeks {
438         color: #444;
439 }
440
441 span.age-months {
442         color: #888;
443 }
444
445 span.age-years {
446         color: #bbb;
447 }