author | Lars Hjemli <larsh@slaptop.hjemli.net> | 2007-01-27 23:39:26 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-01-27 23:52:41 (UTC) |
commit | 777faf7e509e1de2b795b2a326ff00c9bd799104 (patch) (unidiff) | |
tree | ccb440445caf46cbfa3d4bd21d743697f37a9876 /cgit.css | |
parent | 447025f62ccbbb6e038d42009368e28f3e162460 (diff) | |
download | cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.zip cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.gz cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.bz2 |
Cleanup table listings
Make the output for <table class='list'> a bit nicer
Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
-rw-r--r-- | cgit.css | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1,103 +1,99 @@ | |||
1 | body { | 1 | body { |
2 | font-family: arial; | 2 | font-family: arial; |
3 | font-size: normal; | 3 | font-size: normal; |
4 | background: white; | 4 | background: white; |
5 | padding: 0em; | 5 | padding: 0em; |
6 | margin: 0.5em 1em; | 6 | margin: 0.5em 1em; |
7 | } | 7 | } |
8 | 8 | ||
9 | 9 | ||
10 | h2 { | 10 | h2 { |
11 | font-size: 120%; | 11 | font-size: 120%; |
12 | font-weight: bold; | 12 | font-weight: bold; |
13 | margin-bottom: 0.5em; | 13 | margin-bottom: 0.5em; |
14 | } | 14 | } |
15 | 15 | ||
16 | a { | 16 | a { |
17 | color: blue; | 17 | color: blue; |
18 | text-decoration: none; | 18 | text-decoration: none; |
19 | } | 19 | } |
20 | 20 | ||
21 | a:hover { | 21 | a:hover { |
22 | text-decoration: underline; | 22 | text-decoration: underline; |
23 | } | 23 | } |
24 | 24 | ||
25 | table.list { | 25 | table.list { |
26 | border: solid 1px black; | 26 | border: none; |
27 | border-collapse: collapse; | 27 | border-collapse: collapse; |
28 | border: solid 1px #aaa; | ||
29 | } | 28 | } |
30 | table.list tr { | 29 | table.list tr { |
31 | background: white; | 30 | background: white; |
32 | } | 31 | } |
33 | table.list tr:hover { | 32 | table.list tr:hover { |
34 | background: #eeb; | 33 | background: #eee; |
35 | } | 34 | } |
36 | table.list tr.nohover:hover { | 35 | table.list tr.nohover:hover { |
37 | background: white; | 36 | background: white; |
38 | } | 37 | } |
39 | table.list th { | 38 | table.list th { |
40 | font-weight: normal; | 39 | font-weight: normal; |
41 | background: #ddd; | 40 | border-bottom: solid 1px #777; |
42 | border-top: solid 1px #aaa; | ||
43 | border-bottom: solid 1px #aaa; | ||
44 | padding: 0.1em 0.5em 0.1em 0.5em; | 41 | padding: 0.1em 0.5em 0.1em 0.5em; |
45 | vertical-align: baseline; | 42 | vertical-align: baseline; |
46 | } | 43 | } |
47 | table.list td { | 44 | table.list td { |
48 | border: none; | 45 | border: none; |
49 | padding: 0.1em 0.5em 0.1em 0.5em; | 46 | padding: 0.1em 0.5em 0.1em 0.5em; |
50 | } | 47 | } |
51 | img { | 48 | img { |
52 | border: none; | 49 | border: none; |
53 | } | 50 | } |
54 | 51 | ||
55 | |||
56 | div#header { | 52 | div#header { |
57 | background-color: #ddd; | 53 | background-color: #ddd; |
58 | padding: 0.25em 0.25em 0.25em 0.5em; | 54 | padding: 0.25em 0.25em 0.25em 0.5em; |
59 | font-size: 150%; | 55 | font-size: 150%; |
60 | font-weight: bold; | 56 | font-weight: bold; |
61 | border: solid 1px #aaa; | 57 | border: solid 1px #aaa; |
62 | vertical-align: middle; | 58 | vertical-align: middle; |
63 | margin-bottom: 2em; | 59 | margin-bottom: 2em; |
64 | } | 60 | } |
65 | div#header img#logo { | 61 | div#header img#logo { |
66 | float: right; | 62 | float: right; |
67 | } | 63 | } |
68 | 64 | ||
69 | div#header input { | 65 | div#header input { |
70 | float: right; | 66 | float: right; |
71 | margin: 0.25em 1em; | 67 | margin: 0.25em 1em; |
72 | } | 68 | } |
73 | div#header a { | 69 | div#header a { |
74 | color: black; | 70 | color: black; |
75 | } | 71 | } |
76 | 72 | ||
77 | div#content { | 73 | div#content { |
78 | margin: 0.5em 0.5em; | 74 | margin: 0.5em 0.5em; |
79 | } | 75 | } |
80 | 76 | ||
81 | div#blob { | 77 | div#blob { |
82 | border: solid 1px black; | 78 | border: solid 1px black; |
83 | } | 79 | } |
84 | 80 | ||
85 | div.error { | 81 | div.error { |
86 | color: red; | 82 | color: red; |
87 | font-weight: bold; | 83 | font-weight: bold; |
88 | margin: 1em 2em; | 84 | margin: 1em 2em; |
89 | } | 85 | } |
90 | div.ls-blob, div.ls-dir { | 86 | div.ls-blob, div.ls-dir { |
91 | font-family: monospace; | 87 | font-family: monospace; |
92 | } | 88 | } |
93 | div.ls-dir a { | 89 | div.ls-dir a { |
94 | font-weight: bold; | 90 | font-weight: bold; |
95 | } | 91 | } |
96 | th.filesize, td.filesize { | 92 | th.filesize, td.filesize { |
97 | text-align: right; | 93 | text-align: right; |
98 | } | 94 | } |
99 | td.filesize { | 95 | td.filesize { |
100 | font-family: monospace; | 96 | font-family: monospace; |
101 | } | 97 | } |
102 | td.filemode { | 98 | td.filemode { |
103 | font-family: monospace; | 99 | font-family: monospace; |