Skip to content

Commit

Permalink
Code: add new diff class names. Fixes #158
Browse files Browse the repository at this point in the history
I did not remove the old definitions, just in case
  • Loading branch information
Mottie committed Aug 7, 2014
1 parent fe637f3 commit 1af3fdf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions github-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1366,19 +1366,22 @@
border-top: none !important;
}
/* light grey - breaks in diff (with line numbers) */
.highlight .gc td, .highlight .gc pre, .gist .highlight tr .gu, .highlight tr .gh {
.highlight .gc td, .highlight .gc pre, .gist .highlight tr .gu, .highlight tr .gh,
.highlight .expandable-line-num, .highlight .diff-line-num-hunk, .highlight .diff-line-code-hunk,
.highlight .expandable-line-code {
background: #222 !important;
color: #888 !important;
}
/* git diff line additions (dark green) */
.highlight tr.gi, .highlight tr .gi, .highlight tr .gi pre, .gi .diff-line-code, .gi .diff-line-code pre,
.markdown-body ins, .markdown-body ins > *, .markdown-body .added {
.markdown-body ins, .markdown-body ins > *, .markdown-body .added, .highlight .diff-line-num-addition,
.highlight .diff-line-code-addition {
background: #030 !important;
border-color: #080 !important;
}
/* git diff line deletions (dark red) */
.highlight tr.gd, .highlight tr .gd, .gd .diff-line-code, .gd .diff-line-code pre,
.markdown-body .removed {
.markdown-body .removed, .highlight .diff-line-num-deletion, .highlight .diff-line-code-deletion {
background: #400 !important;
border-color: #800 !important;
}
Expand All @@ -1391,15 +1394,15 @@
.highlight tr.gi, .highlight tr .gi {
color:#589819 !important;
}
.highlight tr.gi .x, .highlight tr .gi .x {
.highlight tr.gi .x, .highlight tr .gi .x, .highlight .diff-line-code-addition .x {
background: #252 !important;
color: #eee !important;
}
/* git diff inline deletions (red) */
.highlight tr.gd, .highlight tr .gd {
color: #d22323 !important;
}
.highlight tr.gd .x, .highlight tr .gd .x {
.highlight tr.gd .x, .highlight tr .gd .x, .highlight .diff-line-code-deletion .x {
background: #622 !important;
color: #eee !important;
}
Expand Down

2 comments on commit 1af3fdf

@thinktt
Copy link

@thinktt thinktt commented on 1af3fdf Aug 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix @Mottie! I love this theme and appreciate your work on it. Also thanks to anyone else who works on this theme.

@Mottie
Copy link
Member Author

@Mottie Mottie commented on 1af3fdf Aug 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad you are enjoying it!... it's been updated on userstyles now too ;)

Please sign in to comment.