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