Skip to content

Commit

Permalink
fix: don't produce a css variable for .hljs-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Feb 22, 2023
1 parent a27434b commit aad8b56
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sass/_theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "@catppuccin/palette/scss/catppuccin";
@use "sass:color";

$highlights: (
"keyword": "mauve",
Expand Down Expand Up @@ -85,7 +86,11 @@ $fontStyles: (
}

@if ($key == "diff-addition" or $key == "diff-deletion") {
background: rgba(var(--#{$prefix}#{$value}), 15%);
@if $hexOutput {
background: color.change(map-get($color, $value), $alpha: 0.15);
} @else {
background: rgba(var(--#{$prefix}#{$value}), 15%);
}
}
}
}
Expand Down

0 comments on commit aad8b56

Please sign in to comment.