09abf2b640e460c04c50b58bad2a47198bfe1932
[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: #D8E4F6;
26 font-size: smaller;
27 }
28
29 td.diff-deletedline {
30 background: #E4F6D8;
31 font-size: smaller;
32 }
33
34 td.diff-context {
35 font-size: smaller;
36 }
37
38 .diffchange {
39 font-weight: bold;
40 white-space: -moz-pre-wrap;
41 white-space: pre-wrap;
42 text-decoration: none;
43 outline: 1px dotted gray;
44 }
45
46 td.diff-addedline .diffchange {
47 background: #B0C0F0;
48 color: #001040;
49 font-weight: bold;
50 }
51
52 td.diff-deletedline .diffchange {
53 background: #B0E897;
54 color: #104000;
55 font-weight: bold;
56 }
57
58 table.diff {
59 border: none;
60 width: 98%;
61 border-spacing: 4px;
62
63 /* Ensure that colums are of equal width */
64 table-layout: fixed;
65 }
66
67 table.diff td {
68 padding: 0;
69 }
70
71 table.diff col.diff-marker {
72 width: 2%;
73 }
74
75 table.diff col.diff-content {
76 width: 48%;
77 }
78
79 table.diff td div {
80 /* Force-wrap very long lines such as URLs or page-widening char strings.*/
81 word-wrap: break-word;
82
83 /* As fallback (FF<3.5, Opera <10.5), scrollbars will be added for very wide cells
84 * instead of text overflowing or widening
85 */
86 overflow: auto;
87 }