Skip to content

Commit

Permalink
fix doc fonts (#338)
Browse files Browse the repository at this point in the history
* fix doc fonts

* fix(frontend): update blog font-weight
  • Loading branch information
fatonramadani authored Oct 13, 2023
1 parent 2ecf99a commit 566c187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ body * {

.markdown {
font-size: 16px;
line-height: 1.5rem;
}

.markdown-blog {
line-height: 1.75rem;
}

.markdown > p {
font-weight: 300 !important;
.markdown-blog > p {
font-weight: 400 !important;
}

.docusaurus-highlight-code-line {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function BlogPostItemContent({ children, className }) {
<div
// This ID is used for the feed generation to locate the main content
id={isBlogPostPage ? blogPostContainerID : undefined}
className={clsx('markdown', className)}
className={clsx('markdown markdown-blog', className)}
itemProp="articleBody"
>
<MDXContent>{children}</MDXContent>
Expand Down

0 comments on commit 566c187

Please sign in to comment.