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