summaryrefslogtreecommitdiffabout
path: root/cgit.css
authorLars Hjemli <hjemli@gmail.com>2008-05-03 10:44:20 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-05-04 15:30:02 (UTC)
commit17890d0058c1555133c8767ceb123e809e6971ab (patch) (unidiff)
treee20eac18444fd75f6e25f03b6622245ca848d0d6 /cgit.css
parentaa3c4486b41b8b13d0f52477f033837fc8bb9524 (diff)
downloadcgit-17890d0058c1555133c8767ceb123e809e6971ab.zip
cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar.gz
cgit-17890d0058c1555133c8767ceb123e809e6971ab.tar.bz2
Add link to index page from repo header, remove page name
This makes it more obvious how to get back to the index, especially when the config option `logo-link` is used. And the page name displayed in the header provided no extra information. It only consumed space and deserved to die. While at it, make sure that the different parts of the header doesn't wrap when horizontal space is limited. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index fac5f85..a37d218 100644
--- a/cgit.css
+++ b/cgit.css
@@ -1,190 +1,193 @@
1body, table, form { 1body, table, form {
2 padding: 0em; 2 padding: 0em;
3 margin: 0em; 3 margin: 0em;
4} 4}
5 5
6body { 6body {
7 font-family: sans-serif; 7 font-family: sans-serif;
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 { 14a {
15 color: blue; 15 color: blue;
16 text-decoration: none; 16 text-decoration: none;
17} 17}
18 18
19a:hover { 19a:hover {
20 text-decoration: underline; 20 text-decoration: underline;
21} 21}
22 22
23table { 23table {
24 border-collapse: collapse; 24 border-collapse: collapse;
25} 25}
26 26
27table#header { 27table#header {
28 width: 100%; 28 width: 100%;
29 margin-bottom: 1em; 29 margin-bottom: 1em;
30} 30}
31 31
32table#header td.logo { 32table#header td.logo {
33 width: 96px; 33 width: 96px;
34} 34}
35 35
36table#header td.main { 36table#header td.main {
37 font-size: 250%; 37 font-size: 250%;
38 padding-left: 10px; 38 padding-left: 10px;
39 white-space: nowrap;
39} 40}
40 41
41table#header td.main a { 42table#header td.main a {
42 color: #000; 43 color: #000;
43} 44}
44 45
45table#header td.form { 46table#header td.form {
46 text-align: right; 47 text-align: right;
47 vertical-align: bottom; 48 vertical-align: bottom;
48 padding-right: 1em; 49 padding-right: 1em;
49 padding-bottom: 2px; 50 padding-bottom: 2px;
51 white-space: nowrap;
50} 52}
51 53
52table#header td.form form, 54table#header td.form form,
53table#header td.form input, 55table#header td.form input,
54table#header td.form select { 56table#header td.form select {
55 font-size: 90%; 57 font-size: 90%;
56} 58}
57 59
58table#header td.sub { 60table#header td.sub {
59 color: #777; 61 color: #777;
60 border-top: solid 1px #ccc; 62 border-top: solid 1px #ccc;
61 padding-left: 10px; 63 padding-left: 10px;
62} 64}
63 65
64table.tabs { 66table.tabs {
65 /* border-bottom: solid 2px #ccc; */ 67 /* border-bottom: solid 2px #ccc; */
66 border-collapse: collapse; 68 border-collapse: collapse;
67 margin-top: 2em; 69 margin-top: 2em;
68 margin-bottom: 0px; 70 margin-bottom: 0px;
69 width: 100%; 71 width: 100%;
70} 72}
71 73
72table.tabs td { 74table.tabs td {
73 padding: 0px 1em; 75 padding: 0px 1em;
74 vertical-align: bottom; 76 vertical-align: bottom;
75} 77}
76 78
77table.tabs td a { 79table.tabs td a {
78 padding: 2px 0.75em; 80 padding: 2px 0.75em;
79 color: #777; 81 color: #777;
80 font-size: 110%; 82 font-size: 110%;
81} 83}
82 84
83table.tabs td a.active { 85table.tabs td a.active {
84 color: #000; 86 color: #000;
85 background-color: #ccc; 87 background-color: #ccc;
86} 88}
87 89
88table.tabs td.form { 90table.tabs td.form {
89 text-align: right; 91 text-align: right;
90} 92}
91 93
92table.tabs td.form form { 94table.tabs td.form form {
93 padding-bottom: 2px; 95 padding-bottom: 2px;
94 font-size: 90%; 96 font-size: 90%;
97 white-space: nowrap;
95} 98}
96 99
97table.tabs td.form input, 100table.tabs td.form input,
98table.tabs td.form select { 101table.tabs td.form select {
99 font-size: 90%; 102 font-size: 90%;
100} 103}
101 104
102div.content { 105div.content {
103 margin: 0px; 106 margin: 0px;
104 padding: 2em; 107 padding: 2em;
105 border-top: solid 3px #ccc; 108 border-top: solid 3px #ccc;
106 border-bottom: solid 3px #ccc; 109 border-bottom: solid 3px #ccc;
107} 110}
108 111
109 112
110table.list { 113table.list {
111 width: 100%; 114 width: 100%;
112 border: none; 115 border: none;
113 border-collapse: collapse; 116 border-collapse: collapse;
114} 117}
115 118
116table.list tr { 119table.list tr {
117 background: white; 120 background: white;
118} 121}
119 122
120table.list tr:hover { 123table.list tr:hover {
121 background: #eee; 124 background: #eee;
122} 125}
123 126
124table.list tr.nohover:hover { 127table.list tr.nohover:hover {
125 background: white; 128 background: white;
126} 129}
127 130
128table.list th { 131table.list th {
129 font-weight: bold; 132 font-weight: bold;
130 /* color: #888; 133 /* color: #888;
131 border-top: dashed 1px #888; 134 border-top: dashed 1px #888;
132 border-bottom: dashed 1px #888; 135 border-bottom: dashed 1px #888;
133 */ 136 */
134 padding: 0.1em 0.5em 0.05em 0.5em; 137 padding: 0.1em 0.5em 0.05em 0.5em;
135 vertical-align: baseline; 138 vertical-align: baseline;
136} 139}
137 140
138table.list td { 141table.list td {
139 border: none; 142 border: none;
140 padding: 0.1em 0.5em 0.1em 0.5em; 143 padding: 0.1em 0.5em 0.1em 0.5em;
141} 144}
142 145
143table.list td a { 146table.list td a {
144 color: black; 147 color: black;
145} 148}
146 149
147table.list td a:hover { 150table.list td a:hover {
148 color: #00f; 151 color: #00f;
149} 152}
150 153
151img { 154img {
152 border: none; 155 border: none;
153} 156}
154 157
155input#switch-btn { 158input#switch-btn {
156 margin: 2px 0px 0px 0px; 159 margin: 2px 0px 0px 0px;
157} 160}
158 161
159td#sidebar input.txt { 162td#sidebar input.txt {
160 width: 100%; 163 width: 100%;
161 margin: 2px 0px 0px 0px; 164 margin: 2px 0px 0px 0px;
162} 165}
163 166
164table#grid { 167table#grid {
165 margin: 0px; 168 margin: 0px;
166} 169}
167 170
168td#content { 171td#content {
169 vertical-align: top; 172 vertical-align: top;
170 padding: 1em 2em 1em 1em; 173 padding: 1em 2em 1em 1em;
171 border: none; 174 border: none;
172} 175}
173 176
174div#summary { 177div#summary {
175 vertical-align: top; 178 vertical-align: top;
176 margin-bottom: 1em; 179 margin-bottom: 1em;
177} 180}
178 181
179table#downloads { 182table#downloads {
180 float: right; 183 float: right;
181 border-collapse: collapse; 184 border-collapse: collapse;
182 border: solid 1px #777; 185 border: solid 1px #777;
183 margin-left: 0.5em; 186 margin-left: 0.5em;
184 margin-bottom: 0.5em; 187 margin-bottom: 0.5em;
185} 188}
186 189
187table#downloads th { 190table#downloads th {
188 background-color: #ccc; 191 background-color: #ccc;
189} 192}
190 193