Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css |
— | — | @@ -4,33 +4,48 @@ |
5 | 5 | table.diff, td.diff-otitle, td.diff-ntitle { |
6 | 6 | background-color: white; |
7 | 7 | } |
| 8 | + |
8 | 9 | td.diff-otitle, |
9 | 10 | td.diff-ntitle { |
10 | 11 | text-align: center; |
11 | 12 | } |
| 13 | + |
12 | 14 | td.diff-marker { |
13 | 15 | text-align: right; |
| 16 | + font-weight: bold; |
| 17 | + font-size: 1.25em; |
14 | 18 | } |
| 19 | + |
15 | 20 | td.diff-lineno { |
16 | 21 | font-weight: bold; |
17 | 22 | } |
| 23 | + |
| 24 | +td.diff-addedline, |
| 25 | +td.diff-deletedline, |
| 26 | +td.diff-context { |
| 27 | + font-size: 88%; |
| 28 | + vertical-align: top; |
| 29 | + white-space: -moz-pre-wrap; |
| 30 | + white-space: pre-wrap; |
| 31 | +} |
| 32 | + |
18 | 33 | td.diff-addedline { |
19 | | - background: #cfc; |
20 | | - font-size: smaller; |
| 34 | + border: solid 4px #a3d3ff; |
| 35 | + border-radius: 0.33em; |
21 | 36 | } |
| 37 | + |
22 | 38 | td.diff-deletedline { |
23 | | - background: #ffa; |
24 | | - font-size: smaller; |
| 39 | + border: solid 4px #ffe49c; |
| 40 | + border-radius: 0.33em; |
25 | 41 | } |
| 42 | + |
26 | 43 | td.diff-context { |
27 | | - background: #eee; |
28 | | - font-size: smaller; |
| 44 | + background: #F2F2F2; |
| 45 | + color: #333333; |
29 | 46 | } |
| 47 | + |
30 | 48 | .diffchange { |
31 | | - color: red; |
32 | 49 | font-weight: bold; |
33 | | - white-space: -moz-pre-wrap; |
34 | | - white-space: pre-wrap; |
35 | 50 | text-decoration: none; |
36 | 51 | } |
37 | 52 | |
— | — | @@ -42,20 +57,39 @@ |
43 | 58 | /* Ensure that colums are of equal width */ |
44 | 59 | table-layout: fixed; |
45 | 60 | } |
| 61 | + |
| 62 | +td.diff-addedline .diffchange { |
| 63 | + background: #eaf5ff; |
| 64 | + padding: 0.125em 0.25em; |
| 65 | + border: solid 1px #5698d6; |
| 66 | + border-radius: 0.33em; |
| 67 | +} |
| 68 | + |
| 69 | +td.diff-deletedline .diffchange { |
| 70 | + background: #feeec8; |
| 71 | + padding: 0.125em 0.25em; |
| 72 | + border: solid 1px #e0b141; |
| 73 | + border-radius: 0.33em; |
| 74 | +} |
| 75 | + |
46 | 76 | table.diff td { |
47 | | - padding: 0; |
| 77 | + padding: 0.33em 0.66em; |
48 | 78 | } |
| 79 | + |
49 | 80 | table.diff col.diff-marker { |
50 | 81 | width: 2%; |
51 | 82 | } |
| 83 | + |
52 | 84 | table.diff col.diff-content { |
53 | 85 | width: 48%; |
54 | 86 | } |
| 87 | + |
55 | 88 | table.diff td div { |
56 | 89 | /* Force-wrap very long lines such as URLs or page-widening char strings.*/ |
57 | 90 | word-wrap: break-word; |
58 | 91 | |
59 | 92 | /* As fallback (FF<3.5, Opera <10.5), scrollbars will be added for very wide cells |
60 | | - instead of text overflowing or widening */ |
| 93 | + instead of text overflowing or widening |
| 94 | + */ |
61 | 95 | overflow: auto; |
62 | 96 | } |