Skip to content

Commit

Permalink
Merge pull request #6024 from alexvoss/codehighlight
Browse files Browse the repository at this point in the history
fix: unwanted divergence public vs. insider #6017
  • Loading branch information
squidfunk committed Sep 18, 2023
2 parents 9aa2e88 + 38da3fb commit 457a7fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/assets/stylesheets/main/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
--md-code-bg-color: hsla(0, 0%, 96%, 1);

// Code highlighting color shades
--md-code-hl-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);
--md-code-hl-color: hsla(#{hex2hsl($clr-blue-a200)}, 1);
--md-code-hl-color--light: hsla(#{hex2hsl($clr-blue-a200)}, 0.1);
--md-code-hl-number-color: hsla(0, 67%, 50%, 1);
--md-code-hl-special-color: hsla(340, 83%, 47%, 1);
--md-code-hl-function-color: hsla(291, 45%, 50%, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
display: block;
padding: 0 px2em(16px, 13.6px);
margin: 0 px2em(-16px, 13.6px);
background-color: var(--md-code-hl-color);
background-color: var(--md-code-hl-color--light);
box-shadow: 2px 0 0 0 var(--md-code-hl-color) inset;
}

// Code block title
Expand Down

0 comments on commit 457a7fd

Please sign in to comment.