(bug 11374) Red .diffchange text in the green 'added' area may be hard to read for...
[lhc/web/wiklou.git] / resources / mediawiki.action / mediawiki.action.history.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 td.diff-lineno {
15 font-weight: bold;
16 }
17 td.diff-addedline {
18 background: #cfc;
19 font-size: smaller;
20 }
21 td.diff-deletedline {
22 background: #ffa;
23 font-size: smaller;
24 }
25 td.diff-context {
26 background: #eee;
27 font-size: smaller;
28 }
29 .diffchange {
30 font-weight: bold;
31 white-space: -moz-pre-wrap;
32 white-space: pre-wrap;
33 text-decoration: none;
34 }
35
36 td.diff-addedline .diffchange {
37 background: #0c0;
38 }
39
40 td.diff-deletedline .diffchange {
41 background: #cc0;
42 }
43
44 table.diff {
45 border: none;
46 width: 98%;
47 border-spacing: 4px;
48
49 /* Ensure that colums are of equal width */
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 word-wrap: break-word;
64
65 /* As fallback (FF<3.5, Opera <10.5), scrollbars will be added for very wide cells
66 instead of text overflowing or widening */
67 overflow: auto;
68 }