From 38da3fb2a798f14abadb770f706ea854f4d5745d Mon Sep 17 00:00:00 2001 From: Alex Voss Date: Fri, 15 Sep 2023 11:58:59 -0400 Subject: [PATCH] fix: unwanted divergence public vs. insider #6017 --- src/assets/stylesheets/main/_colors.scss | 3 ++- .../stylesheets/main/extensions/pymdownx/_highlight.scss | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/assets/stylesheets/main/_colors.scss b/src/assets/stylesheets/main/_colors.scss index d66f3e4b1..7cd329ec2 100644 --- a/src/assets/stylesheets/main/_colors.scss +++ b/src/assets/stylesheets/main/_colors.scss @@ -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); diff --git a/src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss b/src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss index 88ae56d02..7d2976776 100644 --- a/src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss +++ b/src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss @@ -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