Tweak diffs.css and refactor 'view_version' template to use it

This commit is contained in:
Lance Edgar 2018-01-06 20:28:13 -06:00
parent 568a625500
commit c3c77ed586
2 changed files with 21 additions and 55 deletions

View file

@ -4,6 +4,10 @@ table.diff {
border-collapse: collapse;
border-left: 1px solid Black;
border-top: 1px solid Black;
font-size: 11pt;
margin-top: 2em;
margin-left: 50px;
min-width: 80%;
}
table.diff th,
@ -13,16 +17,22 @@ table.diff td {
padding: 2px 5px;
}
table.diff td {
padding: 5px 10px;
}
table.diff.monospace td.old-value,
table.diff.monospace td.new-value{
font-family: monospace;
white-space: pre;
}
table.diff tr.diff td.new-value {
table.diff.new td.new-value,
table.diff.dirty tr.diff td.new-value {
background-color: #cfc;
}
table.diff tr.diff td.old-value {
table.diff.deleted td.old-value,
table.diff.dirty tr.diff td.old-value {
background-color: #fcc;
}