* Add comments for optional messages
[mediawiki.git] / skins / common / diff.css
blob6a1f23b5d5a7726e92924b1145c5d3dedd17ea13
1 /*
2 ** Diff rendering
3 */
4 table.diff, td.diff-otitle, td.diff-ntitle {
5 background-color: white;
7 td.diff-otitle,
8 td.diff-ntitle {
9 text-align: center;
11 td.diff-marker {
12 text-align: right;
14 .rtl td.diff-marker {
15 text-align: left;
17 td.diff-lineno {
18 font-weight: bold;
20 td.diff-addedline {
21 background: #cfc;
22 font-size: smaller;
24 td.diff-deletedline {
25 background: #ffa;
26 font-size: smaller;
28 td.diff-context {
29 background: #eee;
30 font-size: smaller;
32 .diffchange {
33 color: red;
34 font-weight: bold;
35 text-decoration: none;
38 table.diff {
39 border: none;
40 width: 98%;
41 border-spacing: 4px;
43 /* Fixed layout is required to ensure that cells containing long URLs
44 don't widen in Safari, Internet Explorer, or iCab */
45 table-layout: fixed;
47 table.diff td {
48 padding: 0;
50 table.diff col.diff-marker {
51 width: 2%;
53 table.diff col.diff-content {
54 width: 48%;
56 table.diff td div {
57 /* Force-wrap very long lines such as URLs or page-widening char strings.
58 CSS 3 draft..., but Gecko doesn't support it yet:
59 https://bugzilla.mozilla.org/show_bug.cgi?id=99457 */
60 word-wrap: break-word;
62 /* As fallback, scrollbars will be added for very wide cells
63 instead of text overflowing or widening */
64 overflow: auto;
66 /* The above rule breaks on very old versions of Mozilla due
67 to a bug which collapses the table cells to a single line.
69 In Mozilla 1.1 and below with JavaScript enabled, the rule
70 will be overridden with this by diff.js; wide cell contents
71 then spill horizontally without widening the rest of the
72 table: */
73 /* overflow: visible; */