docs,api-ref: fix kbd styling (#4995)

* docs: fix kbd styling

* additional fixes
This commit is contained in:
Shahed Nasser
2023-09-08 20:18:26 +03:00
committed by GitHub
parent 1a1fc6c968
commit 7a12aa04ac
5 changed files with 10 additions and 15 deletions

View File

@@ -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;

View File

@@ -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;
}