From e60d4d4da23f39a5b97e477596bef655f72528d7 Mon Sep 17 00:00:00 2001 From: Jordan Dalby Date: Tue, 26 Nov 2024 00:14:40 +0000 Subject: [PATCH] Fixed markdown code block colouring and changed gradient colour --- client/src/components/editor/PreviewCodeBlock.tsx | 7 +++++-- client/src/index.css | 11 ++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/components/editor/PreviewCodeBlock.tsx b/client/src/components/editor/PreviewCodeBlock.tsx index 5397aec..aba9d60 100644 --- a/client/src/components/editor/PreviewCodeBlock.tsx +++ b/client/src/components/editor/PreviewCodeBlock.tsx @@ -135,8 +135,11 @@ export const PreviewCodeBlock: React.FC = ({ )}
diff --git a/client/src/index.css b/client/src/index.css index 6ec2954..41673e5 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -42,20 +42,17 @@ code { /* Markdown styles */ .markdown pre { - @apply bg-slate-200 dark:bg-slate-600; - padding: 0.75rem; - border-radius: 0.5rem; - overflow-x: auto; + @apply bg-slate-200 dark:bg-slate-800; + padding: 0.2rem 0.4rem; + border-radius: 0.25rem; @apply text-light-text dark:text-dark-text; - @apply border border-light-border dark:border-dark-border; } .markdown code { - @apply bg-slate-200 dark:bg-slate-600; + @apply bg-slate-200 dark:bg-slate-800; padding: 0.2rem 0.4rem; border-radius: 0.25rem; @apply text-light-text dark:text-dark-text; - @apply border border-light-border dark:border-dark-border; } .markdown pre code {