From 8ff431a6bcce8cca04d9ea23ef92045a728d686a Mon Sep 17 00:00:00 2001 From: Aelita <45784210+xsjcTony@users.noreply.github.com> Date: Fri, 21 Jul 2023 23:15:33 +1000 Subject: [PATCH] fix(theme): code block style is broken inside custom block (#2664) --- src/client/theme-default/styles/components/vp-doc.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 1eb238d1..fe71fe4d 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -226,6 +226,7 @@ .vp-doc .custom-block div[class*='language-'] { margin: 8px 0; + border-radius: 8px; } .vp-doc .custom-block div[class*='language-'] code { @@ -233,6 +234,11 @@ background-color: transparent; } +.vp-doc .custom-block .vp-code-group .tabs { + margin: 0; + border-radius: 8px 8px 0 0; +} + /** * Code * -------------------------------------------------------------------------- */