Skip to content

Commit

Permalink
fix: apply css styles only to first element (#11054)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Aug 12, 2024
1 parent 25def56 commit 8b55cce
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 8b55cce

Please sign in to comment.