From 09b173fd9a0aa26a5c9834cfc2fbf8f297d77c6c Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Tue, 26 Dec 2023 11:27:36 +0800 Subject: [PATCH] update pre styles --- components/mdx/pre.tsx | 2 +- components/pages/gists/gists-code.module.css | 4 +--- components/pages/gists/gists-code.tsx | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/mdx/pre.tsx b/components/mdx/pre.tsx index a3bc088..1d53c44 100644 --- a/components/mdx/pre.tsx +++ b/components/mdx/pre.tsx @@ -20,7 +20,7 @@ const Pre = ({ ...rest }: Props) => { return ( <> -
+      
         {children}
         
       
diff --git a/components/pages/gists/gists-code.module.css b/components/pages/gists/gists-code.module.css index e052001..4e40be2 100644 --- a/components/pages/gists/gists-code.module.css +++ b/components/pages/gists/gists-code.module.css @@ -1,9 +1,7 @@ .wrapper { @apply overflow-hidden rounded-lg; - @apply mb-8 shadow-lg; + @apply mb-8 shadow-card; font-size: 16px; - /* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%), - 0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%); */ } .wrapper pre { diff --git a/components/pages/gists/gists-code.tsx b/components/pages/gists/gists-code.tsx index 450fde5..b5cd46a 100644 --- a/components/pages/gists/gists-code.tsx +++ b/components/pages/gists/gists-code.tsx @@ -78,13 +78,13 @@ const GistsCode = ({ file, showFileName = false }: Props) => { -
+
{code}
) : ( -
+
{code}