From b323ce7a81e53b132ed9854c7240ff45ae3bb3ec Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:32:03 +0000 Subject: [PATCH] :lipstick: Modify admonition bg color --- .../src/theme/Admonition/index.tsx | 3 +- .../src/theme/Admonition/styles.css | 31 +++++++++++++++---- website/docs/components/Admonition.mdx | 24 ++++++++++++++ .../src/components/BrowserWindow/index.tsx | 8 ++--- 4 files changed, 55 insertions(+), 11 deletions(-) diff --git a/packages/theme-nonepress/src/theme/Admonition/index.tsx b/packages/theme-nonepress/src/theme/Admonition/index.tsx index cf61736..6e37178 100644 --- a/packages/theme-nonepress/src/theme/Admonition/index.tsx +++ b/packages/theme-nonepress/src/theme/Admonition/index.tsx @@ -101,6 +101,7 @@ type AdmonitionConfig = { const AdmonitionConfigs: Record = { note: { + className: "note", iconComponent: NoteIcon, label: ( + content +; content ; + + content +; + + content +; + + content +; ``` + + content + content + + content + + + content + + + content + diff --git a/website/src/components/BrowserWindow/index.tsx b/website/src/components/BrowserWindow/index.tsx index ac2b66b..017606f 100644 --- a/website/src/components/BrowserWindow/index.tsx +++ b/website/src/components/BrowserWindow/index.tsx @@ -8,18 +8,18 @@ type Props = { export default function browserWindow(props: Props): JSX.Element { const { title, children } = props; return ( -
-
+
+
-
+
{title}
-
{children}
+
{children}
); }