Remove distracting red dotted box. This was make some hard to read, and annoying...
[lhc/web/wiklou.git] / skins / common / diff.css
1 /*
2 ** Diff rendering
3 */
4 table.diff, td.diff-otitle, td.diff-ntitle {
5 background-color: white;
6 }
7 td.diff-otitle,
8 td.diff-ntitle {
9 text-align: center;
10 }
11 td.diff-marker {
12 text-align: right;
13 }
14 .rtl td.diff-marker {
15 text-align: left;
16 }
17 td.diff-lineno {
18 font-weight: bold;
19 }
20 td.diff-addedline {
21 background: #cfc;
22 font-size: smaller;
23 }
24 td.diff-deletedline {
25 background: #ffa;
26 font-size: smaller;
27 }
28 td.diff-context {
29 background: #eee;
30 font-size: smaller;
31 }
32 .diffchange {
33 color: red;
34 font-weight: bold;
35 text-decoration: none;
36 white-space: pre-wrap;
37 white-space: -moz-pre-wrap;
38 }
39
40 table.diff {
41 border: none;
42 width: 98%;
43 border-spacing: 4px;
44
45 /* Fixed layout is required to ensure that cells containing long URLs
46 don't widen in Safari, Internet Explorer, or iCab */
47 table-layout: fixed;
48 }
49 table.diff td {
50 padding: 0;
51 }
52 table.diff col.diff-marker {
53 width: 2%;
54 }
55 table.diff col.diff-content {
56 width: 48%;
57 }
58 table.diff td div {
59 /* Force-wrap very long lines such as URLs or page-widening char strings.
60 CSS 3 draft..., but Gecko doesn't support it yet:
61 https://bugzilla.mozilla.org/show_bug.cgi?id=99457 */
62 word-wrap: break-word;
63
64 /* As fallback, scrollbars will be added for very wide cells
65 instead of text overflowing or widening */
66 overflow: auto;
67
68 /* The above rule breaks on very old versions of Mozilla due
69 to a bug which collapses the table cells to a single line.
70
71 In Mozilla 1.1 and below with JavaScript enabled, the rule
72 will be overridden with this by diff.js; wide cell contents
73 then spill horizontally without widening the rest of the
74 table: */
75 /* overflow: visible; */
76 }