From 712a57fde74daa27f69319861d95f9dec6bc05ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=83=BD=E5=AE=81?= Date: Sun, 16 Apr 2023 04:26:54 +0800 Subject: [PATCH] fix(theme): fix color of blockquote in custom containers (#2173) Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- .../styles/components/custom-block.css | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/client/theme-default/styles/components/custom-block.css b/src/client/theme-default/styles/components/custom-block.css index 4d900c58..373b3a3a 100644 --- a/src/client/theme-default/styles/components/custom-block.css +++ b/src/client/theme-default/styles/components/custom-block.css @@ -13,8 +13,10 @@ background-color: var(--vp-custom-block-info-bg); } -.custom-block.info th { - color: var(--vp-custom-block-info-text); +.custom-block.custom-block th, +.custom-block.custom-block blockquote > p { + font-size: var(--vp-custom-block-font-size); + color: inherit; } .custom-block.info code { @@ -27,10 +29,6 @@ background-color: var(--vp-custom-block-tip-bg); } -.custom-block.tip th { - color: var(--vp-custom-block-tip-text); -} - .custom-block.tip code { background-color: var(--vp-custom-block-tip-code-bg); } @@ -41,10 +39,6 @@ background-color: var(--vp-custom-block-warning-bg); } -.custom-block.warning th { - color: var(--vp-custom-block-warning-text); -} - .custom-block.warning code { background-color: var(--vp-custom-block-warning-code-bg); } @@ -55,10 +49,6 @@ background-color: var(--vp-custom-block-danger-bg); } -.custom-block.danger th { - color: var(--vp-custom-block-danger-text); -} - .custom-block.danger code { background-color: var(--vp-custom-block-danger-code-bg); } @@ -69,10 +59,6 @@ background-color: var(--vp-custom-block-details-bg); } -.custom-block.details th { - color: var(--vp-custom-block-details-text); -} - .custom-block.details code { background-color: var(--vp-custom-block-details-code-bg); }