Skip to content

Commit

Permalink
Allow diff line highlighting for codeblocks (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dmatthews authored Sep 21, 2024
1 parent 41f2082 commit 7f0bf3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/blocks/code.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
@apply inline;
}

.Pre code :global(.deleted) {
@apply text-red-70 bg-red-70 bg-opacity-20;
}
.Pre code :global(.inserted) {
@apply text-green-70 bg-green-70 bg-opacity-20;
}

/* Dark mode adjustments */
:global(.dark) .Pre code :global(.operator),
:global(.dark) .Pre code :global(.decorator) {
Expand Down

0 comments on commit 7f0bf3c

Please sign in to comment.