From 7a12aa04ac755c4bb4324d78a0bd1dc7d05757d2 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 8 Sep 2023 20:18:26 +0300 Subject: [PATCH] docs,api-ref: fix kbd styling (#4995) * docs: fix kbd styling * additional fixes --- www/api-reference/components/MDXComponents/Kbd/index.tsx | 4 ++-- www/docs/content/create-medusa-app.mdx | 2 +- www/docs/src/css/_docusaurus.css | 5 ----- www/docs/src/css/_variables.css | 8 ++++---- www/docs/src/theme/MDXComponents/Kbd.tsx | 6 +++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/www/api-reference/components/MDXComponents/Kbd/index.tsx b/www/api-reference/components/MDXComponents/Kbd/index.tsx index f4425a7475a82..13342b3d48e9c 100644 --- a/www/api-reference/components/MDXComponents/Kbd/index.tsx +++ b/www/api-reference/components/MDXComponents/Kbd/index.tsx @@ -6,12 +6,12 @@ const Kbd = ({ children, className, ...props }: KbdProps) => { return ( -storefront` directory, where `` is the name of the project you specified in step 2. -If you want to install the storefront, type `y` and press `enter`. If not, you can use the default value `N` and just press `enter`. +If you want to install the storefront, type `y` and press enter. If not, you can use the default value `N` and just press enter. :::note diff --git a/www/docs/src/css/_docusaurus.css b/www/docs/src/css/_docusaurus.css index b587433e296e1..be51cd463427d 100644 --- a/www/docs/src/css/_docusaurus.css +++ b/www/docs/src/css/_docusaurus.css @@ -181,11 +181,6 @@ details summary { @apply hidden; } -.markdown kbd { - @apply !font-monospace !bg-medusa-bg-component dark:!bg-medusa-bg-component-dark !text-medusa-fg-subtle dark:!text-medusa-fg-subtle-dark; - @apply !rounded-md !border-medusa-border-strong dark:!border-medusa-border-strong-dark !shadow-none; -} - .theme-doc-footer { @apply !mt-0 border-0 !border-t border-solid !border-medusa-border-base dark:!border-medusa-border-base-dark; @apply pt-2; diff --git a/www/docs/src/css/_variables.css b/www/docs/src/css/_variables.css index b3eac870932f6..4ca25c1f4f0f8 100644 --- a/www/docs/src/css/_variables.css +++ b/www/docs/src/css/_variables.css @@ -75,7 +75,7 @@ /* Inline Code */ --ifm-code-border-radius: theme(borderRadius.DEFAULT); --ifm-code-padding-horizontal: theme(padding[0.5]); - --ifm-code-background: theme(colors.medusa.bg.subtle.DEFAULT) !important; + --ifm-code-background: theme(colors.medusa.tag.neutral.bg.DEFAULT) !important; /* Code Blocks */ --ifm-pre-background: theme(colors.medusa.code.bg.base.DEFAULT); @@ -154,7 +154,7 @@ html[data-theme="dark"] { --ifm-navbar-link-color: theme(colors.medusa.fg.subtle.dark); /* Inline Code */ - --ifm-code-background: theme(colors.medusa.bg.base.dark) !important; + --ifm-code-background: theme(colors.medusa.tag.neutral.bg.dark) !important; /* Code Blocks */ --ifm-pre-background: theme(colors.medusa.code.bg.base.dark); @@ -200,9 +200,9 @@ html[data-theme="dark"] { } .alert { - --ifm-code-background: theme(colors.medusa.bg.subtle.DEFAULT) !important; + --ifm-code-background: theme(colors.medusa.tag.neutral.bg.DEFAULT) !important; } html[data-theme="dark"] .alert { - --ifm-code-background: theme(colors.medusa.bg.subtle.dark) !important; + --ifm-code-background: theme(colors.medusa.tag.neutral.bg.dark) !important; } \ No newline at end of file diff --git a/www/docs/src/theme/MDXComponents/Kbd.tsx b/www/docs/src/theme/MDXComponents/Kbd.tsx index 0b9e58962a700..dc110e44fbca5 100644 --- a/www/docs/src/theme/MDXComponents/Kbd.tsx +++ b/www/docs/src/theme/MDXComponents/Kbd.tsx @@ -9,12 +9,12 @@ const Kbd: React.FC = ({ children, className, ...props }) => { return (