5737e740843983cabe8979254245e799abcc291b
[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 .diffchange-inline {
40 border: 1px dotted red;
41 }
42
43 table.diff {
44 border: none;
45 width: 98%;
46 border-spacing: 4px;
47
48 /* Fixed layout is required to ensure that cells containing long URLs
49 don't widen in Safari, Internet Explorer, or iCab */
50 table-layout: fixed;
51 }
52 table.diff td {
53 padding: 0;
54 }
55 table.diff col.diff-marker {
56 width: 2%;
57 }
58 table.diff col.diff-content {
59 width: 48%;
60 }
61 table.diff td div {
62 /* Force-wrap very long lines such as URLs or page-widening char strings.
63 CSS 3 draft..., but Gecko doesn't support it yet:
64 https://bugzilla.mozilla.org/show_bug.cgi?id=99457 */
65 word-wrap: break-word;
66
67 /* As fallback, scrollbars will be added for very wide cells
68 instead of text overflowing or widening */
69 overflow: auto;
70
71 /* The above rule breaks on very old versions of Mozilla due
72 to a bug which collapses the table cells to a single line.
73
74 In Mozilla 1.1 and below with JavaScript enabled, the rule
75 will be overridden with this by diff.js; wide cell contents
76 then spill horizontally without widening the rest of the
77 table: */
78 /* overflow: visible; */
79 }