From bdbbba22614e3b0eeb3e6c22d8f9a27739d9cd9a Mon Sep 17 00:00:00 2001 From: Johnson Mao Date: Thu, 2 Nov 2023 21:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20fix=20code=20box=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/css/prism-plus.css | 8 ++++---- src/app/layout.tsx | 2 +- src/components/CodeBox/CodeBox.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/css/prism-plus.css b/src/app/css/prism-plus.css index 18887b42..0441b6b2 100644 --- a/src/app/css/prism-plus.css +++ b/src/app/css/prism-plus.css @@ -18,8 +18,8 @@ pre { display: block; padding-left: 16px; padding-right: 16px; - margin-left: -16px; - margin-right: -16px; + margin-left: -13px; + margin-right: -13px; border-left-width: 4px; border-left-color: rgba(31, 41, 55, 0); /* Set code block color */ } @@ -33,8 +33,8 @@ pre { } .highlight-line { - margin-left: -16px; - margin-right: -16px; + margin-left: -13px; + margin-right: -13px; background-color: rgba(55, 65, 81, 0.5); /* Set highlight bg color */ border-left-width: 4px; border-left-color: rgb(59, 130, 246); /* Set highlight accent border color */ diff --git a/src/app/layout.tsx b/src/app/layout.tsx index de31ec1e..4f6c8c81 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -22,7 +22,7 @@ function HtmlLayout({ children }: React.PropsWithChildren) { return ( -
+
{children} diff --git a/src/components/CodeBox/CodeBox.tsx b/src/components/CodeBox/CodeBox.tsx index 6c2712a1..78ac3a58 100644 --- a/src/components/CodeBox/CodeBox.tsx +++ b/src/components/CodeBox/CodeBox.tsx @@ -22,7 +22,7 @@ function CodeBox(props: CodeBoxProps) { }; return ( -
+