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