author | Lars Hjemli <hjemli@gmail.com> | 2009-01-31 16:45:48 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-01-31 16:45:48 (UTC) |
commit | ae1d4d75b2a2eb3534ff4b3685cc5c0b80007ef7 (patch) (unidiff) | |
tree | 89b745555c6c47b63868bc6aa15d5e5d5d294b34 /cgit.css | |
parent | c495cf02bac16e459f7c9e1740798646f12c00c5 (diff) | |
download | cgit-ae1d4d75b2a2eb3534ff4b3685cc5c0b80007ef7.zip cgit-ae1d4d75b2a2eb3534ff4b3685cc5c0b80007ef7.tar.gz cgit-ae1d4d75b2a2eb3534ff4b3685cc5c0b80007ef7.tar.bz2 |
ui-tree: show hexdump of binary blobs
This teaches ui-tree to detect binary blobs and display them similar
to `hexdump -C` (only wider).
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -218,96 +218,115 @@ div.error { | |||
218 | 218 | ||
219 | a.ls-blob, a.ls-dir, a.ls-mod { | 219 | a.ls-blob, a.ls-dir, a.ls-mod { |
220 | font-family: monospace; | 220 | font-family: monospace; |
221 | } | 221 | } |
222 | 222 | ||
223 | td.ls-size { | 223 | td.ls-size { |
224 | text-align: right; | 224 | text-align: right; |
225 | font-family: monospace; | 225 | font-family: monospace; |
226 | width: 10em; | 226 | width: 10em; |
227 | } | 227 | } |
228 | 228 | ||
229 | td.ls-mode { | 229 | td.ls-mode { |
230 | font-family: monospace; | 230 | font-family: monospace; |
231 | width: 10em; | 231 | width: 10em; |
232 | } | 232 | } |
233 | 233 | ||
234 | table.blob { | 234 | table.blob { |
235 | margin-top: 0.5em; | 235 | margin-top: 0.5em; |
236 | border-top: solid 1px black; | 236 | border-top: solid 1px black; |
237 | } | 237 | } |
238 | 238 | ||
239 | table.blob td.lines { | 239 | table.blob td.lines { |
240 | margin: 0; padding: 0; | 240 | margin: 0; padding: 0; |
241 | vertical-align: top; | 241 | vertical-align: top; |
242 | color: black; | 242 | color: black; |
243 | } | 243 | } |
244 | 244 | ||
245 | table.blob td.linenumbers { | 245 | table.blob td.linenumbers { |
246 | margin: 0; padding: 0; | 246 | margin: 0; padding: 0; |
247 | vertical-align: top; | 247 | vertical-align: top; |
248 | border-right: 1px solid gray; | 248 | border-right: 1px solid gray; |
249 | background-color: #eee; | 249 | background-color: #eee; |
250 | } | 250 | } |
251 | 251 | ||
252 | table.blob pre { | 252 | table.blob pre { |
253 | padding: 0; margin: 0; | 253 | padding: 0; margin: 0; |
254 | } | 254 | } |
255 | 255 | ||
256 | table.blob a.no { | 256 | table.blob a.no { |
257 | color: gray; | 257 | color: gray; |
258 | text-align: right; | 258 | text-align: right; |
259 | text-decoration: none; | 259 | text-decoration: none; |
260 | } | 260 | } |
261 | 261 | ||
262 | table.blob a.no a:hover { | 262 | table.blob a.no a:hover { |
263 | color: black; | 263 | color: black; |
264 | } | 264 | } |
265 | 265 | ||
266 | table.bin-blob { | ||
267 | margin-top: 0.5em; | ||
268 | border: solid 1px black; | ||
269 | } | ||
270 | |||
271 | table.bin-blob th { | ||
272 | font-family: monospace; | ||
273 | white-space: pre; | ||
274 | border: solid 1px #777; | ||
275 | padding: 0.5em 1em; | ||
276 | } | ||
277 | |||
278 | table.bin-blob td { | ||
279 | font-family: monospace; | ||
280 | white-space: pre; | ||
281 | border-left: solid 1px #777; | ||
282 | padding: 0em 1em; | ||
283 | } | ||
284 | |||
266 | table.nowrap td { | 285 | table.nowrap td { |
267 | white-space: nowrap; | 286 | white-space: nowrap; |
268 | } | 287 | } |
269 | 288 | ||
270 | table.commit-info { | 289 | table.commit-info { |
271 | border-collapse: collapse; | 290 | border-collapse: collapse; |
272 | margin-top: 1.5em; | 291 | margin-top: 1.5em; |
273 | } | 292 | } |
274 | 293 | ||
275 | table.commit-info th { | 294 | table.commit-info th { |
276 | text-align: left; | 295 | text-align: left; |
277 | font-weight: normal; | 296 | font-weight: normal; |
278 | padding: 0.1em 1em 0.1em 0.1em; | 297 | padding: 0.1em 1em 0.1em 0.1em; |
279 | vertical-align: top; | 298 | vertical-align: top; |
280 | } | 299 | } |
281 | 300 | ||
282 | table.commit-info td { | 301 | table.commit-info td { |
283 | font-weight: normal; | 302 | font-weight: normal; |
284 | padding: 0.1em 1em 0.1em 0.1em; | 303 | padding: 0.1em 1em 0.1em 0.1em; |
285 | } | 304 | } |
286 | 305 | ||
287 | div.commit-subject { | 306 | div.commit-subject { |
288 | font-weight: bold; | 307 | font-weight: bold; |
289 | font-size: 125%; | 308 | font-size: 125%; |
290 | margin: 1.5em 0em 0.5em 0em; | 309 | margin: 1.5em 0em 0.5em 0em; |
291 | padding: 0em; | 310 | padding: 0em; |
292 | } | 311 | } |
293 | 312 | ||
294 | div.commit-msg { | 313 | div.commit-msg { |
295 | white-space: pre; | 314 | white-space: pre; |
296 | font-family: monospace; | 315 | font-family: monospace; |
297 | } | 316 | } |
298 | 317 | ||
299 | div.diffstat-header { | 318 | div.diffstat-header { |
300 | font-weight: bold; | 319 | font-weight: bold; |
301 | padding-top: 1.5em; | 320 | padding-top: 1.5em; |
302 | } | 321 | } |
303 | 322 | ||
304 | table.diffstat { | 323 | table.diffstat { |
305 | border-collapse: collapse; | 324 | border-collapse: collapse; |
306 | border: solid 1px #aaa; | 325 | border: solid 1px #aaa; |
307 | background-color: #eee; | 326 | background-color: #eee; |
308 | } | 327 | } |
309 | 328 | ||
310 | table.diffstat th { | 329 | table.diffstat th { |
311 | font-weight: normal; | 330 | font-weight: normal; |
312 | text-align: left; | 331 | text-align: left; |
313 | text-decoration: underline; | 332 | text-decoration: underline; |