Skip to content

Commit

Permalink
fix(components): rectify broken theme for antd v5 (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Feb 12, 2023
1 parent 00e7629 commit 0ad7e6d
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 147 deletions.
12 changes: 7 additions & 5 deletions components/Article/Article.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ section {
@apply dark:text-light;
}

/* Change ant design default font size */
/* Reset ant design font family and font size */
[class^='ant-typography'],
[class*=' ant-typography'] {
[class*=' ant-typography'],
.ant-anchor-link-title.ant-anchor-link-title,
.ant-anchor-link-title-active.ant-anchor-link-title-active {
font-family: var(--font-stack);
font-size: var(--font-size);
font-size: inherit;
}

/* Add dark mode support for table of contents links */
.ant-anchor-link-title {
@apply dark:text-light dark:hover:text-secondary dark:focus:text-secondary;
.ant-anchor-link-title.ant-anchor-link-title {
@apply hover:text-secondary dark:text-light dark:hover:text-secondary dark:focus:text-secondary;
}

.ant-anchor-link-title-active {
Expand Down
2 changes: 1 addition & 1 deletion components/CodeBlocks/BlockCode.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.code {
@apply mb-0 px-0 py-5;
@apply mb-0 overflow-x-auto px-0 py-5;
}

.code div {
Expand Down
Loading

1 comment on commit 0ad7e6d

@vercel
Copy link

@vercel vercel bot commented on 0ad7e6d Feb 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-sabertaz.vercel.app
blog-git-main-sabertaz.vercel.app
blog.tazimi.dev

Please sign in to comment.