From cdddb03f9075044ec4e56e2ddbceb9e6bf92faf5 Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:43:23 +0000 Subject: [PATCH] Adjust styling of inline code inside custom blocks --- docs/.vitepress/theme/styles.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/.vitepress/theme/styles.css b/docs/.vitepress/theme/styles.css index 090e289..30c1d84 100644 --- a/docs/.vitepress/theme/styles.css +++ b/docs/.vitepress/theme/styles.css @@ -47,6 +47,15 @@ html:not(.dark) { border-top: 0 none; } +/* Inline code in a custom block looks too much like a link */ +.custom-block.info code, .custom-block.tip code { + color: var(--vp-code-color); +} + +.custom-block.info a > code, .custom-block.tip a > code { + color: var(--vp-code-link-color); +} + /* green-1 is much too close to black in the sidebar */ html:not(.dark) .VPSidebar { --vp-c-brand-1: var(--vp-c-brand-3);