From 2c89afb7ddfeb04f947f95f9ecf636a384492ba8 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 16 Aug 2022 10:50:31 +0530 Subject: [PATCH] fix(theme): restore styles for code blocks (#1170) --- .../theme-default/styles/components/vp-doc.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 84e9d08c..f6029413 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -310,23 +310,23 @@ } .vp-doc [class*='language-'] code { - display: flex; - width: max-content; + display: block; + padding: 0 24px; + width: fit-content; min-width: 100%; - flex-direction: column; line-height: var(--vp-code-line-height); font-size: var(--vp-code-font-size); color: var(--vp-code-block-color); transition: color 0.5s; } -.vp-doc [class*='language-'] code .line { - padding: 0 24px; -} - .vp-doc [class*='language-'] code .highlighted { background-color: var(--vp-code-line-highlight-color); transition: background-color 0.5s; + margin: 0 -24px; + padding: 0 24px; + width: calc(100% + 2 * 24px); + display: inline-block; } .vp-doc div[class*='language-'].line-numbers-mode {