Skip to content

Instantly share code, notes, and snippets.

@cjrd
Created May 18, 2018 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjrd/9f0efdee42bd18ba5f25374833544397 to your computer and use it in GitHub Desktop.
Save cjrd/9f0efdee42bd18ba5f25374833544397 to your computer and use it in GitHub Desktop.
Reduce whitespace importance on reviewable
.diff.line.base:not(.keep) .line.wrapper:not(.empty) .left.line.content,
.diff.line.whitespace:not(.keep) .line.wrapper:not(.empty) .left.line.content {
background-color: #FFF7F7; /* rgba(91, 220, 114, 0.05) on white */
}
.diff.line.base .left.line.content .delta, .diff.line.whitespace .left.line.content .delta {
background-color: rgba(240, 92, 92, 0.05);
}
.one.column.diff .diff.line.base .left.line.content .delta,
.one.column.diff .diff.line.whitespace .left.line.content .delta {
background-color: rgba(240, 92, 92, 0.15);
}
.diff.line.base:not(.keep) .line.wrapper:not(.empty) .right.line.content,
.diff.line.whitespace:not(.keep) .line.wrapper:not(.empty) .right.line.content {
background-color: #EFFCF1; /* rgba(91, 220, 114, 0.05) on white */
}
.diff.line.base .right.line.content .delta, .diff.line.whitespace .right.line.content .delta {
background-color: rgba(91, 220, 114, 0.05);
}
.one.column.diff .diff.line.base .right.line.content .delta,
.one.column.diff .diff.line.whitespace .right.line.content .delta {
background-color: rgba(91, 220, 114, 0.15);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment