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