Applying patch from bug 33335 (from Erwin Dokter). Followup to r105280
[lhc/web/wiklou.git] / resources / mediawiki.action / mediawiki.action.history.diff.css
1 /*
2 ** Diff rendering
3 */
4 table.diff,
5 td.diff-otitle,
6 td.diff-ntitle {
7 background-color: transparent;
8 }
9
10 td.diff-otitle,
11 td.diff-ntitle {
12 text-align: center;
13 }
14
15 td.diff-marker {
16 text-align: right;
17 }
18
19 td.diff-lineno {
20 font-weight: bold;
21 }
22
23 td.diff-addedline,
24 td.diff-deletedline,
25 td.diff-context {
26 font-size: 88%;
27 white-space: -moz-pre-wrap;
28 white-space: pre-wrap;
29 }
30
31 td.diff-addedline {
32 background: #E0ECFF;
33 }
34
35 td.diff-deletedline {
36 background: #FCF8CC;
37 }
38
39 td.diff-context {
40 background: #F2F2F2;
41 }
42
43 .diffchange {
44 font-weight: bold;
45 text-decoration: none;
46 }
47
48 td.diff-addedline .diffchange {
49 background: #B0C8FF;
50 }
51
52 td.diff-deletedline .diffchange {
53 background: #FFD084;
54 }
55
56 table.diff {
57 border: none;
58 width: 98%;
59 border-spacing: 4px;
60
61 /* Ensure that colums are of equal width */
62 table-layout: fixed;
63 }
64
65 table.diff td {
66 padding: 0;
67 }
68
69 table.diff col.diff-marker {
70 width: 2%;
71 }
72
73 table.diff col.diff-content {
74 width: 48%;
75 }
76
77 table.diff td div {
78 /* Force-wrap very long lines such as URLs or page-widening char strings.*/
79 word-wrap: break-word;
80
81 /* As fallback (FF<3.5, Opera <10.5), scrollbars will be added for very wide cells
82 * instead of text overflowing or widening
83 */
84 overflow: auto;
85 }