Skip to content

Commit

Permalink
code font style (#148)
Browse files Browse the repository at this point in the history
* code font style

* align padding for admotion code

* font normal

* remove style
  • Loading branch information
jakubabrzy authored Sep 19, 2023
1 parent 2a53f6a commit 7f8a6e6
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-normal",
"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 [&_a>code]:font-bold [&_code]:text-base [&_code]:px-1.5",
typeConfig.className
)}
role="alert"
Expand Down

0 comments on commit 7f8a6e6

Please sign in to comment.