- Move common static methods out of IDF_Diff and into IDF_FileUtil.

- Make stuff that should be private in IDF_Diff really private
  and comment out a test that was the only call path for a previously
  public method.
- Apply the whitespace emphasizing on the normal file view as well
  and get finally rid of padLine()
This commit is contained in:
Thomas Keller
2011-10-09 01:54:51 +02:00
parent fef2bd15bf
commit 6abd0b6faa
4 changed files with 100 additions and 91 deletions

View File

@@ -571,6 +571,19 @@ table.commit table.changes table.properties td.removed {
/**
* syntax highlighting of diffs
*/
span.ctrl-char {
color: white;
background: black;
text-align: center;
display: inline-block;
padding: 1px 1px 0px 1px;
margin-left: 1px;
margin-right: 1px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
cursor: default;
}
table.diff {
width: 100%;
table-layout: fixed;
@@ -658,40 +671,24 @@ table.diff-contents td.removed {
background-color: #fdd;
}
table.diff-contents td > span.non-printable {
table.diff-contents td > span.ctrl-char {
visibility: hidden;
color: white;
text-transform: uppercase;
float: none;
text-align: center;
display: inline-block;
padding: 1px 1px 0px 1px;
margin-left: 1px;
margin-right: 1px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
cursor: default;
vertical-align: 10%;
}
table.diff-contents td:hover > span.non-printable {
table.diff-contents td:hover > span.ctrl-char {
visibility: visible;
}
table.diff-contents td.added > span.non-printable {
table.diff-contents td.added > span.ctrl-char {
background: #0A0;
}
table.diff-contents td.removed > span.non-printable {
table.diff-contents td.removed > span.ctrl-char {
background: #A00;
}
table.diff-contents td.context > span.non-printable {
background: black;
}
/* override prettify css rule */
table.diff-contents td > span.non-printable > * {
table.diff-contents td > span.ctrl-char > * {
color: white;
}
@@ -737,6 +734,14 @@ table.code td.code {
padding-left: 5px;
}
table.code td.code span.ctrl-char {
visibility: hidden;
}
table.code td.code:hover span.ctrl-char {
visibility: visible;
}
table.code td.code-lc {
text-align: right;
padding: 1px 5px;