author | Lars Hjemli <hjemli@gmail.com> | 2007-10-01 10:41:29 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-10-01 10:41:29 (UTC) |
commit | 271829f269158c2ff818f72eb0c6f9de2a724126 (patch) (unidiff) | |
tree | 326d911b1c66c1460f335dafaadcdeef74409e70 | |
parent | e238ebe1874e07865b3f38fe8e256e91a6f734a4 (diff) | |
download | cgit-271829f269158c2ff818f72eb0c6f9de2a724126.zip cgit-271829f269158c2ff818f72eb0c6f9de2a724126.tar.gz cgit-271829f269158c2ff818f72eb0c6f9de2a724126.tar.bz2 |
cgit.css: make diff headers more visible
This modifies the background color of diff headers to make them easier to
spot.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -210,223 +210,228 @@ table.blob td.no { | |||
210 | color: black; | 210 | color: black; |
211 | background-color: #eee; | 211 | background-color: #eee; |
212 | text-align: right; | 212 | text-align: right; |
213 | } | 213 | } |
214 | 214 | ||
215 | table.blob td.no a { | 215 | table.blob td.no a { |
216 | color: black; | 216 | color: black; |
217 | } | 217 | } |
218 | 218 | ||
219 | table.blob td.no a:hover { | 219 | table.blob td.no a:hover { |
220 | color: black; | 220 | color: black; |
221 | text-decoration: none; | 221 | text-decoration: none; |
222 | } | 222 | } |
223 | 223 | ||
224 | table.blob td.txt { | 224 | table.blob td.txt { |
225 | white-space: pre; | 225 | white-space: pre; |
226 | font-family: monospace; | 226 | font-family: monospace; |
227 | padding-left: 0.5em; | 227 | padding-left: 0.5em; |
228 | } | 228 | } |
229 | 229 | ||
230 | table.nowrap td { | 230 | table.nowrap td { |
231 | white-space: nowrap; | 231 | white-space: nowrap; |
232 | } | 232 | } |
233 | 233 | ||
234 | table.commit-info { | 234 | table.commit-info { |
235 | border-collapse: collapse; | 235 | border-collapse: collapse; |
236 | margin-top: 1.5em; | 236 | margin-top: 1.5em; |
237 | } | 237 | } |
238 | 238 | ||
239 | table.commit-info th { | 239 | table.commit-info th { |
240 | text-align: left; | 240 | text-align: left; |
241 | font-weight: normal; | 241 | font-weight: normal; |
242 | padding: 0.1em 1em 0.1em 0.1em; | 242 | padding: 0.1em 1em 0.1em 0.1em; |
243 | vertical-align: top; | 243 | vertical-align: top; |
244 | } | 244 | } |
245 | 245 | ||
246 | table.commit-info td { | 246 | table.commit-info td { |
247 | font-weight: normal; | 247 | font-weight: normal; |
248 | padding: 0.1em 1em 0.1em 0.1em; | 248 | padding: 0.1em 1em 0.1em 0.1em; |
249 | } | 249 | } |
250 | 250 | ||
251 | div.commit-subject { | 251 | div.commit-subject { |
252 | font-weight: bold; | 252 | font-weight: bold; |
253 | font-size: 125%; | 253 | font-size: 125%; |
254 | margin: 1.5em 0em 0.5em 0em; | 254 | margin: 1.5em 0em 0.5em 0em; |
255 | padding: 0em; | 255 | padding: 0em; |
256 | } | 256 | } |
257 | 257 | ||
258 | div.commit-msg { | 258 | div.commit-msg { |
259 | white-space: pre; | 259 | white-space: pre; |
260 | font-family: monospace; | 260 | font-family: monospace; |
261 | } | 261 | } |
262 | 262 | ||
263 | div.diffstat-header { | 263 | div.diffstat-header { |
264 | font-weight: bold; | 264 | font-weight: bold; |
265 | padding-top: 1.5em; | 265 | padding-top: 1.5em; |
266 | } | 266 | } |
267 | 267 | ||
268 | table.diffstat { | 268 | table.diffstat { |
269 | border-collapse: collapse; | 269 | border-collapse: collapse; |
270 | width: 100%; | 270 | width: 100%; |
271 | border: solid 1px #aaa; | 271 | border: solid 1px #aaa; |
272 | background-color: #eee; | 272 | background-color: #eee; |
273 | } | 273 | } |
274 | 274 | ||
275 | table.diffstat th { | 275 | table.diffstat th { |
276 | font-weight: normal; | 276 | font-weight: normal; |
277 | text-align: left; | 277 | text-align: left; |
278 | text-decoration: underline; | 278 | text-decoration: underline; |
279 | padding: 0.1em 1em 0.1em 0.1em; | 279 | padding: 0.1em 1em 0.1em 0.1em; |
280 | font-size: 100%; | 280 | font-size: 100%; |
281 | } | 281 | } |
282 | 282 | ||
283 | table.diffstat td { | 283 | table.diffstat td { |
284 | padding: 0.2em 0.2em 0.1em 0.1em; | 284 | padding: 0.2em 0.2em 0.1em 0.1em; |
285 | font-size: 100%; | 285 | font-size: 100%; |
286 | border: none; | 286 | border: none; |
287 | } | 287 | } |
288 | 288 | ||
289 | table.diffstat td.mode { | 289 | table.diffstat td.mode { |
290 | white-space: nowrap; | 290 | white-space: nowrap; |
291 | } | 291 | } |
292 | 292 | ||
293 | table.diffstat td span.modechange { | 293 | table.diffstat td span.modechange { |
294 | padding-left: 1em; | 294 | padding-left: 1em; |
295 | color: red; | 295 | color: red; |
296 | } | 296 | } |
297 | 297 | ||
298 | table.diffstat td.add a { | 298 | table.diffstat td.add a { |
299 | color: green; | 299 | color: green; |
300 | } | 300 | } |
301 | 301 | ||
302 | table.diffstat td.del a { | 302 | table.diffstat td.del a { |
303 | color: red; | 303 | color: red; |
304 | } | 304 | } |
305 | 305 | ||
306 | table.diffstat td.upd a { | 306 | table.diffstat td.upd a { |
307 | color: blue; | 307 | color: blue; |
308 | } | 308 | } |
309 | 309 | ||
310 | table.diffstat td.graph { | 310 | table.diffstat td.graph { |
311 | width: 75%; | 311 | width: 75%; |
312 | vertical-align: middle; | 312 | vertical-align: middle; |
313 | } | 313 | } |
314 | 314 | ||
315 | table.diffstat td.graph table { | 315 | table.diffstat td.graph table { |
316 | border: none; | 316 | border: none; |
317 | } | 317 | } |
318 | 318 | ||
319 | table.diffstat td.graph td { | 319 | table.diffstat td.graph td { |
320 | padding: 0px; | 320 | padding: 0px; |
321 | border: 0px; | 321 | border: 0px; |
322 | height: 7pt; | 322 | height: 7pt; |
323 | } | 323 | } |
324 | 324 | ||
325 | table.diffstat td.graph td.add { | 325 | table.diffstat td.graph td.add { |
326 | background-color: #5c5; | 326 | background-color: #5c5; |
327 | } | 327 | } |
328 | 328 | ||
329 | table.diffstat td.graph td.rem { | 329 | table.diffstat td.graph td.rem { |
330 | background-color: #c55; | 330 | background-color: #c55; |
331 | } | 331 | } |
332 | 332 | ||
333 | div.diffstat-summary { | 333 | div.diffstat-summary { |
334 | color: #888; | 334 | color: #888; |
335 | padding-top: 0.5em; | 335 | padding-top: 0.5em; |
336 | } | 336 | } |
337 | 337 | ||
338 | table.diff { | ||
339 | width: 100%; | ||
340 | } | ||
341 | |||
338 | table.diff td { | 342 | table.diff td { |
339 | font-family: monospace; | 343 | font-family: monospace; |
340 | white-space: pre; | 344 | white-space: pre; |
341 | } | 345 | } |
342 | 346 | ||
343 | table.diff td div.head { | 347 | table.diff td div.head { |
344 | font-weight: bold; | 348 | font-weight: bold; |
345 | padding-top: 1em; | 349 | margin-top: 1em; |
350 | background-color: #eee; | ||
346 | } | 351 | } |
347 | 352 | ||
348 | table.diff td div.hunk { | 353 | table.diff td div.hunk { |
349 | color: #009; | 354 | color: #009; |
350 | } | 355 | } |
351 | 356 | ||
352 | table.diff td div.add { | 357 | table.diff td div.add { |
353 | color: green; | 358 | color: green; |
354 | } | 359 | } |
355 | 360 | ||
356 | table.diff td div.del { | 361 | table.diff td div.del { |
357 | color: red; | 362 | color: red; |
358 | } | 363 | } |
359 | 364 | ||
360 | .sha1 { | 365 | .sha1 { |
361 | font-family: monospace; | 366 | font-family: monospace; |
362 | font-size: 90%; | 367 | font-size: 90%; |
363 | } | 368 | } |
364 | 369 | ||
365 | .left { | 370 | .left { |
366 | text-align: left; | 371 | text-align: left; |
367 | } | 372 | } |
368 | 373 | ||
369 | .right { | 374 | .right { |
370 | text-align: right; | 375 | text-align: right; |
371 | } | 376 | } |
372 | 377 | ||
373 | table.list td.repogroup { | 378 | table.list td.repogroup { |
374 | font-style: italic; | 379 | font-style: italic; |
375 | color: #888; | 380 | color: #888; |
376 | } | 381 | } |
377 | 382 | ||
378 | a.button { | 383 | a.button { |
379 | font-size: 80%; | 384 | font-size: 80%; |
380 | color: #aaa; | 385 | color: #aaa; |
381 | background-color: #eee; | 386 | background-color: #eee; |
382 | border: solid 1px #aaa; | 387 | border: solid 1px #aaa; |
383 | padding: 0em 0.5em; | 388 | padding: 0em 0.5em; |
384 | margin: 0.1em 0.25em; | 389 | margin: 0.1em 0.25em; |
385 | } | 390 | } |
386 | 391 | ||
387 | a.button:hover { | 392 | a.button:hover { |
388 | text-decoration: none; | 393 | text-decoration: none; |
389 | color: #333; | 394 | color: #333; |
390 | background-color: #ccc; | 395 | background-color: #ccc; |
391 | } | 396 | } |
392 | 397 | ||
393 | a.primary { | 398 | a.primary { |
394 | font-size: 100%; | 399 | font-size: 100%; |
395 | } | 400 | } |
396 | 401 | ||
397 | a.secondary { | 402 | a.secondary { |
398 | font-size: 90%; | 403 | font-size: 90%; |
399 | } | 404 | } |
400 | 405 | ||
401 | td.toplevel-repo { | 406 | td.toplevel-repo { |
402 | 407 | ||
403 | } | 408 | } |
404 | 409 | ||
405 | table.list td.sublevel-repo { | 410 | table.list td.sublevel-repo { |
406 | padding-left: 1.5em; | 411 | padding-left: 1.5em; |
407 | } | 412 | } |
408 | 413 | ||
409 | span.age-mins { | 414 | span.age-mins { |
410 | font-weight: bold; | 415 | font-weight: bold; |
411 | color: #080; | 416 | color: #080; |
412 | } | 417 | } |
413 | 418 | ||
414 | span.age-hours { | 419 | span.age-hours { |
415 | color: #080; | 420 | color: #080; |
416 | } | 421 | } |
417 | 422 | ||
418 | span.age-days { | 423 | span.age-days { |
419 | color: #040; | 424 | color: #040; |
420 | } | 425 | } |
421 | 426 | ||
422 | span.age-weeks { | 427 | span.age-weeks { |
423 | color: #444; | 428 | color: #444; |
424 | } | 429 | } |
425 | 430 | ||
426 | span.age-months { | 431 | span.age-months { |
427 | color: #888; | 432 | color: #888; |
428 | } | 433 | } |
429 | 434 | ||
430 | span.age-years { | 435 | span.age-years { |
431 | color: #bbb; | 436 | color: #bbb; |
432 | } | 437 | } |