mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Increase font-weight of code mark in headings (#123)
This commit is contained in:
@@ -65,7 +65,6 @@ function Code(props: MarkedLeafProps<DocumentMarkCode>) {
|
||||
return (
|
||||
<code
|
||||
className={tcls(
|
||||
'font-normal',
|
||||
'py-[1px]',
|
||||
'px-1.5',
|
||||
'min-w-[1.625rem]',
|
||||
@@ -82,7 +81,6 @@ function Code(props: MarkedLeafProps<DocumentMarkCode>) {
|
||||
'dark:ring-light/1',
|
||||
'dark:bg-light/1',
|
||||
'dark:text-light/7',
|
||||
'[&>*]:font-normal',
|
||||
// Text size is proportional to the font-size of the parent element
|
||||
'text-[.875em]',
|
||||
// We ensure that the code is not making the parent bigger, especially in headings
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ const inter = Inter({
|
||||
});
|
||||
|
||||
export const ibmPlexMono = IBM_Plex_Mono({
|
||||
weight: ['400'],
|
||||
weight: ['400', '600'],
|
||||
variable: '--font-mono',
|
||||
style: 'normal',
|
||||
preload: false,
|
||||
|
||||
Reference in New Issue
Block a user