Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / docs / uidesign / mediawiki.diff.html
blob0372595ce94725623b0a1983fb660122e7578ff5
1 <!DOCTYPE html>
2 <html lang="en" dir="ltr">
3 <head>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="../../resources/src/mediawiki/mediawiki.diff.styles.css">
6 <link rel="stylesheet" media="print" href="../../resources/src/mediawiki/mediawiki.diff.styles.print.css">
7 </head>
8 <body>
10 <p>This show various styles for our diff action. Style sheet: <code><a href="../../resources/src/mediawiki/mediawiki.diff.styles.css">resources/src/mediawiki/mediawiki.diff.styles.css</a></code>.</p>
11 <p>This file might help us fix our diff colors which have been a recurring issues among the community for a loooong time.</p>
12 <p>Try it out in print mode, too. Style sheet: <code><a href="../../resources/src/mediawiki/mediawiki.diff.styles.print.css">resources/src/mediawiki/mediawiki.diff.styles.print.css</a></code>.</p>
14 <p>Practical example copied from MediaWiki's HTML output:</p>
16 <table class="diff diff-contentalign-left">
17 <colgroup><col class="diff-marker">
18 <col class="diff-content">
19 <col class="diff-marker">
20 <col class="diff-content">
21 </colgroup>
22 <tbody>
23 <tr>
24 <td class="diff-marker"></td>
25 <td class="diff-deletedline"><div>Lorem ipsum dolor sit amet<del class="diffchange diffchange-inline">, consectetur adipisicing elit</del>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div></td>
26 <td class="diff-marker">+</td>
27 <td class="diff-addedline"><div>Lorem ipsum dolor sit amet, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div></td>
28 </tr>
29 <tr>
30 <td class="diff-marker"></td>
31 <td class="diff-deletedline"></td>
32 <td colspan="2" class="diff-empty">&nbsp;</td>
33 </tr>
34 <tr>
35 <td class="diff-marker"></td>
36 <td class="diff-deletedline"><div>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div></td>
37 <td colspan="2" class="diff-empty">&nbsp;</td>
38 </tr>
39 <tr>
40 <td class="diff-marker">&nbsp;</td>
41 <td class="diff-context"></td>
42 <td class="diff-marker">&nbsp;</td>
43 <td class="diff-context"></td>
44 </tr>
45 <tr>
46 <td class="diff-marker">&nbsp;</td>
47 <td class="diff-context"><div>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</div></td>
48 <td class="diff-marker">&nbsp;</td>
49 <td class="diff-context"><div>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</div></td>
50 </tr>
51 <tr>
52 <td class="diff-marker">&nbsp;</td>
53 <td class="diff-context"></td>
54 <td class="diff-marker">&nbsp;</td>
55 <td class="diff-context"></td>
56 </tr>
57 <tr>
58 <td class="diff-marker"></td>
59 <td class="diff-deletedline"><div>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim<del class="diffchange diffchange-inline"> id est laborum</del>.</div></td>
60 <td class="diff-marker">+</td>
61 <td class="diff-addedline"><div>Excepteur sint occaecat cupidatat non proident, sunt<ins class="diffchange diffchange-inline"> reprehenderit in voluptate</ins> in culpa qui officia deserunt mollit anim.</div></td>
62 </tr>
63 <tr>
64 <td colspan="2" class="diff-empty">&nbsp;</td>
65 <td class="diff-marker">+</td>
66 <td class="diff-addedline"></td>
67 </tr>
68 <tr>
69 <td colspan="2" class="diff-empty">&nbsp;</td>
70 <td class="diff-marker">+</td>
71 <td class="diff-addedline"><div>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div></td>
72 </tr>
73 </tbody></table>
75 <p>Below are some basic lines being applied one or two classes. Mainly for debugging purposes.</p>
77 <table class="diff">
78 <tr><th>Diff</th></tr>
80 <tr><td class="diff-addedline"><code>diff-addedline</code>: added line</td></tr>
81 <tr><td class="diff-deletedline"><code>diff-deletedline</code>: deleted line</td></tr>
82 <tr><td class="diff-context"><code>diff-context</code>: context</td></tr>
84 <tr><th>Same as above with a <code>&lt;ins&gt;</code> or <code>&lt;del&gt;</code> child element having the <code>diffchange</code> class:</th></tr>
86 <tr><td class="diffchange">Diffchange</td></tr>
87 <tr><td class="diff-addedline"><ins class="diffchange">Added line + diffchange</ins></td></tr>
88 <tr><td class="diff-deletedline"><del class="diffchange">Deleted line + diffchange</del></td></tr>
89 </table>
91 </body>
92 </html>