Skip to content

Instantly share code, notes, and snippets.

@rcassani
Created December 19, 2022 20:51
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 rcassani/006d42a6ba70f83dd5f7d67c811bd502 to your computer and use it in GitHub Desktop.
Save rcassani/006d42a6ba70f83dd5f7d67c811bd502 to your computer and use it in GitHub Desktop.
`diff.less` file for language-diff Atom package. Place it at `~.atom/packages/language-diff/styles`
@import "syntax-variables";
atom-text-editor {
.syntax--diff {
&.syntax--inserted &.syntax--inserted.syntax--punctuation {
color: @syntax-color-added;
}
&.syntax--changed {
color: @syntax-color-modified;
}
&.syntax--deleted &.syntax--deleted.syntax--punctuation {
color: @syntax-color-removed;
}
&.syntax--only-in {
// we don't have any methods in diff, so we can safely use this color
color: @syntax-color-method;
font-weight: bold;
}
&.syntax--header.syntax--git {
font-weight: bolder;
background-color: blueviolet;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment