Stronger diff colour contrast
Deepens the green and red backgrounds of added and deleted lines so changes stand out clearly.
Code to copy
.blob-code-addition, [class*="DiffLine"][data-line-type="addition"] {
background: rgba(46,160,67,0.22) !important;
}
.blob-code-deletion, [class*="DiffLine"][data-line-type="deletion"] {
background: rgba(248,81,73,0.22) !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.