Skip to content

Commit

Permalink
Add a diff css file
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Aug 12, 2014
1 parent 4f2fd03 commit 0bf8721
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions www/jtracker/core/css/diff.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
@copyright Copyright (C) 2012 - 2014 Open Source Matters, Inc. All rights reserved.
@license GNU General Public License version 2 or later; see LICENSE.txt
This CSS provides code highlighting with GitHub styles
*/

.Differences {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
}

.Differences thead th {
text-align: left;
border-bottom: 1px solid #000;
background: #aaa;
color: #000;
padding: 4px;
}
.Differences tbody th {
text-align: right;
background: #ccc;
width: 4em;
padding: 1px 2px;
border-right: 1px solid #000;
vertical-align: top;
font-size: 13px;
}

.Differences td {
padding: 1px 2px;
font-family: Consolas, monospace;
font-size: 13px;
}

.DifferencesSideBySide .ChangeInsert td.Left {
background: #dfd;
}

.DifferencesSideBySide .ChangeInsert td.Right {
background: #cfc;
}

.DifferencesSideBySide .ChangeDelete td.Left {
background: #f88;
}

.DifferencesSideBySide .ChangeDelete td.Right {
background: #faa;
}

.DifferencesSideBySide .ChangeReplace .Left {
background: #fe9;
}

.DifferencesSideBySide .ChangeReplace .Right {
background: #fd8;
}

.Differences ins, .Differences del {
text-decoration: none;
}

.DifferencesSideBySide .ChangeReplace ins, .DifferencesSideBySide .ChangeReplace del {
background: #fc0;
}

.Differences .Skipped {
background: #f7f7f7;
}

.DifferencesInline .ChangeReplace .Left,
.DifferencesInline .ChangeDelete .Left {
background: #fdd;
}

.DifferencesInline .ChangeReplace .Right,
.DifferencesInline .ChangeInsert .Right {
background: #dfd;
}

.DifferencesInline .ChangeReplace ins {
background: #9e9;
}

.DifferencesInline .ChangeReplace del {
background: #e99;
}

pre {
width: 100%;
overflow: auto;
}

0 comments on commit 0bf8721

Please sign in to comment.