2 <html lang=
"en" dir=
"ltr" xmlns=
"http://www.w3.org/1999/xhtml">
4 <link rel=
"stylesheet" href=
"../../resources/mediawiki.action/mediawiki.action.history.diff.css" />
6 <body style=
"background-color: #C0C0C0;">
8 This show various styles for our diff action, the background being hardcoded to gray (
<tt>#C0C0C0
</tt>) The reference style sheet is:
</p>
10 <tt><a href=
"../../resources/mediawiki.action/mediawiki.action.history.diff.css">resources/mediawiki.action/mediawiki.action.history.diff.css
</a></tt>.
13 This file might help us fix our diff colors which have been a recurring issues among the community for a loooong time.
</p>
16 First, show the diff mostly like it would be chown on a wiki
</p>
19 <td class=
"diff-marker">-
</td>
20 <td class=
"diff-deletedline"><div>
21 Some content
<span class=
"diffchange diffchange-inline">deleted / replaced
</span>
23 <td class=
"diff-marker">+
</td>
24 <td class=
"diff-addedline"><div>
25 Some content
<span class=
"diffchange diffchange-inline">added / replacement
</span>
32 Below are some basic lines being applied one or two classes. Mainly for debugging purposes
</p>
36 <tr><th>Diff
</th></tr>
38 <tr><td class=
"diff-addedline"><tt>diff-addedline
</tt>: added line
</td></tr>
39 <tr><td class=
"diff-deletedline"><tt>diff-deletedline
</tt>: deleted line
</td></tr>
40 <tr><td class=
"diff-context"><tt>diff-context
</tt>: context
</td></tr>
43 <tr><th>Same as above with a
<tt><span
></tt> child element having the
<tt>diffchange
</tt> class
</th></tr>
45 <tr><td class=
"diffchange">Diffchange
</td></tr>
46 <tr><td class=
"diff-addedline">
47 <span class=
"diffchange">Added line + diffchange
</span>
49 <tr><td class=
"diff-deletedline">
50 <span class=
"diffchange">Deleted line + diffchange
</span>
52 <tr><td class=
"diff-context">
53 <span class=
"diffchange">Context + diffchange
</span>