elliotforbes / ng-diff-match-patch

MIT License
38 stars 15 forks source link

Stylesheet - improved #33

Open leomayer opened 5 years ago

leomayer commented 5 years ago

After some struggle we figured out that the following style sheet might have better results:

ins, ins * {
  background: #bbffbb!important;
}

del, del * {
  background: #ffbbbb!important;
}

Perhaps an update on doc might be useful

steltz commented 4 years ago

@leomayer The green/red background colors aren't showing up in the diff, any advice on how to fix?

Justinm98 commented 2 years ago

For anybody who comes across this problem, its fixed by prepending the element name to the css rule.

<pre semanticDiff [left]="left" [right]="right"></pre>

pre ins {
    background: #bbffbb;
}

pre del{
background: #ffbbbb;
}