Skip to content

Commit

Permalink
fix: apply css styles only to first element
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Aug 12, 2024
1 parent 1a28c3c commit ec942ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/codeBlock/code-blocks.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
pre[class^='language-']:has(:global(.code-diff)) {
padding-right: 0;

& :global(.token.operator) {
& :global(.diff-deleted) :global(.token.operator:first-of-type),
& :global(.diff-inserted) :global(.token.operator:first-of-type) {
padding-right: 12px;
}
}
Expand Down

0 comments on commit ec942ae

Please sign in to comment.