2 <html lang=
"en" dir=
"ltr">
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">
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">
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>
30 <td class=
"diff-marker">−
</td>
31 <td class=
"diff-deletedline"></td>
32 <td colspan=
"2" class=
"diff-empty"> </td>
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"> </td>
40 <td class=
"diff-marker"> </td>
41 <td class=
"diff-context"></td>
42 <td class=
"diff-marker"> </td>
43 <td class=
"diff-context"></td>
46 <td class=
"diff-marker"> </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"> </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>
52 <td class=
"diff-marker"> </td>
53 <td class=
"diff-context"></td>
54 <td class=
"diff-marker"> </td>
55 <td class=
"diff-context"></td>
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>
64 <td colspan=
"2" class=
"diff-empty"> </td>
65 <td class=
"diff-marker">+
</td>
66 <td class=
"diff-addedline"></td>
69 <td colspan=
"2" class=
"diff-empty"> </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>
75 <p>Below are some basic lines being applied one or two classes. Mainly for debugging purposes.
</p>
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><ins
></code> or
<code><del
></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>