Skip to content

Commit

Permalink
Update css to support diff syntax highlighting. (#943)
Browse files Browse the repository at this point in the history
This adds the rules to highlight diff lines with highlight.js.
  • Loading branch information
ehuss authored and Dylan-DPC committed Jun 12, 2019
1 parent 4386a10 commit 0c2292b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/theme/ayu-highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ Original by Dempfi (https://github.com/dempfi/ayu)
.hljs-strong {
font-weight: bold;
}

.hljs-addition {
color: #91b362;
}

.hljs-deletion {
color: #d96c75;
}
10 changes: 10 additions & 0 deletions src/theme/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,13 @@
.hljs-strong {
font-weight: bold;
}

.hljs-addition {
color: #22863a;
background-color: #f0fff4;
}

.hljs-deletion {
color: #b31d28;
background-color: #ffeef0;
}
8 changes: 8 additions & 0 deletions src/theme/tomorrow-night.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,11 @@
.xml .hljs-cdata {
opacity: 0.5;
}

.hljs-addition {
color: #718c00;
}

.hljs-deletion {
color: #c82829;
}

0 comments on commit 0c2292b

Please sign in to comment.