summaryrefslogtreecommitdiffabout
path: root/cgit.css
authorLars Hjemli <hjemli@gmail.com>2009-01-31 16:45:48 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2009-01-31 16:45:48 (UTC)
commitae1d4d75b2a2eb3534ff4b3685cc5c0b80007ef7 (patch) (unidiff)
tree89b745555c6c47b63868bc6aa15d5e5d5d294b34 /cgit.css
parentc495cf02bac16e459f7c9e1740798646f12c00c5 (diff)
downloadcgit-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>
Diffstat (limited to 'cgit.css') (more/less context) (show whitespace changes)
-rw-r--r--cgit.css19
1 files changed, 19 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 957d5aa..adfc8ae 100644
--- a/cgit.css
+++ b/cgit.css
@@ -218,96 +218,115 @@ div.error {
218 218
219a.ls-blob, a.ls-dir, a.ls-mod { 219a.ls-blob, a.ls-dir, a.ls-mod {
220 font-family: monospace; 220 font-family: monospace;
221} 221}
222 222
223td.ls-size { 223td.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
229td.ls-mode { 229td.ls-mode {
230 font-family: monospace; 230 font-family: monospace;
231 width: 10em; 231 width: 10em;
232} 232}
233 233
234table.blob { 234table.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
239table.blob td.lines { 239table.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
245table.blob td.linenumbers { 245table.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
252table.blob pre { 252table.blob pre {
253 padding: 0; margin: 0; 253 padding: 0; margin: 0;
254} 254}
255 255
256table.blob a.no { 256table.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
262table.blob a.no a:hover { 262table.blob a.no a:hover {
263 color: black; 263 color: black;
264} 264}
265 265
266table.bin-blob {
267 margin-top: 0.5em;
268 border: solid 1px black;
269}
270
271table.bin-blob th {
272 font-family: monospace;
273 white-space: pre;
274 border: solid 1px #777;
275 padding: 0.5em 1em;
276}
277
278table.bin-blob td {
279 font-family: monospace;
280 white-space: pre;
281 border-left: solid 1px #777;
282 padding: 0em 1em;
283}
284
266table.nowrap td { 285table.nowrap td {
267 white-space: nowrap; 286 white-space: nowrap;
268} 287}
269 288
270table.commit-info { 289table.commit-info {
271 border-collapse: collapse; 290 border-collapse: collapse;
272 margin-top: 1.5em; 291 margin-top: 1.5em;
273} 292}
274 293
275table.commit-info th { 294table.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
282table.commit-info td { 301table.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
287div.commit-subject { 306div.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
294div.commit-msg { 313div.commit-msg {
295 white-space: pre; 314 white-space: pre;
296 font-family: monospace; 315 font-family: monospace;
297} 316}
298 317
299div.diffstat-header { 318div.diffstat-header {
300 font-weight: bold; 319 font-weight: bold;
301 padding-top: 1.5em; 320 padding-top: 1.5em;
302} 321}
303 322
304table.diffstat { 323table.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
310table.diffstat th { 329table.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;