--- trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css 2012/03/01 00:44:45 112749 +++ trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css 2012/03/01 01:07:18 112750 @@ -1,54 +1,39 @@ -/** - * Diff rendering - */ - +/* +** Diff rendering +*/ +table.diff, td.diff-otitle, td.diff-ntitle { + background-color: white; +} td.diff-otitle, td.diff-ntitle { text-align: center; } - td.diff-marker { text-align: right; } - td.diff-lineno { font-weight: bold; } - -td.diff-addedline, -td.diff-deletedline, -td.diff-context { - font-size: 88%; - vertical-align: top; - white-space: -moz-pre-wrap; - white-space: pre-wrap; -} - td.diff-addedline { - background: #E0ECFF; + background: #cfc; + font-size: smaller; } - td.diff-deletedline { - background: #FCF8CC; + background: #ffa; + font-size: smaller; } - td.diff-context { - background: #F2F2F2; + background: #eee; + font-size: smaller; } - .diffchange { + color: red; font-weight: bold; + white-space: -moz-pre-wrap; + white-space: pre-wrap; text-decoration: none; } -td.diff-addedline .diffchange { - background: #B0C8FF; -} - -td.diff-deletedline .diffchange { - background: #FFD084; -} - table.diff { border: none; width: 98%; @@ -57,25 +42,20 @@ /* Ensure that colums are of equal width */ table-layout: fixed; } - table.diff td { padding: 0; } - table.diff col.diff-marker { width: 2%; } - table.diff col.diff-content { width: 48%; } - table.diff td div { /* Force-wrap very long lines such as URLs or page-widening char strings.*/ word-wrap: break-word; /* As fallback (FF<3.5, Opera <10.5), scrollbars will be added for very wide cells - * instead of text overflowing or widening - */ + instead of text overflowing or widening */ overflow: auto; }