From 12266404f18bdf42ac570b25ad17b92b99ca890a Mon Sep 17 00:00:00 2001 From: Christopher Radek <14189820+chrisradek@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:48:20 -0800 Subject: [PATCH] restore inline codeblock highlighting for light mode (#5178) There was a css variable being set on the `:root` level that used to always be overridden in light mode until #5147. This controls the background color of an inline code block. Moved this variable to only be defined in dark mode instead. --------- Co-authored-by: Christopher Radek --- website/src/css/custom.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 0b222fbf85..d32e12878e 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -11,6 +11,9 @@ --sl-color-text-accent: var(--colorBrandForeground1); --sl-color-gray-2: var(--colorNeutralForeground1); --sl-color-gray-5: var(--colorNeutralStroke1); +} + +:root[data-theme="dark"] { --sl-color-bg-inline-code: var(--ec-frm-edBg); }