author | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 18:32:08 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 18:32:08 (UTC) |
commit | 16a3d2779ccd56bf7954d98da547247d8796544b (patch) (unidiff) | |
tree | 86d2ed41adc3de842c7518d614ea49ca0200e4d2 /cgit.css | |
parent | f69250358a74efa5d7d9c562b2cdd80fad1430f1 (diff) | |
parent | 103940fe6b0914dc42b8b033d1d328f38135ca5f (diff) | |
download | cgit-16a3d2779ccd56bf7954d98da547247d8796544b.zip cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.gz cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.bz2 |
Merge branch 'lh/menu'
* lh/menu:
Add ofs argument to cgit_log_link and use it in ui-log.c
Add trim_end() and use it to remove trailing slashes from repo paths
Do not include current path in the "tree" menu link
Add setting to enable/disable extra links on index page
Change S/L/T to summary/log/tree
Change "files" to "tree"
Include querystring as part of cached filename for repo summary page
Add more menuitems on repo pages
-rw-r--r-- | cgit.css | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,415 +1,426 @@ | |||
1 | body { | 1 | body { |
2 | font-family: arial, sans-serif; | 2 | font-family: arial, sans-serif; |
3 | font-size: 11pt; | 3 | font-size: 11pt; |
4 | color: black; | 4 | color: black; |
5 | background: white; | 5 | background: white; |
6 | } | 6 | } |
7 | 7 | ||
8 | body, table { | 8 | body, table { |
9 | padding: 0em; | 9 | padding: 0em; |
10 | margin: 0em; | 10 | margin: 0em; |
11 | } | 11 | } |
12 | 12 | ||
13 | table { | 13 | table { |
14 | border-collapse: collapse; | 14 | border-collapse: collapse; |
15 | } | 15 | } |
16 | 16 | ||
17 | h2 { | 17 | h2 { |
18 | font-size: 120%; | 18 | font-size: 120%; |
19 | font-weight: bold; | 19 | font-weight: bold; |
20 | margin-top: 0em; | 20 | margin-top: 0em; |
21 | margin-bottom: 0.25em; | 21 | margin-bottom: 0.25em; |
22 | } | 22 | } |
23 | 23 | ||
24 | h3 { | 24 | h3 { |
25 | margin-top: 0em; | 25 | margin-top: 0em; |
26 | font-size: 100%; | 26 | font-size: 100%; |
27 | font-weight: normal; | 27 | font-weight: normal; |
28 | } | 28 | } |
29 | 29 | ||
30 | h4 { | 30 | h4 { |
31 | margin-top: 1.5em; | 31 | margin-top: 1.5em; |
32 | margin-bottom: 0.1em; | 32 | margin-bottom: 0.1em; |
33 | font-size: 100%; | 33 | font-size: 100%; |
34 | font-weight: bold; | 34 | font-weight: bold; |
35 | } | 35 | } |
36 | 36 | ||
37 | a { | 37 | a { |
38 | color: blue; | 38 | color: blue; |
39 | text-decoration: none; | 39 | text-decoration: none; |
40 | } | 40 | } |
41 | 41 | ||
42 | a:hover { | 42 | a:hover { |
43 | text-decoration: underline; | 43 | text-decoration: underline; |
44 | } | 44 | } |
45 | 45 | ||
46 | table.list { | 46 | table.list { |
47 | border: none; | 47 | border: none; |
48 | border-collapse: collapse; | 48 | border-collapse: collapse; |
49 | } | 49 | } |
50 | 50 | ||
51 | table.list tr { | 51 | table.list tr { |
52 | background: white; | 52 | background: white; |
53 | } | 53 | } |
54 | 54 | ||
55 | table.list tr:hover { | 55 | table.list tr:hover { |
56 | background: #eee; | 56 | background: #eee; |
57 | } | 57 | } |
58 | 58 | ||
59 | table.list tr.nohover:hover { | 59 | table.list tr.nohover:hover { |
60 | background: white; | 60 | background: white; |
61 | } | 61 | } |
62 | 62 | ||
63 | table.list th { | 63 | table.list th { |
64 | font-weight: bold; | 64 | font-weight: bold; |
65 | border-bottom: solid 1px #777; | 65 | border-bottom: solid 1px #777; |
66 | padding: 0.1em 0.5em 0.1em 0.5em; | 66 | padding: 0.1em 0.5em 0.1em 0.5em; |
67 | vertical-align: baseline; | 67 | vertical-align: baseline; |
68 | } | 68 | } |
69 | 69 | ||
70 | table.list td { | 70 | table.list td { |
71 | border: none; | 71 | border: none; |
72 | padding: 0.1em 0.5em 0.1em 0.5em; | 72 | padding: 0.1em 0.5em 0.1em 0.5em; |
73 | } | 73 | } |
74 | 74 | ||
75 | img { | 75 | img { |
76 | border: none; | 76 | border: none; |
77 | } | 77 | } |
78 | 78 | ||
79 | table#layout { | 79 | table#layout { |
80 | width: 100%; | 80 | width: 100%; |
81 | border-collapse: collapse; | 81 | border-collapse: collapse; |
82 | margin: 0px; | 82 | margin: 0px; |
83 | } | 83 | } |
84 | 84 | ||
85 | td#header, td#logo { | 85 | td#header, td#logo { |
86 | color: #666; | 86 | color: #666; |
87 | background-color: #ddd; | 87 | background-color: #ddd; |
88 | border-bottom: solid 1px #000; | 88 | border-bottom: solid 1px #000; |
89 | } | 89 | } |
90 | 90 | ||
91 | td#header { | 91 | td#header { |
92 | font-size: 150%; | 92 | font-size: 150%; |
93 | font-weight: bold; | 93 | font-weight: bold; |
94 | padding: 0.2em 0.5em; | 94 | padding: 0.2em 0.5em; |
95 | vertical-align: text-bottom; | 95 | vertical-align: text-bottom; |
96 | } | 96 | } |
97 | 97 | ||
98 | td#header a { | ||
99 | color: #666; | ||
100 | } | ||
101 | |||
102 | td#header a:hoved { | ||
103 | text-decoration: underline; | ||
104 | } | ||
105 | |||
98 | td#logo { | 106 | td#logo { |
99 | text-align: right; | 107 | text-align: right; |
100 | vertical-align: middle; | 108 | vertical-align: middle; |
101 | padding-right: 0.5em; | 109 | padding-right: 0.5em; |
102 | } | 110 | } |
103 | 111 | ||
104 | td#crumb, td#search { | 112 | td#crumb, td#search { |
105 | color: #ccc; | 113 | color: #ccc; |
106 | border-top: solid 3px #555; | 114 | border-top: solid 3px #555; |
107 | background-color: #666; | 115 | background-color: #666; |
108 | border-bottom: solid 1px #333; | 116 | border-bottom: solid 1px #333; |
109 | padding: 2px 1em; | 117 | padding: 2px 1em; |
110 | } | 118 | } |
111 | 119 | ||
112 | td#crumb { | 120 | td#crumb { |
113 | font-weight: bold; | 121 | font-weight: bold; |
114 | } | 122 | } |
115 | 123 | ||
116 | td#crumb a { | 124 | td#crumb a { |
117 | color: #ccc; | 125 | color: #ccc; |
118 | background-color: #666; | 126 | background-color: #666; |
127 | padding: 0em 0.5em 0em 0.5em; | ||
119 | } | 128 | } |
120 | 129 | ||
121 | td#crumb a:hover { | 130 | td#crumb a:hover { |
122 | color: #eee; | 131 | color: #666; |
123 | background-color: #666; | 132 | background-color: #ccc; |
133 | text-decoration: none; | ||
124 | } | 134 | } |
125 | 135 | ||
126 | td#search { | 136 | td#search { |
127 | text-align: right; | 137 | text-align: right; |
128 | vertical-align: middle; | 138 | vertical-align: middle; |
129 | padding-right: 0.5em; | 139 | padding-right: 0.5em; |
130 | } | 140 | } |
131 | 141 | ||
132 | td#search form { | 142 | td#search form { |
133 | margin: 0px; | 143 | margin: 0px; |
134 | padding: 0px; | 144 | padding: 0px; |
135 | } | 145 | } |
136 | 146 | ||
137 | td#search input { | 147 | td#search input { |
138 | font-size: 9pt; | 148 | font-size: 9pt; |
139 | padding: 0px; | 149 | padding: 0px; |
140 | width: 10em; | 150 | width: 10em; |
141 | border: solid 1px #333; | 151 | border: solid 1px #333; |
142 | color: #333; | 152 | color: #333; |
143 | background-color: #fff; | 153 | background-color: #fff; |
144 | } | 154 | } |
145 | 155 | ||
146 | div#summary { | 156 | div#summary { |
147 | vertical-align: top; | 157 | vertical-align: top; |
148 | margin-bottom: 1em; | 158 | margin-bottom: 1em; |
149 | } | 159 | } |
150 | 160 | ||
151 | table#downloads { | 161 | table#downloads { |
152 | float: right; | 162 | float: right; |
153 | border-collapse: collapse; | 163 | border-collapse: collapse; |
154 | border: solid 1px #777; | 164 | border: solid 1px #777; |
155 | margin-left: 0.5em; | 165 | margin-left: 0.5em; |
156 | margin-bottom: 0.5em; | 166 | margin-bottom: 0.5em; |
157 | } | 167 | } |
158 | 168 | ||
159 | table#downloads th { | 169 | table#downloads th { |
160 | background-color: #ccc; | 170 | background-color: #ccc; |
161 | } | 171 | } |
162 | 172 | ||
163 | td#content { | 173 | td#content { |
164 | padding: 1em 0.5em; | 174 | padding: 1em 0.5em; |
165 | } | 175 | } |
166 | 176 | ||
167 | div#blob { | 177 | div#blob { |
168 | border: solid 1px black; | 178 | border: solid 1px black; |
169 | } | 179 | } |
170 | 180 | ||
171 | div.error { | 181 | div.error { |
172 | color: red; | 182 | color: red; |
173 | font-weight: bold; | 183 | font-weight: bold; |
174 | margin: 1em 2em; | 184 | margin: 1em 2em; |
175 | } | 185 | } |
176 | 186 | ||
177 | a.ls-blob, a.ls-dir, a.ls-mod { | 187 | a.ls-blob, a.ls-dir, a.ls-mod { |
178 | font-family: monospace; | 188 | font-family: monospace; |
179 | } | 189 | } |
180 | 190 | ||
181 | td.ls-size { | 191 | td.ls-size { |
182 | text-align: right; | 192 | text-align: right; |
183 | } | 193 | } |
184 | 194 | ||
185 | td.ls-size { | 195 | td.ls-size { |
186 | font-family: monospace; | 196 | font-family: monospace; |
187 | } | 197 | } |
188 | 198 | ||
189 | td.ls-mode { | 199 | td.ls-mode { |
190 | font-family: monospace; | 200 | font-family: monospace; |
191 | } | 201 | } |
192 | 202 | ||
193 | table.blob { | 203 | table.blob { |
194 | margin-top: 0.5em; | 204 | margin-top: 0.5em; |
195 | border-top: solid 1px black; | 205 | border-top: solid 1px black; |
196 | } | 206 | } |
197 | 207 | ||
198 | table.blob td.no { | 208 | table.blob td.no { |
199 | border-right: solid 1px black; | 209 | border-right: solid 1px black; |
200 | color: black; | 210 | color: black; |
201 | background-color: #eee; | 211 | background-color: #eee; |
202 | text-align: right; | 212 | text-align: right; |
203 | } | 213 | } |
204 | 214 | ||
205 | table.blob td.txt { | 215 | table.blob td.txt { |
206 | white-space: pre; | 216 | white-space: pre; |
207 | font-family: monospace; | 217 | font-family: monospace; |
208 | padding-left: 0.5em; | 218 | padding-left: 0.5em; |
209 | } | 219 | } |
210 | 220 | ||
211 | table.nowrap td { | 221 | table.nowrap td { |
212 | white-space: nowrap; | 222 | white-space: nowrap; |
213 | } | 223 | } |
214 | 224 | ||
215 | table.commit-info { | 225 | table.commit-info { |
216 | border-collapse: collapse; | 226 | border-collapse: collapse; |
217 | margin-top: 1.5em; | 227 | margin-top: 1.5em; |
218 | } | 228 | } |
219 | 229 | ||
220 | table.commit-info th { | 230 | table.commit-info th { |
221 | text-align: left; | 231 | text-align: left; |
222 | font-weight: normal; | 232 | font-weight: normal; |
223 | padding: 0.1em 1em 0.1em 0.1em; | 233 | padding: 0.1em 1em 0.1em 0.1em; |
224 | } | 234 | } |
225 | 235 | ||
226 | table.commit-info td { | 236 | table.commit-info td { |
227 | font-weight: normal; | 237 | font-weight: normal; |
228 | padding: 0.1em 1em 0.1em 0.1em; | 238 | padding: 0.1em 1em 0.1em 0.1em; |
229 | } | 239 | } |
230 | 240 | ||
231 | div.commit-subject { | 241 | div.commit-subject { |
232 | font-weight: bold; | 242 | font-weight: bold; |
233 | font-size: 125%; | 243 | font-size: 125%; |
234 | margin: 1.5em 0em 0.5em 0em; | 244 | margin: 1.5em 0em 0.5em 0em; |
235 | padding: 0em; | 245 | padding: 0em; |
236 | } | 246 | } |
237 | 247 | ||
238 | div.commit-msg { | 248 | div.commit-msg { |
239 | white-space: pre; | 249 | white-space: pre; |
240 | font-family: monospace; | 250 | font-family: monospace; |
241 | } | 251 | } |
242 | 252 | ||
243 | div.diffstat-header { | 253 | div.diffstat-header { |
244 | font-weight: bold; | 254 | font-weight: bold; |
245 | padding-top: 1.5em; | 255 | padding-top: 1.5em; |
246 | } | 256 | } |
247 | 257 | ||
248 | table.diffstat { | 258 | table.diffstat { |
249 | border-collapse: collapse; | 259 | border-collapse: collapse; |
250 | width: 100%; | 260 | width: 100%; |
251 | border: solid 1px #aaa; | 261 | border: solid 1px #aaa; |
252 | background-color: #eee; | 262 | background-color: #eee; |
253 | } | 263 | } |
254 | 264 | ||
255 | table.diffstat tr:hover { | 265 | table.diffstat tr:hover { |
256 | background-color: #ccc; | 266 | background-color: #ccc; |
257 | } | 267 | } |
258 | 268 | ||
259 | table.diffstat th { | 269 | table.diffstat th { |
260 | font-weight: normal; | 270 | font-weight: normal; |
261 | text-align: left; | 271 | text-align: left; |
262 | text-decoration: underline; | 272 | text-decoration: underline; |
263 | padding: 0.1em 1em 0.1em 0.1em; | 273 | padding: 0.1em 1em 0.1em 0.1em; |
264 | font-size: 100%; | 274 | font-size: 100%; |
265 | } | 275 | } |
266 | 276 | ||
267 | table.diffstat td { | 277 | table.diffstat td { |
268 | padding: 0.2em 0.2em 0.1em 0.1em; | 278 | padding: 0.2em 0.2em 0.1em 0.1em; |
269 | font-size: 100%; | 279 | font-size: 100%; |
270 | border: none; | 280 | border: none; |
271 | } | 281 | } |
272 | 282 | ||
273 | table.diffstat td.mode { | 283 | table.diffstat td.mode { |
274 | white-space: nowrap; | 284 | white-space: nowrap; |
275 | } | 285 | } |
276 | 286 | ||
277 | table.diffstat td span.modechange { | 287 | table.diffstat td span.modechange { |
278 | padding-left: 1em; | 288 | padding-left: 1em; |
279 | color: red; | 289 | color: red; |
280 | } | 290 | } |
281 | 291 | ||
282 | table.diffstat td.add a { | 292 | table.diffstat td.add a { |
283 | color: green; | 293 | color: green; |
284 | } | 294 | } |
285 | 295 | ||
286 | table.diffstat td.del a { | 296 | table.diffstat td.del a { |
287 | color: red; | 297 | color: red; |
288 | } | 298 | } |
289 | 299 | ||
290 | table.diffstat td.upd a { | 300 | table.diffstat td.upd a { |
291 | color: blue; | 301 | color: blue; |
292 | } | 302 | } |
293 | 303 | ||
294 | table.diffstat td.graph { | 304 | table.diffstat td.graph { |
295 | width: 75%; | 305 | width: 75%; |
296 | vertical-align: middle; | 306 | vertical-align: middle; |
297 | } | 307 | } |
298 | 308 | ||
299 | table.diffstat td.graph table { | 309 | table.diffstat td.graph table { |
300 | border: none; | 310 | border: none; |
301 | } | 311 | } |
302 | 312 | ||
303 | table.diffstat td.graph td { | 313 | table.diffstat td.graph td { |
304 | padding: 0px; | 314 | padding: 0px; |
305 | border: 0px; | 315 | border: 0px; |
306 | height: 7pt; | 316 | height: 7pt; |
307 | } | 317 | } |
308 | 318 | ||
309 | table.diffstat td.graph td.add { | 319 | table.diffstat td.graph td.add { |
310 | background-color: #5c5; | 320 | background-color: #5c5; |
311 | } | 321 | } |
312 | 322 | ||
313 | table.diffstat td.graph td.rem { | 323 | table.diffstat td.graph td.rem { |
314 | background-color: #c55; | 324 | background-color: #c55; |
315 | } | 325 | } |
316 | 326 | ||
317 | div.diffstat-summary { | 327 | div.diffstat-summary { |
318 | color: #888; | 328 | color: #888; |
319 | padding-top: 0.5em; | 329 | padding-top: 0.5em; |
320 | } | 330 | } |
321 | 331 | ||
322 | table.diff td { | 332 | table.diff td { |
323 | font-family: monospace; | 333 | font-family: monospace; |
324 | white-space: pre; | 334 | white-space: pre; |
325 | } | 335 | } |
326 | 336 | ||
327 | table.diff td div.head { | 337 | table.diff td div.head { |
328 | font-weight: bold; | 338 | font-weight: bold; |
329 | padding-top: 1em; | 339 | padding-top: 1em; |
330 | } | 340 | } |
331 | 341 | ||
332 | table.diff td div.hunk { | 342 | table.diff td div.hunk { |
333 | color: #009; | 343 | color: #009; |
334 | } | 344 | } |
335 | 345 | ||
336 | table.diff td div.add { | 346 | table.diff td div.add { |
337 | color: green; | 347 | color: green; |
338 | } | 348 | } |
339 | 349 | ||
340 | table.diff td div.del { | 350 | table.diff td div.del { |
341 | color: red; | 351 | color: red; |
342 | } | 352 | } |
343 | 353 | ||
344 | .sha1 { | 354 | .sha1 { |
345 | font-family: monospace; | 355 | font-family: monospace; |
346 | font-size: 90%; | 356 | font-size: 90%; |
347 | } | 357 | } |
348 | 358 | ||
349 | .left { | 359 | .left { |
350 | text-align: left; | 360 | text-align: left; |
351 | } | 361 | } |
352 | 362 | ||
353 | .right { | 363 | .right { |
354 | text-align: right; | 364 | text-align: right; |
355 | } | 365 | } |
356 | 366 | ||
357 | table.list td.repogroup { | 367 | table.list td.repogroup { |
358 | font-style: italic; | 368 | font-style: italic; |
359 | color: #888; | 369 | color: #888; |
360 | } | 370 | } |
361 | 371 | ||
362 | a.button { | 372 | a.button { |
363 | font-size: 80%; | 373 | font-size: 80%; |
364 | color: #333; | 374 | color: #aaa; |
365 | background-color: #ccc; | 375 | background-color: #eee; |
366 | border: solid 1px #999; | 376 | border: solid 1px #aaa; |
367 | padding: 0em 0.5em; | 377 | padding: 0em 0.5em; |
368 | margin: 0.1em 0.25em; | 378 | margin: 0.1em 0.25em; |
369 | } | 379 | } |
370 | 380 | ||
371 | a.button:hover { | 381 | a.button:hover { |
372 | text-decoration: none; | 382 | text-decoration: none; |
373 | background-color: #eee; | 383 | color: #333; |
384 | background-color: #ccc; | ||
374 | } | 385 | } |
375 | 386 | ||
376 | a.primary { | 387 | a.primary { |
377 | font-size: 100%; | 388 | font-size: 100%; |
378 | } | 389 | } |
379 | 390 | ||
380 | a.secondary { | 391 | a.secondary { |
381 | font-size: 90%; | 392 | font-size: 90%; |
382 | } | 393 | } |
383 | 394 | ||
384 | td.toplevel-repo { | 395 | td.toplevel-repo { |
385 | 396 | ||
386 | } | 397 | } |
387 | 398 | ||
388 | table.list td.sublevel-repo { | 399 | table.list td.sublevel-repo { |
389 | padding-left: 1.5em; | 400 | padding-left: 1.5em; |
390 | } | 401 | } |
391 | 402 | ||
392 | span.age-mins { | 403 | span.age-mins { |
393 | font-weight: bold; | 404 | font-weight: bold; |
394 | color: #080; | 405 | color: #080; |
395 | } | 406 | } |
396 | 407 | ||
397 | span.age-hours { | 408 | span.age-hours { |
398 | color: #080; | 409 | color: #080; |
399 | } | 410 | } |
400 | 411 | ||
401 | span.age-days { | 412 | span.age-days { |
402 | color: #040; | 413 | color: #040; |
403 | } | 414 | } |
404 | 415 | ||
405 | span.age-weeks { | 416 | span.age-weeks { |
406 | color: #444; | 417 | color: #444; |
407 | } | 418 | } |
408 | 419 | ||
409 | span.age-months { | 420 | span.age-months { |
410 | color: #888; | 421 | color: #888; |
411 | } | 422 | } |
412 | 423 | ||
413 | span.age-years { | 424 | span.age-years { |
414 | color: #bbb; | 425 | color: #bbb; |
415 | } | 426 | } |