Skip to content

Commit

Permalink
code font style
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubabrzy committed Sep 19, 2023
1 parent d4327b0 commit e7d2d82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/TextContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const classNames = [

// <code>
"prose-code:px-1.5",
"prose-code:font-medium",
"prose-code:text-inherit",
"prose-code:prose-a:font-bold",
"dark:prose-code:text-inherit",
"dark:prose-code:border-gray-600",
"prose-code:before:content-none",
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Admonition/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function Admonition(props: Props) {
return (
<div
className={clsx(
"flex flex-col py-2 px-3 not-prose border gap-1 [&+&]:mt-3 [&_a:hover]:text-gray-900 dark:[&_a:hover]:text-gray-50",
"flex flex-col py-2 px-3 not-prose border gap-1 [&+&]:mt-3 [&_a:hover]:text-gray-900 dark:[&_a:hover]:text-gray-50 [&_code>a]:font-bold [&_a>code]:font-bold [&_code]:text-base",
typeConfig.className
)}
role="alert"
Expand Down

0 comments on commit e7d2d82

Please sign in to comment.